Jump to content
Software FX Community

NetIEClient: Invalid File Format. The file you are trying to import is not a valid Chart FX file.


conradcreel

Recommended Posts

************** Exception Text **************System.FormatException: Invalid File Format. The file you are trying to import is not a valid Chart FX file. at ChartFX.NetIEClient.Chart.c(Boolean A_0, IPersistBase A_1) 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.1378 (REDBITSB2.050727-1300)   CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------System   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)   CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------ChartFX.NetIEClient   Assembly Version: 7.0.2678.27844   Win32 Version: n/a   CodeBase: http://localhost:2681/PositionTrackerCommercial/chartfx70/download/ChartFX.NetIEClient.dll----------------------------------------System.Windows.Forms   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)   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.2678.27663   Win32 Version: n/a   CodeBase: http://localhost:2681/PositionTrackerCommercial/chartfx70/download/ChartFX.NetIEClient.Base.DLL----------------------------------------System.Drawing   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)   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.1378 (REDBITSB2.050727-1300)   CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------ChartFX.NetIEClient.Adornments   Assembly Version: 7.0.2678.27690   Win32 Version: n/a   CodeBase: http://localhost:2681/PositionTrackerCommercial/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.1378 (REDBITSB2.050727-1300)   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.1378 (REDBITSB2.050727-1300)   CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------System.Data   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)   CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------

 

That's the above error message.  This is from running within Visual Studio 2005.  The versions of the assembly in my project's chartfx70/bin directory match the versions in the Program Files directory.  Any clues as to what this is?  I had a similar issue before.  Please help.  Thanks,

 

-- Conrad 

Link to comment
Share on other sites

There seems to be a discrepancy between your server component version (ChartFX.WebForms.dll) and your Client control version (ChartFX.NETIEClient.dll).

Compare the versions of your Download folder against that on your application's bin folder.

If you are running from IIS (as apposed to the VS ASP.NET Server) your Download folder goes directly to <Chart FX Installation Folder>\chartfx70\download.

Link to comment
Share on other sites

 I am running it from Visual Studio.  My ChartFX.Webforms.dll in my Bin directory ( as well as in program files for good measure ) is version 7.0.2678.27844 and  my ChartFX.NetIEClient dll version is 7.0.2678.27844--the same.  This is why I am confused.  On a different machine, this was the issue and the versions differed.  Now I get a slightly different error message (the original post) and the versions are the same.  Note, this happened all of a sudden, it was fine for many months.

 

Any thoughts on this? 

Link to comment
Share on other sites

  • 2 months later...

There seems to be a discrepancy between your server component version (ChartFX.WebForms.dll) and your Client control version (ChartFX.NETIEClient.dll).

Compare the versions of your Download folder against that on your application's bin folder.

If you are running from IIS (as apposed to the VS ASP.NET Server) your Download folder goes directly to <Chart FX Installation Folder>\chartfx70\download.

 

 

I have some more information and I hope this will help you point me in the right direction.  I pinpointed the start of this issue to be installing Visual Studio 2008 (note, I am still running the app from VS 2005).  I tried reinstalling ChartFX VS 2005 but that didn't work.  Uninstalling VS 2008 also didn't work.  What is truly confusing me though is the following:

 

I created a new website and added a single chart to the default page.  In the pageload method I put in the following:


  Chart1.RenderFormat = ".NET";

  DataTable dt = new DataTable();
  dt.Columns.Add("Name", typeof(String));
  dt.Columns.Add("Value", typeof(Int32));

  dt.Rows.Add(new object[] { "First", 125 });
  dt.Rows.Add(new object[] { "Second", 3455 });

  Chart1.DataSource = dt.DefaultView;
  Chart1.DataBind();

And everything worked fine.  I did the same thing in my "big" project and I get that same error referenced in the original post.  I tried:

1) Deleting temp asp.net files

2) Deleting licenses.licx and App_Licenses.dll, and all ChartFX references and then having VS 2005 add them all when I drag a chart onto a page (simulating exactly what I did with the test website which worked no problem)

 Yet, nothing has worked.  Does any of this information give you any ideas?  Please help me if you can. 

 

Thanks in advance,

 -- Conrad

 

Link to comment
Share on other sites

Run gacutil /ldl in the client computer.

The version of the client control  (ChartFX.NETIEClient.dll") must match that of the server control (ChartFX.WebForms.dll) in your bin folder.

Then check your Download folder. If you are using IIS the download folder is a virtual folder that points to your CFX install folder.

If you are using the VS Web Server then the download folder is part of your application.

Link to comment
Share on other sites

chartfx70/download/ChartFX.NetIEClient.dll matches the version of ChartFX.Webforms.dll in my bin directory (Version 7.0.2678.27844).  However looking at the output (Just showing the relevant entries) from gacutil /ldl, it appears I have two versions with the same publickeytoken for ChartFX.NetIEClient and ChartFX.NetIEClient.Base

The cache of downloaded files contains the following entries:  ChartFX.NetIEClient, Version=7.0.2678.27844, Culture=neutral, PublicKeyToken=a1878e2052c08dce  ChartFX.NetIEClient, Version=7.0.2664.18534, Culture=neutral, PublicKeyToken=a1878e2052c08dce  ChartFX.NetIEClient.Base, Version=7.0.2678.27663, Culture=neutral, PublicKeyToken=a1878e2052c08dce  ChartFX.NetIEClient.Base, Version=7.0.2664.18353, Culture=neutral, PublicKeyToken=a1878e2052c08dce

 

That seems strange and is probably the issue.  I'll try clearing out the cache and see if that works.  Doing a search on my system, I can't find a copy of ChartFX.NetIEClient.dll with the older version #.

Link to comment
Share on other sites

 Yeah, no luck with that either.  What's strange is that after it shows up with the JIT debugging error and I click "Continue", I can use the chart such as showing datagrid and so on (of course the actual data for the chart does not load).  I am certain the versions of the dlls match, I've triple checked it and I don't have any other versions of the Client DLL on my machine.  What else could it be?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...