Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
One of ASP.Net project runs well in debugging. However, I got a Compiler error for a deployed ASP.Net project for
C#
using Oracle.DataAccess.Client;  // in Database_Help.cs

C#
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
Comments
Herman<T>.Instance 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
ZurdoDev 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900