Hi,
I am using a number of gauges in a dashboard set up (asp.net 2.0, IGv8.1) and occasionally a gauge will not show up when the page loads. If I refresh the page the gauge then shows. My deployment scenario is as follows:
UltraGauge1.DeploymentScenario.ImageType = GaugeImageType.Png; UltraGauge1.DeploymentScenario.DeleteOldImages = true; UltraGauge1.DeploymentScenario.Mode = ImageDeploymentMode.FileSystem; UltraGauge1.DeploymentScenario.ImageURL = "~/images/SalesForce/Gauges/TargetKpi/Gauge_#CLIENT_#SESSION.#EXT"; UltraGauge1.DeploymentScenario.FilePath = "~/images/SalesForce/Gauges/TargetKpi";
The image url on the initial page load is:
http://localhost:4004/BlueCow/images/SalesForce/Gauges/TargetPax/Gauge_ctl00_cphMaster_tpgNational_UltraGauge1_nfctuj45qfghidy0xik0ds55.png?t=128709199775304415
And then when I refresh the page it is:
http://localhost:4004/BlueCow/images/SalesForce/Gauges/TargetPax/Gauge_ctl00_cphMaster_tpgNational_UltraGauge1_nfctuj45qfghidy0xik0ds55.png?t=128709201323972827
You can see how the timestamp (I'm guessing that's what "t" is) has changed slightly. This behaviour happens both locally, and when my site is deployed on a server. I'd say about 95% of the time the gauge image appears correctly, and the other 5% I need to refresh the page. I don't think an image has ever failed to load for me on refreshing.
Any help on this would be greatly appreciated.
Cheers,
James.
first of all, to the OP, i'm sorry that your message was somehow overlooked, and I hope you got an answer to your question back in 2008.
now, as to why the images are not getting generated - do you see anything in the Event Log on your web server? do you notice that the ASP.NET worker process gets restarted at the same time that this happens? Does it still happen if you set DeploymentScenario.DeleteOldImages = False? And are you using single web servers, or a web farm?
There isn't a single known cause for this problem, but the above questions could provide us with some clues to diagnose what is happening.
We are NOT currently setting DeleteOldImages to False or True. Does it have a default? Perhaps it is set to True by default?
I notice this DeleteOldImages is only on the Gauge and not the Chart. We never seem to have this image probelm on the Charts.
We index our file names with 0 to 999 and then rollover. We never delete any files. We are just overwritting the files.
We are running on a single web server. I do not see any errors in the Windows Event logs. I am also not sure if the ASP.NET worker process is restarting or not. What would cause this to restart and how can I tell?
Thanks for your help.
If you are using a build after February 2011, you should have the latest available fix related to this area. Are you using file system or session based image deployment?
I am using the file system based image deployment,is there any thing i can change into the code which will resolve the issue?, below are the assemblies i am using,
Infragistics2.WebUI.UltraWebGauge.v11.2Infragistics2.WebUI.Shared.v11.2
And i am creating the gauge control dynamically
Infragistics.WebUI.UltraWebGauge.
UltraGauge ultraGauge1 =new Infragistics.WebUI.UltraWebGauge.UltraGauge();ultraGauge1.ID = id;
Regards
Anurag Sharma
You should be fine with those assemblies. Are you getting missing images or duplicate ones? What happens when you directly browse to the url which shows up as a broken image link? Are the images being copied to your file system at all?
I am getting missing images, these are copied into the filesystem when browse form direct URL then these images displays,
Below is the grid where dymanically createg gauge control displays
The name of gauge is too long can it be the reason for this, Can i remove the below red highlighted text from the image name
It sounds like there's an issue with timing, where the file has been written to the server's file system, but the client request fails to download the image.
What if you set the RefreshInterval property of the gauge? Would that remedy the problem?
Yes its occuring after removing the session, and i just also saw the case where the gauge image was not created(this is rare case).
How this can happen, is something i need to change in code?
does this still happen when you remove the session ID from the FileName under the DeploymentScenario properties?
this seems like it's a timing issue, and that might be related to ASP.NET having to create the Session for the first time, so maybe that would help. or, perhaps initializing the session in global.asax, something like this:
void Session_Start(object sender, EventArgs e)
{
Session["nothing"] = new object();
}
And What about below issue
Yes, you could safely remove the Session ID from the filename.