views:

579

answers:

1

I am having issues running the chart control on our 64 bit machine. I get the following error...

Could not load file or assembly 'AspnetChart' or one of its dependencies. An attempt was made to load a program with an incorrect format.

The machine I am running this on is a Windows Server 2003 Enterprise x64 Edition SP2 Intel(R) Xeon(R) CPU E5405 @ 2.00 GHz w/ 4.00 GB RAM

The chart control works fine on our 32 bit Windows XP Professional SP3 and Windows Server 2003 Standard Edition SP2 machines, but not when deployed to the 64 bit machine.

I tried to change the Platform target to x86, but that didn't seem to help. I also tried signing the dll and putting it in the GAC, but that didn't help.

Any thoughts, suggestions?

+2  A: 

It sounds to me like you have a 32 bit DLL. In IIS 7 it's possible to run 32-bit and 64-bit processes simultaneously (http://ow.ly/1J7W). But in IIS 6 you can only do one or the other. For running 32-bit applications on IIS 6 (64-bit windows) check out this Microsoft article: (http://ow.ly/1J9M)

Kris