[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

Error Compiling ASP.NET Project Using Oracle

I am attempting to compile an ASP.NET/C# project that was completed by another developer, whom is no longer with the organization I am with. I have never used Oracle databases before, however I have used MS SQL Server. When I attempt to just compile the project, which is the original working code on the company intranet site, I receive the error message "Error      3      Could not load file or assembly 'Oracle.DataAccess, Version=10.2.0.100, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies.". I also have received the warning stating "Warning      1      C:\Documents and Settings\thenthorn\My Documents\Visual Studio 2008\Projects\openservices\SiteInfoSolution\SiteInfo\MasterPage.master: ASP.NET runtime error: Could not load file or assembly 'Oracle.DataAccess, Version=10.2.0.100, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. " I am able to logon to the Oracle database using a third party tool, however I am unable to compile the same code that would load the site. I am able to view  the site on the intranet, but not via the local code that I have. Any help that anyone would be able to provide would be greatly appreciated. The attached code is the web.config file causing the error. (Reference line 41 of the attached file, where the error message is occurring.
 web.config
0
thenthorn1010
Asked:
thenthorn1010
  • 2
1 Solution
 
dexterrajeshCommented:
hi,

if check if the below assembly is there in the GAC or bin as applicable

Oracle.DataAccess, Version=10.2.0.100, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies

if not install it from: http://download.oracle.com/docs/html/E10927_01/InstallODP.htm
0
 
thenthorn1010Author Commented:
dexterrajesh,

I am using Win XP in order to develop this ASP.NET/C# web page, and I do see the DLL for Oracle.DataAccess in the C:\windows\assembly directory. The version on the file is 2.112.1.0. Just a lucky thought, would this be causing the issue because this DLL is outdated, or too old for the version of the program I will be editing?
0
 
dexterrajeshCommented:
its an incorrect version and hence throwing the error.. try getting the exact version installed...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now