Click here to Skip to main content
13,193,590 members (50,204 online)
Rate this:
 
Please Sign up or sign in to vote.
One of ASP.Net project runs well in debugging. However, I got a Compiler error for a deployed ASP.Net project for
using Oracle.DataAccess.Client;  // in Database_Help.cs

Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
Compiler Error Message: CS0246: The type or namespace name 'Oracle' could not be found (are you missing a using directive or an assembly reference?)

In this project, I have another aspx file that also uses call the oracle-related functions in the same Database_Help.cs. This page displays well.
Wish to get some help from you. Thanks.

What I have tried:

Tried multiple times in deploying my project in IIS 7.5.
Posted 5-Feb-16 1:22am
s yu933
Comments
digimanus 5-Feb-16 7:38am
   
Is the oracle client installed on the machine?
Sanjay K. Gupta 5-Feb-16 7:38am
   
Upload "Oracle.ManagedDataAccess.dll" in "bin" folder
RyanDev 5-Feb-16 7:41am
   
You're missing files.
s yu 5-Feb-16 14:49pm
   
Thanks for all of you who responded my thread. I have 2 versions (distinguished here in A & B) of the project with identical codes, but they are built differently somehow. In Version A, the files in the \bin\ contain only about 1 dozen of dlls; whilst in Version B, the \bin\ folder contains significantly more files, including project.dll, project.pdb, etc. which are not in Version A. I did such a test: copy Version B's files in the \bin\ into Version A's \bin\. Then Version A works well. The oracle-related problem is gone. Actually, Verion A project was copied from Version B. T compared both project's properties and they are identical also. I could not figure out why Version A compiled differently from B's.

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


Advertise | Privacy |
Web01 | 2.8.171018.2 | Last Updated 25 Feb 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100