64-bit target server base, 32-bit OS development

Background: I am developing an ASP.NET web application that will be developed in Visual Studio 2010 on 32-bit Windows XP (the standard of the company cannot be changed). The target server is 64-bit Windows Server 2008 (IIS 7). The application will reference an unmanaged dll (Oracle ODP.NET, 11.2), which has both 32-bit and 64-bit versions.

Question: In general, what is the best approach for developing a .NET application that references an unmanaged DLL that has 32-bit and 64-bit versions from a 32-bit OS development environment that deploys to 64 OS? One of the solutions mentioned was to switch to 32-bit mode in IIS, but I would like to keep the performance gain from the 64-bit driver.

+3
source share
1 answer

If the DLL name is the same for 32 and 64 bits, then just write it to 32, but when deploying for 64 bits, just use the desired DLL. It should just work, assuming the library used IntPtr for the right thing.

+1
source

All Articles