Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Description: An ASP.Net project runs fine in debugging mode. After the build, the project was deployed in IIS 7.5. For the deployed project in IIS, I clicked Manage Application > Browse to open it, but got the error:
Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Before this build, I did not load Oracle.DataAccess.dll, and there was no problem at all. After I loaded the Oracle.Access.dll, this type of error comes out. Then I tried to clean the colution, and then removed/disabled/commented out the Oracle.DataAccess.dll component, but the error still exists after the deployment. This error is strange to me since there is NO Oracle.Access in my project. Appreciate if you can help for this.
Posted

The solution could be if you check the references folder in your project and if there is your Oracle.DataAccess.dll file just simple remove it and after rebuild your solution.
 
Share this answer
 
Comments
[no name] 18-Mar-14 11:53am    
Tried your approach but not working (as explained in my posted thread). But I figured it out already (see my Solution part). Thanks.
By referencing
HTML
<a href="https://community.oracle.com/thread/2267977?start=0&tstart=0">https://community.oracle.com/thread/2267977?start=0&tstart=0</a>[<a href="https://community.oracle.com/thread/2267977?start=0&tstart=0" target="_blank" title="New Window">^</a>]
, I set "Enable 32-bit Applications" (IIS Application Pools > Advanced Settings) to "true". The error was gone. Thanks for your review.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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