roei.attias Posted April 25, 2007 Report Share Posted April 25, 2007 Hi! I have deployed my Chart FX .NET 2005 project to my live server which has the required Chart FX installation, and when trying to browse it from IIS, the chart starts rendering and then it throws an error, Please help!!!!!!!!!! The Error: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text **************System.FormatException: Invalid File Format at ChartFX.NetIEClient.Chart.e(Boolean A_0, IPersistBase A_1, Boolean A_2) at ChartFX.NetIEClient.Chart.a(DownloadEventArgs A_0) at ChartFX.NetIEClient.ao.a(DownloadEventArgs A_0) ************** Loaded Assemblies **************mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------ChartFX.NetIEClient Assembly Version: 7.0.2424.18088 Win32 Version: n/a CodeBase: http://localhost/chartfx70/download/ChartFX.NetIEClient.dll----------------------------------------System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------ChartFX.NetIEClient.Base Assembly Version: 7.0.2424.17991 Win32 Version: n/a CodeBase: http://localhost/chartfx70/download/ChartFX.NetIEClient.Base.DLL----------------------------------------System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------ChartFX.NetIEClient.Adornments Assembly Version: 7.0.2424.18017 Win32 Version: n/a CodeBase: http://localhost/chartfx70/download/ChartFX.NetIEClient.Adornments.DLL----------------------------------------Microsoft.mshtml Assembly Version: 7.0.3300.0 Win32 Version: 7.0.3300.0 CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll----------------------------------------System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll---------------------------------------- ************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled. For example: <configuration> <system.windows.forms jitDebugging="true" /></configuration> When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box. Link to comment Share on other sites More sharing options...
Frank Posted April 25, 2007 Report Share Posted April 25, 2007 This exception is being thrown by the Chart FX Internet Client control because the format of the file it is reading from your server is incorrect. In particular, the version of the file is greater than the version of the client control. This is probably due to a setup problem. The Chart FX assemblies in your application's bin folder seem to be newer than those in the Chart FX Installation Folder. Maybe because you downloaded a Service Pack in your development machine and not in the server. The versions for ChartFX.WebForms.dll in your application's bin folder and the version of ChartFX.NETIEClient.dll in Chart's Download folder must be the same. Link to comment Share on other sites More sharing options...
conradcreel Posted July 5, 2007 Report Share Posted July 5, 2007 I get the exact same error message and I have verified all assembly versions are the same. What else could it be? ----------------------------------------ChartFX.NetIEClient Assembly Version: 7.0.2664.18534 Win32 Version: n/a CodeBase: http://localhost:49346/PositionTrackerv2.0/chartfx70/download/ChartFX.NetIEClient.dll----------------------------------------ChartFX.NetIEClient.Base Assembly Version: 7.0.2664.18353 Win32 Version: n/a CodeBase: http://localhost:49346/PositionTrackerv2.0/chartfx70/download/ChartFX.NetIEClient.Base.DLL----------------------------------------ChartFX.NetIEClient.Adornments Assembly Version: 7.0.2664.18381 Win32 Version: n/a CodeBase: http://localhost:49346/PositionTrackerv2.0/chartfx70/download/ChartFX.NetIEClient.Adornments.DLL Those are the exact same versions as in C:\program files\Chart FX for Visual Studio 2005\ChartFX70\Download Please help. Thanks, -- Conrad Link to comment Share on other sites More sharing options...
DanielL_550 Posted July 5, 2007 Report Share Posted July 5, 2007 We had a problem similar to this one. We applied a service pack and the version of ChartFX.WebForms.Base.dll was updated in the C:\Program Files\Chart FX for Visual Studio 2005\bin folder but not the C:\Program Files\Chart FX for Visual Studio 2005\ChartFX70\PSS\bin folder. We made sure all copies of the dlls were the same versions in all locations and everything started working. Link to comment Share on other sites More sharing options...
Frank Posted July 5, 2007 Report Share Posted July 5, 2007 The version of the server dll (ChartFX.WebForms.dll) must also match that of the client control. Link to comment Share on other sites More sharing options...
conradcreel Posted July 5, 2007 Report Share Posted July 5, 2007 This is run on my development machine through VS 2005. {My App}/bin/ChartFX.WebForms.dll is version 7.0.2664.18534, {My App}/chartfx70/download/ChartFX.NetIEClient.dll is version 7.0.2664.18534 I just started using this component so I assume that's what you're referring to. Both the assembly versions match, and the *.Base.dll match as well, only the last 3 digits of those are 353 not 534. Link to comment Share on other sites More sharing options...
Frank Posted July 5, 2007 Report Share Posted July 5, 2007 > I have deployed my Chart FX .NET 2005 project to my live server which has the required Chart FX installation It is in this server that you need to check the version. The client control is NOT taken from *My App)/chartfx70, it is taken from a GLOBAL Virtual Folder: /chartfx70, this folder point to <chart Fx installation folder>/chatfx70, it is the version of the client components here what matters. Unlike the client components, the server components are taken from (MyApp)/bin So you must make sure that THESE versions are ok. Any service pack that you installed in your dev. computer you must install in the server. You can verify the version that is installed in the client by running; gacutil /ldl Link to comment Share on other sites More sharing options...
conradcreel Posted July 6, 2007 Report Share Posted July 6, 2007 I assume you were replying to me. However, I am not the original poster. The original poster deployed to a live server, I was getting that same error on my dev machine just using the builtin web server in VS 2005--so the only assemblies I verified were those in my project's bin and those in Program Files. Though, I have given up on this issue and decided to just render as Image (as we also have users using Firefox which won't display using the .net renderer), so no worries. Thanks, -- Conrad Link to comment Share on other sites More sharing options...
Frank Posted July 9, 2007 Report Share Posted July 9, 2007 Sorry I wasn't clear. My reply was to roei.attias Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.