User (Legacy) Posted August 17, 2005 Report Share Posted August 17, 2005 Hello, I am running ChartFX 6.2 (with all the latest updates) on a P4 2.4GHz with 992MB ram. The OS is Windows Server 2003. I have an issue much like that of the post "Chart takes long time to load first time" which was posted 2/16/2005 in which the first time a .NET chart object is to be displayed on the page, it takes 1 minute 45 seconds to render. Every time after that takes at most a few seconds no matter how many charts (number within reason) or whatever the filesize is (~50kb-150kb). .PNG charts have no trouble loading whatsoever--first time or anytime afterwords. I have tried many 'fixes' to minimize/eliminate this problem but none of the following have worked--either singly or in combination (and some increased the load time of the first chart): 1) - posted in the chartfx.net.webforms newsgroup 3/2/2005 in response to "Chart takes long time to load first time" [quote] In order to improve this time you will have to add <MachineKey>false</MachineKey> to the ChartFX.Internet.Config file located in the bin folder of your Web Application. You can also create a registry value at HKLM\SOFTWARE\Software FX, Inc.\ChartFX for .NET\6.2\Server called MachineKey and set its value to 0 (make sure it is created as a DWORD value). [/quote] 2) - posted in the chartfx.net.webforms newsgroup 6/29/2005 in response to "Downloading Chart Issue" [quote] I think you may be having a problem with the mime types. Specifically, I think your IIS is not serving .CHW files. Steps to register additional Mime Types: 1. Control Panel/Administrative Tools/IIS 2. Right click "Default Web Site" and select Properties 3. select HTTP Headers tab 4. choose File Types 5. Add New type - Associated Extension: .chw - Content type (MIME): application/octet-stream - Ok.. [/quote] 3) - http://support.chartfx.com/cfxnet/ article "Q7121000. Improving loading time when using the Chart FX for .NET Client Component" [quote] To solve it, you need to create a file in your server named ChartFX.config and place it in your Web Root. This .config file is an XML containing the following: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="chartfx.internet.client" /> <codeBase href="/chartfx62/download/chartfx.internet.client.dll"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="chartfx.internet.base" /> <codeBase href="/chartfx62/download/chartfx.internet.base.dll"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="chartfx.mainclient" /> <codeBase href="/chartfx62/download/chartfx.mainclient.dll"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="chartfx.internet.annotation" /> <codeBase href="/chartfx62/download/hartfx.internet.annotation.dll"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> You need to add a header to your page containing a link to this file. <head> <link rel="Configuration" href="/chartfx.config"> </head> [/quote] PS: there is a typo in this document. correction should be: <codeBase href="/chartfx62/download/chartfx.internet.annotation.dll"/> Note: if you use chartfx.xml instead of chartfx.config, you do not have to open the security hole for removing .config settings in IIS 4) http://support.microsoft.com/default.aspx?scid=kb;en-us;814668 - article "PRB: Runtime Probe Causes a Delay When You Load a Windows Forms Control in Internet Explorer" (this is related to 3) ) 5) http://dotnet247.com/247reference/msgs/6/31757.aspx - article "Accessing Config File from IE Hosted Controls?" (this is related to 3) ) this addresses a similar problem, but assumes the .dll's will be in the project/web directory I have tried several different configurations for the chartfx.config/chartfx.xml file using the following variety of href's for the codebase (*'s represent settings for all .dll's defined in the config file) with no success: a) <codeBase href="/chartfx62/download/chartfx.*.dll" /> <codeBase href="C:/Program Files/ChartFX for .NET 6.2/chartfx62/download/chartfx.*.dll" /> c) <codeBase href="http://www.ourdomainname.com/chartfx62/download/chartfx.*.dll" /> d) <codeBase href="http://localhost/chartfx62/download/chartfx.*.dll" /> e) <codeBase href="http://localservername/chartfx62/download/chartfx.*.dll" /> (I tried the last three because of http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconconfiguringieapplications.asp) If I instead tried to add the <runtime> data into the Web.config, it would only compile if I used the full path to the dll (ie: C:/Program Files/ChartFX for .NET 6.2/chartfx62/download/chartfx.*.dll) I really do not know what else to try. Any help would be much appreciated. Thanks in advance, Caleb ChartFX Bug.zip ChartFX Bug.zip Link to comment Share on other sites More sharing options...
Software FX Posted August 17, 2005 Report Share Posted August 17, 2005 A simple I don't see here: chart.MainClient = true; -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 18, 2005 Author Report Share Posted August 18, 2005 Francisco, Thanks for the quick reply. I have tried this and it doesn't seem to make a difference. Any other ideas? Thanks, Caleb "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:Tz8iKb4oFHA.1724@webserver3.softwarefx.com... >A simple I don't see here: > > chart.MainClient = true; > > -- > Francisco Padron > www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted August 23, 2005 Report Share Posted August 23, 2005 Did you check that it worked ? Setting MainClient=true generates an <object> tag that references a very small Dll instead of referencing the actual Client Dll, this minimizes the time explorer takes to download the control. In turn, MainClient downloads the Client Control using .NET framework API that is version aware causing it to download the control only when necessary. To check that MainClient is indeed being used, do a View-Source of the page and check that the object Tag is pointing to MainClient.dll. Other than that I have never seen such a slow download time when using the MainClient dll. If the problem persist, please visit our support site and access one of the pages that uses the client control, for example: http://support.softwarefx.com/samples/cfxnet6/samples/axishandling/xaxis/scrolling.aspx And see whether or not this page also takes a long time to display. Please try from several clients. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.