x64

J

Jacek Jurkowski

My application written using Net.Framework 2.0 doesn't
run on 64bit platform. I've got message that application isn't
properly configured. What do I have to do to make my app
runable on both platforms?

The same application compiled with older Net.Framwrork
runs normally on 64 platform. I think that 64 bit XP recognises
it propelly as a 32bit app and runs it using 32 Net.Framework
1.1. But Net 2.0 are installed in 64bit version and it tries to run
my app as an 64 bit application. I't sauses an error wtitten above...
 
P

Pohihihi

not much details is given about your application but as guessing goes, if
you are making any 32 bit native calls then you might have problem in
running 32bit apps on 64bit CLR. Basically v2.0 come in 2 modes, 32 & 64,
and both are installed together. If your app is written in C++.Net then
there are few limitations (or diff between managed c++ and c#). More
specificly IJW assemblies. By default managed c++ assemblies are platform
specific, not a case with C# or vb.net. Said that, there are options in v2
that you can set to force complilers to use either 64 or 32 bit process
platform. To make runnable on all kind of CPU you wlil have to set it for
'anycpu' option.
 
W

Willy Denoyette [MVP]

Jacek Jurkowski said:
My application written using Net.Framework 2.0 doesn't
run on 64bit platform. I've got message that application isn't
properly configured. What do I have to do to make my app
runable on both platforms?

The same application compiled with older Net.Framwrork
runs normally on 64 platform. I think that 64 bit XP recognises
it propelly as a 32bit app and runs it using 32 Net.Framework
1.1. But Net 2.0 are installed in 64bit version and it tries to run
my app as an 64 bit application. I't sauses an error wtitten above...

Are you sure you have the 64bit version of the framework installed? You
should have two Framework folders under Microsoft.NET in your Windows folder
one called Framework and another Framework64.
If your MSIL program is compiled with /platform:anycpu (the default) it will
run as 64bit process on X64, there is nothing you can do about this, it's
the OS who decides this. If its compiled with /platform:x86 it will run as a
32bit process.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top