Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Error Compiling ASP.NET Project Using Oracle

Posted on 2011-09-15
3
Medium Priority
?
303 Views
Last Modified: 2012-05-12
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
Comment
Question by:thenthorn1010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:dexterrajesh
ID: 36544384
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
 

Author Comment

by:thenthorn1010
ID: 36544535
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
 
LVL 9

Accepted Solution

by:
dexterrajesh earned 2000 total points
ID: 36568479
its an incorrect version and hence throwing the error.. try getting the exact version installed...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question