|
facing problem while using ChartDirector on 64 bit OS |
Posted by Amit Gupta on May-05-2011 20:43 |
|
Hi,
We have a problem with for using ChartDirector libs for 64 OS bit machine, it fails to initialize
the graph object and threw the following exception.
Details: System.TypeInitializationException: The type initializer for 'ChartDirector.BaseChart'
threw an exception. ---> System.TypeInitializationException: The type initializer for
'ChartDirector.Chart' threw an exception. ---> System.BadImageFormatException: An
attempt was made to load a program with an incorrect format. (Exception from HRESULT:
0x8007000B)
at ChartDirector.Chart.isLicensed()
at ChartDirector.Chart.checkLicense()
--- End of inner exception stack trace ---
at ChartDirector.Chart.checkLicense()
--- End of inner exception stack trace ---
at ChartDirector.XYChart..ctor(Int32 width, Int32 height)
The license file is in a proper format and in the correct location. It worked completely fine
for 32 bit OS. I am using the signed 3.1.0.3 version of netchartdir libraries.
Please suggest any solution for the above issue as early as possible.
Thanks,
Amit |
Re: facing problem while using ChartDirector on 64 bit OS |
Posted by Peter Kwan on May-06-2011 00:10 |
|
Hi Amit,
ChartDirector for .NET 3.1.0.3 was released on 2004 and does not support the 64-bit .NET framework. (I think Microsoft did not release the 64-bit .NET framework until 2006.)
To solve the problem, you may upgrade to the latest version of ChartDirector, which supports both 32-bit and 64-bit .NET frameworks.
Hope this can help.
Regards
Peter Kwan |
|