Solved

Error Compiling ASP.NET Project Using Oracle

Posted on 2011-09-15
3
296 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
  • 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 500 total points
ID: 36568479
its an incorrect version and hence throwing the error.. try getting the exact version installed...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hey Audio! 3 30
IIS redirect 1 71
Problem to refer to value 8 51
MediaHelp 4 23
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

825 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