search
Twitter Rss Feeds
MicrosoftArticlesForumsGroups
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml/Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsGroups
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsGroups
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsGroups
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsGroups
Microsoft Excel
Microsoft Word
Microsoft Powerpoint
Publisher
Money

Operating SystemsArticlesForumsGroups
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsGroups
Share Point
BizTalk
Site Server
Exhange Server
IIS
Transaction Server

Graphic DesignArticlesForumsGroups
Macromedia Flash
Adobe PhotoShop
Microsoft Expression

OtherArticlesForumsGroups
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Reviews
Search Engines
Resumes

 

Previous Thread:   AGGREGATE function don't update

9/14/2005 6:36:02 AM    File or assembly name Oracle.DataAccess not found.
I am trying to deploy an ASP.NET solution using ODP.NET to a server and  
  
receive the error:  
  
File or assembly name Oracle.DataAccess, or one of its dependencies, was not  
  
found.  
  
I see the Oracle.DataAccess.dll in the Oracle_Home\bin directory and Other  
  
OLE access to Oracle is working just fine using the same Oracle_Home.  
  
How does my ASP.NET application determine where to locate the required  
  
Oracle.DataAccess files? What else do I need to do be able to make my ASP.NET  
  
applications work using the Oracle .NET provider?  
  
Much Thanks - Stan

9/15/2005 10:11:49 AM    Re: File or assembly name Oracle.DataAccess not found.
On Wed, 14 Sep 2005 06:36:02 -0700, "Stanley Hammer" <StanleyHammer@discussions.microsoft.com>  
  
wrote:  
  
¤ I am trying to deploy an ASP.NET solution using ODP.NET to a server and  
  
¤ receive the error:  
  
¤  
  
¤ File or assembly name Oracle.DataAccess, or one of its dependencies, was not  
  
¤ found.  
  
¤  
  
¤ I see the Oracle.DataAccess.dll in the Oracle_Home\bin directory and Other  
  
¤ OLE access to Oracle is working just fine using the same Oracle_Home.  
  
¤  
  
¤ How does my ASP.NET application determine where to locate the required  
  
¤ Oracle.DataAccess files? What else do I need to do be able to make my ASP.NET  
  
¤ applications work using the Oracle .NET provider?  
  
See if the following helps:  
  
Problem Description  
  
-------------------  
  
When running an application using the Oracle9i Release 2 (9.2.0.1.0) install  
  
of client software and that attempts to connect to an Oracle database with the  
  
Authenticated User privilege (such as when you use Microsoft's Internet  
  
Information Server (IIS)) through any of the following programmatic interfaces  
  
1. Oracle Provider for OLE DB  
  
2. Microsoft OLE DB Provider for Oracle  
  
3. Oracle ODBC Driver  
  
4. Microsoft ODBC for Oracle  
  
5. Oracle Objects for OLE (OO4O)  
  
6. Microsoft .NET Framework Data Provider for Oracle  
  
you may receive one of the following errors:  
  
(1) Oracle Provider for OLE DB  
  
(a) Error Type:  Microsoft OLE DB Service Components (0x80070005)  
  
Access is denied.  
  
(b) OraOLEDB.Oracle Provider is not registered on the local machine  
  
(2) Microsoft OLE DB Provider for Oracle  
  
(a) Error Type:  Microsoft OLE DB Provider for Oracle (0x80004005)  
  
Oracle client and networking components were not found. These  
  
components are supplied by Oracle Corporation and are part of the  
  
Oracle Version 7.3.3 or later client software installation. Provider  
  
is unable to function until these components are installed.  
  
(b) Error Type:  Microsoft OLE DB Provider for Oracle (0x80004005)  
  
Oracle error occurred, but error message could not be retrieved  
  
from Oracle.  
  
(3) Oracle ODBC Driver  
  
(a) Error Type:  Microsoft OLE DB Provider for ODBC Drivers (0x80004005)  
  
Specified driver could not be loaded due to system error 5 (Oracle  
  
in OraHome92).  
  
(4) Microsoft ODBC for Oracle  
  
(a) The Oracle(tm) client and networking components were not found.  
  
These components are supplied by Oracle Corporation and are part  
  
of the Oracle Version 7.3 (or greater) client software installation.  
  
You will be unable to use this driver until these components have  
  
been installed.  
  
(b) Error number: -2147467259  
  
Error Description: [Microsoft][ODBC Driver Manager] Driver's  
  
SQLAllocHandle on SQL_HANDLE_ENV failed  
  
(5) Oracle Objects for OLE  
  
(a) while using a GLOBAL.ASA file  
  
Error Type:  Active Server Pages (0x0)  
  
An error occurred while creating object 'OraSession'.  
  
(b) not using a GLOBAL.ASA file  
  
Error Type:  Microsoft VBScript runtime (0x800A0046)  
  
Permission denied: 'CreateObject'  
  
(6) Microsoft .NET Framework Data Provider for Oracle  
  
(a) System.DllNotFoundException: Unable to load DLL (oci.dll).  
  
at System.Data.OracleClient.DBObjectPool.GetObject(Boolean&  
  
isInTransaction)  
  
at System.Data.OracleClient.OracleConnectionPoolManager.  
  
GetPooledConnection(String encryptedConnectionString,  
  
OracleConnectionString options, Boolean& isInTransaction)  
  
at System.Data.OracleClient.OracleConnection.OpenInternal  
  
(OracleConnectionString parsedConnectionString, Object transact)  
  
at System.Data.OracleClient.OracleConnection.Open()  
  
at WCWSItemAvailability.ETAAvailability.SingleAvailability(String  
  
ItemNumber, String BusinessUnit, Int32 OrderQty, Int32&  
  
AvailableQty, Int32& OnHandQty, String& ETADate, Int32& Error)  
  
at WCWSItemAvailability.ETAAvailability.XMLAvailability(String  
  
XMLInput)  
  
(7) Other miscellaneous errors  
  
(a) The Specified Module Could Not Be Found  
  
(b) ORA-00604: error occurred at recursive SQL level 1  
  
ORA-12705: invalid or unknown NLS parameter value specified  
  
(c) Unable to load DLL (OraOps9.dll):  
  
...  
  
[DllNotFoundException: Unable to load DLL (OraOps9.dll).]  
  
(d) System Error 998 trying to run ASP page  
  
Solution Description  
  
--------------------  
  
Oracle 9.2 Client software requires that you give the Authenticated User  
  
privilege to the Oracle Home by following these steps:  
  
1.  Log on to Windows as a user with Administrator privileges.  
  
2.  Launch Windows Explorer from the Start Menu and and navigate to the  
  
ORACLE_HOME folder.  This is typically the "Ora92" folder under the  
  
"Oracle" folder (i.e. D:\Oracle\Ora92).  
  
3.  Right-click on the ORACLE_HOME folder and choose the "Properties" option  
  
from the drop down list.  A "Properties" window should appear.  
  
4.  Click on the "Security" tab of the "Properties" window.  
  
5.  Click on "Authenticated Users" item in the "Name" list (on Windows XP  
  
the "Name" list is called "Group or user names").  
  
6.  Uncheck the "Read and Execute" box in the "Permissions" list under the  
  
"Allow" column (on Windows XP the "Permissions" list is called  
  
"Permissions for Authenticated Users").  
  
7.  Re-check the "Read and Execute" box under the "Allow" column (this is  
  
the box you just unchecked).  
  
8.  Click the "Advanced" button and in the "Permission Entries" list make  
  
sure you see the "Authenticated Users" listed there with:  
  
Permission = Read & Execute  
  
Apply To = This folder, subfolders and files  
  
If this is NOT the case, edit that line and make sure the "Apply onto"  
  
drop-down box is set to "This folder, subfolders and files".  This  
  
should already be set properly but it is important that you verify this.  
  
9.  Click the "Ok" button until you close out all of the security properties  
  
windows.  The cursor may present the hour glass for a few seconds as it  
  
applies the permissions you just changed to all subfolders and files.  
  
10.  Reboot your computer to assure that these changes have taken effect.  
  
Re-execute the application and it should now work.  
  
Explanation  
  
-----------  
  
If you install Oracle9i Release 2 (9.2.0.1.0) on a computer running Windows  
  
with an NTFS partition, the contents of ORACLE_HOME directory will not be  
  
visible to users who are authenticated on that machine.  These permissions  
  
were not set properly when the software was installed.  
  
Applications that were working fine with previous versions of Oracle software  
  
will stop working when they upgrade to Oracle 9.2.  
  
NOTE: The application will continue to work if the user has logged onto the  
  
machine as an Administrator.  
  
Any application that is using the Authenticated User privilege will not work.  
  
A notable example would be IIS which might service some of the requests based  
  
on the Authenticated User privileges.  
  
To demonstrate the problem in further detail, you can log on to the operating  
  
system as an authenticated machine user.  You won't be able browse the contents  
  
of the ORACLE_HOME directory demonstrating your inability to load any Oracle DLLs  
  
or make a connection.  
  
Additional Information  
  
----------------------  
  
The above error messages may not only be encountered when using Oracle 9.2  
  
client software but may also exists when running into general permissions  
  
issues using third party products on a Windows platform.  
  
Paul  
  
~~~~  
  
Microsoft MVP (Visual Basic)

9/15/2005 2:34:49 PM    Re: File or assembly name Oracle.DataAccess not found.
On Thu, 15 Sep 2005 08:31:05 -0700, "Stanley Hammer" <StanleyHammer@discussions.microsoft.com>  
  
wrote:  
  
¤ Thanks Paul.  
  
¤  
  
¤ Yesterday, I installed the ODP.NET and used these setup steps from your  
  
¤ previous posts and got the app working. I believe my issue is the Instant  
  
¤ Client not supporting the .NET.  
  
¤  
  
Yes, the instant client does not provide nearly enough functionality.  
  
¤ Is there any easy way to tell what Oracle client is installed on the server?  
  
¤  
  
You can probably look at the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE Registry key. Just keep in mind that  
  
it is possible to have more than one Oracle client installed at the same time.  
  
Paul  
  
~~~~  
  
Microsoft MVP (Visual Basic)

10/7/2005 11:44:43 AM    Re: File or assembly name Oracle.DataAccess not found.
Hello  
  
I am trying to use the System.Data.Oraclient for my ASP.NET application  
  
.. But I am getting the following error message.  
  
File or assembly name System.Data.OracleClient, or one of its  
  
dependencies, was not found.  
  
Description: An unhandled exception occurred during the execution of  
  
the current web request. Please review the stack trace for more  
  
information about the error and where it originated in the code.  
  
Exception Details: System.IO.FileNotFoundException: File or assembly  
  
name System.Data.OracleClient, or one of its dependencies, was not  
  
found.  
  
Source Error:  
  
An unhandled exception was generated during the execution of the  
  
current web request. Information regarding the origin and location of  
  
the exception can be identified using the exception stack trace below.  
  
Assembly Load Trace: The following information can be helpful to  
  
determine why the assembly 'System.Data.OracleClient' could not be  
  
loaded.  
  
=3D=3D=3D Pre-bind state information =3D=3D=3D  
  
LOG: DisplayName =3D System.Data.OracleClient, Version=3D1.0.3300.0,  
  
Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089  
  
(Fully-specified)  
  
LOG: Appbase =3D file:///C:/Inetpub/Nik_Development  
  
LOG: Initial PrivatePath =3D bin  
  
Calling assembly : auditdev2.kdc.capitalone.com,  
  
Version=3D1.0.2106.24581, Culture=3Dneutral, PublicKeyToken=3Dnull.  
  
=3D=3D=3D  
  
LOG: Publisher policy file is not found.  
  
LOG: No redirect found in host configuration file  
  
(C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).  
  
LOG: Using machine configuration file from  
  
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.  
  
LOG: Post-policy reference: System.Data.OracleClient,  
  
Version=3D1.0.3300.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089  
  
LOG: Attempting download of new URL  
  
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET  
  
Files/root/ae0b0602/52e78a83/System.Data.OracleClient.DLL.  
  
LOG: Attempting download of new URL  
  
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET  
  
Files/root/ae0b0602/52e78a83/System.Data.OracleClient/System.Data.OracleCli=  
  
ent.DLL.  
  
LOG: Attempting download of new URL  
  
file:///C:/Inetpub/Nik_Development/bin/System.Data.OracleClient.DLL.  
  
LOG: Attempting download of new URL  
  
file:///C:/Inetpub/Nik_Development/bin/System.Data.OracleClient/System.Data=  
  
..OracleClient.DLL.  
  
LOG: Attempting download of new URL  
  
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET  
  
Files/root/ae0b0602/52e78a83/System.Data.OracleClient.EXE.  
  
LOG: Attempting download of new URL  
  
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET  
  
Files/root/ae0b0602/52e78a83/System.Data.OracleClient/System.Data.OracleCli=  
  
ent.EXE.  
  
LOG: Attempting download of new URL  
  
file:///C:/Inetpub/Nik_Development/bin/System.Data.OracleClient.EXE.  
  
LOG: Attempting download of new URL  
  
file:///C:/Inetpub/Nik_Development/bin/System.Data.OracleClient/System.Data=  
  
..OracleClient.EXE.  
  
Stack Trace:  
  
[FileNotFoundException: File or assembly name System.Data.OracleClient,  
  
or one of its dependencies, was not found.]  
  
auditdev2.kdc.capitalone.com.WebForm1.Button1_Click(Object sender,  
  
EventArgs e) +0  
  
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108  
  
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaiseP=  
  
ostBackEvent(String  
  
eventArgument) +57  
  
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler  
  
sourceControl, String eventArgument) +18  
  
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)  
  
+33  
  
System.Web.UI.Page.ProcessRequestMain() +1292  
  
I have changed the permissions on Ora817 folder under program files and  
  
that has not helped. Any clue why this must be happenning..  
  
THanks a bunch  
  
Paul Clement wrote:  
  
ssions.microsoft.com>  
  
ur  
  
tant  
  
server?  
  
key. Just keep in mind that  
  
time.

10/10/2005 12:28:30 PM    Re: File or assembly name Oracle.DataAccess not found.
On 7 Oct 2005 11:44:43 -0700, "Nik" <nikhil_naik@hotmail.com> wrote:  
  
¤ Hello  
  
¤  
  
¤ I am trying to use the System.Data.Oraclient for my ASP.NET application  
  
¤ . But I am getting the following error message.  
  
¤  
  
¤  
  
¤  
  
¤ File or assembly name System.Data.OracleClient, or one of its  
  
¤ dependencies, was not found.  
  
¤ Description: An unhandled exception occurred during the execution of  
  
¤ the current web request. Please review the stack trace for more  
  
¤ information about the error and where it originated in the code.  
  
¤  
  
¤ Exception Details: System.IO.FileNotFoundException: File or assembly  
  
¤ name System.Data.OracleClient, or one of its dependencies, was not  
  
¤ found.  
  
¤  
  
Yeah, I would check the information from my first reply to verify that everything is configured  
  
properly with respect to permissions.  
  
Paul  
  
~~~~  
  
Microsoft MVP (Visual Basic)


Pete's Blog   |    Pete's Resume   |    Robbe's Blog   |    Robbe's Resume   |    Archive #2   |    Archive #3   |    Dotnetslackers   |    XmlPitStop   |    Advertise   |   Contact Us   |   Privacy   |   Copyright (c) 2000 - 2009 eggheadcafe.com  All rights reserved.