.NET Framework Bookmark and Share   
 index > 64-Bit .NET Framework Development > 32-bit application not working on 64-bit platform
 

32-bit application not working on 64-bit platform

I am using VS2008 Version 3.5 SP1.

Initially I build my code with "Any CPU" setting in Configuration Manager.
It worked fine on 32-bit but did not work on 64-bit platform.
In order to run the code on 64-bit platform, I build and compiled the code with "x86" setting in Configuration manager.
But still the dll does not work.

Whatsettings need to be done to run a 32-bit compiled code on 64-bit platform?

Thanks
  • Edited byN.Ag Friday, August 07, 2009 2:41 PM
  •  
N.Ag
This is a 32-bit COM component. You cannot use the "Any CPU" setting, you must select x86.

Hans Passant.
nobugz
"Does not work" doesn't help us help you. Setting the platform target on a DLL has no effect. The setting for the EXE is what counts.
Hans Passant.
nobugz
The application hasone EXE and uses 2 different dlls, based on options selected by the user.
One of the dll works fine with the same EXE but other does not. Although both have the same settings ie "Any CPU".
Except the dll in question uses Microsoft Dynamics AX Business COM Connector.
I get an error "Vendor Assembly could not be loaded : Path specified was : C:\Program Files (x86)\...\ abc.dll"

But the dll exists in the specified location.

N.Ag
This is a 32-bit COM component. You cannot use the "Any CPU" setting, you must select x86.

Hans Passant.
nobugz
Thanks for your quick reply.

Is the 64-bit COM component available for AX 4.0 SP2? If yes, how can it be obtained?

Thanks again
N.Ag
Don't ask here, ask in a Dynamics forum.

Hans Passant.
nobugz

You can use google to search for other answers

Custom Search

More Threads

• Can we use Enterprise Library 3.1 in both 32bit and 64bit OS
• Developing our app for 64-bit on a 32-bit OS
• Can a managed code application run in native 64-bit and access shared memory with a 32-bit app running in WoW64?
• Will .NET 2003 running under a 32-bit OS function on a 64-bit chip architecture?
• About the IO.File.Delete function in Vista 64-bit
• Variant Size under Win64
• The specified module could not be found. (Exception from HRESULT: 0x8007007E)
• Access to the path "c:\ab\cd\file.xml" is denied
• 64 Bit Solution From v Studio 2005 still has x86 dependancies
• Configuration Manager "Any CPU"