Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
I am in a trouble compiling ASP.NET project.
Here is my project environment.

1. OS is windows server 2008 ( 64 bit version)
2. Visual studio 2008
3. oracle database 11g
4. IIS 7

When I installed oracle database 11g, ODP.NET was installed.
I have created web service project in visual studio 2008.
Then I added reference to Oracle.DataAccess.DLL in ODP.NET folder.
Oracle.DataAccess.dll is 64 bit version.

When I compile the project under VS2008, error message say that
can not compile the project because the platform is 32bit environment.

I have tried several measures to eliminate this error, but I can't.
Please give me some adovice.

Thank you for reading.
Posted

It sounds like IIS is configured to run as a 32 bit environment, and you are trying to link in a 64 bit module. In effect, you are trying to use an English dictionary in an country where everyone speaks only Latin.

The easiest solution would be to track down the 32-bit library for Oracle and use that. A messier option would be to rewrite your web server to use the 64-bit architecture. Unfortunately, it has to be one or the other.
 
Share this answer
 
Comments
fjdiewornncalwe 2-Nov-12 16:49pm    
+5. The correct way to fix this issue.
1. We had this the other day install the 32 bit oracle client and compile for any cpu
2. You might want to uninstall the 64 bit while your at it.
3. Save your *.ora files before you uninstall
Note. We tried having the 32 bit and the 64 bit oracle client on the machine running IIS, didnt change the situation so uninstall the 64 bit client
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900