Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have old asp.net web application which is moved from windows server 2003 ( i beleieve ) to 64 bit windows server 2008 r2. My application was built in .NEt 2.0 Every time i tried to run the application it throws error like 'ould not load file or assembly 'Oracle.Web, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. Access is denied' and if i refreshed the page it shows different error like some issue in ServiceModel.
I set the application to run on application pool .Net 2.0. I have set 32 bit false, managed pipe line mode is classic. It is running on Network Service Identity.
When it threw Oracle client exception, i looked into GAC and we do have Oracle web version 2.112.1.0 x86,amd in our server.
When it threw ServiceModel error, i checked applicationHost config, and we do have below settings in the configuration file.
I also tried to build application in .Net 4.0 after changing by changing Oracle Client to Oracle managed access library. Application built successfully without any error but when i tried to publish the application, it threw cannot load MyWebApp.dll error.
I do not know how do i make the application run.

What I have tried:

I set the application to run on application pool .Net 2.0. I have set 32 bit false, managed pipe line mode is classic. It is running on Network Service Identity.
When it threw Oracle client exception, i looked into GAC and we do have Oracle web version 2.112.1.0 x86,amd in our server.
When it threw ServiceModel error, i checked applicationHost config, and we do have below settings in the configuration file.
I also tried to build application in .Net 4.0 after changing by changing Oracle Client to Oracle managed access library. Application built successfully without any error but when i tried to publish the application, it threw cannot load MyWebApp.dll error.
Posted
Updated 17-Aug-18 4:44am

1 solution

This is just a guess but it seems like your site code is compiled to target "AnyCPU". The hint I'm using is that you're using a 32-bit Oracle client and you moved the code to a 64-bit server.

Go into the Project Properties, Build tab, and change the platform target from AnyCPU to x86. Recompile and deploy and see what happens.
 
Share this answer
 
Comments
istudent 17-Aug-18 11:24am    
I did as you said, build and publick app targeting to x86, set app pool to .net 2.0, 32 bit enabled, classic managed pipeline, identity to network service but it is still complaining Could not load file or assembly 'Oracle.Web, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. Access is denied.
Dave Kreskowiak 17-Aug-18 11:38am    
What version of the Oracle Client installed on the server?
istudent 17-Aug-18 11:41am    
In c:\windows\assembly\ there are oracle client with same version for x86 and amd
Dave Kreskowiak 17-Aug-18 11:51am    
That doesn't answer the question and that's not where the Oracle Client gets installed. By default, it's off the root of C: in C:\oracle.
istudent 17-Aug-18 11:53am    
we do not have then. I could see ODP folder but not Oracle

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