.NET 2.0 and x64 Compatibility Problem?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.

I used to have a working project under the following configuration:

1) Windows Server 2003, Standard
2) .NET Framework 1.1
3) Visual Studio 2003 Enterprise
4) DirectX SDK, Early 2005

I now have the following setup:

1) Windows Server 2003, Standard *x64*
2) .NET Framework *2.0*
3) Visual Studio *2005 Express*
4) DirectX SDK *October 2005*

When I try to launch my project, I get an error in the constructor of my
audio streaming class (I'm doing realtime audio generation). I won't go into
details on that though, becuase the error is very strange:

System.BadImageFormatException: is not a valid Win32 application.
(Exception from HRESULT: 0x800700C1).'
at Wavelet_Tracker.AudioSystem.ctor()
at Wavelet_Tracker.Application.ctor() in Application.cs:line 144
at Wavelet_Tracker.Application.Main() in Application.cs:line 107

I trust the error is not with my code, which was working OK. The error seems
to suggest some sort of deeper problem. I will however post my code if needs
be, I'm hoping though that someone will point me to some reading on
compatibility problems that I missed before embarking on this 4-way upgrade
:-S.

Thanks in advance,
Aaron.
 
As a followup, in case anyone thought I was really dumb, I *can* run new
projects created with Visual C# Express. I *can't* run my project, or any of
the DirectX sample projects.
 
First thing I would do is reinstall the DirectX SDK and then try again.

Gabriel
 
http://msdn.microsoft.com/vstudio/products/compare/default.aspx

As you could see express has 64bit compiler support.
that might be the problem....

That is, if you use unsafe code (i.e. pointer or IntPtr).
However I would think it's for C++ code.
Look in your C# project property, maybe you could you could select target
platform somewhere?
Because: remember: IntPtr are not the same size on x64 computers...
 
Back
Top