473,472 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

can't load OCI.DLL

Hello,

Another issue has risen after installing Visual Studio 2005. When I use
OracleClient with ASP.NET v1.1 I receive an error stating it can't load
OCI.DLL.

This has never been a issue before so I assume that it is a result of the
new version of VS. Doe's anyone know a fix for this problem?

Thanks,
Bryan
Nov 18 '05 #1
4 5369
That's usually a problem with the Oracle client or permissions.

1. Make sure the ASPNET account has sufficient permissions in the Oracle
folder.
2. Confirm the version of the Oracle client is 8.1.7 or later.
3. Check the connection string is correct.

Use Oracle With ADO.NET
Access Oracle databases from your .NET apps.
http://www.fawcette.com/vsm/2003_01/...es/beauchemin/

Here's a quote:

"Once you install the .NET data provider of your choice and an Oracle client
if
necessary, you need to ensure that the current user has access to
directories
where the client software resides. Later versions of the Oracle client
protect
the client libraries with a discretionary access control list (DACL). If
you're
using ASP.NET, you must also ensure that the appropriate "Web server users"
(usually the user named ASPNET who runs the ASP.NET worker process) can
access
the client. Because ASPNET has only ordinary user privileges and not
administrator privileges, you need to add ASPNET to the Access Control List.
If
the ASPNET user doesn't have access, you'll receive a message such as
"Cannot
load OCI.dll" or "ORA-12154 TNS: could not resolve service name."
use that DLL.
"news.microsoft.com" <re*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hello,

Another issue has risen after installing Visual Studio 2005. When I use
OracleClient with ASP.NET v1.1 I receive an error stating it can't load
OCI.DLL.

This has never been a issue before so I assume that it is a result of the
new version of VS. Doe's anyone know a fix for this problem?

Thanks,
Bryan


Nov 18 '05 #2
Bryan,
as Ken said, make sure the ASPNET user has sufficient rights. We have found that you need to assign
the rights from the root Oracle folder, just doing the /bin folder will not do the trick, obviously
oci.dll loads stuff from outside the bin folder. If you get really keen you could use depends.exe to
examine the imports of oci.dll, and determine what it is loading and from where.

HTH,
sluggy
On Wed, 30 Jun 2004 16:20:47 -0700, "news.microsoft.com" <re*******@hotmail.com> wrote:
Hello,

Another issue has risen after installing Visual Studio 2005. When I use
OracleClient with ASP.NET v1.1 I receive an error stating it can't load
OCI.DLL.

This has never been a issue before so I assume that it is a result of the
new version of VS. Doe's anyone know a fix for this problem?

Thanks,
Bryan


Nov 18 '05 #3

In response to your suggestions

1. Make sure the ASPNET account has sufficient permissions in the Oracle
folder.
I gave the account full permissions and then I receive the following
error.
"Could not create an environment: OCIEnvCreate returned -1"

2. Confirm the version of the Oracle client is 8.1.7 or later.
I am using Oracle client 9.2

3. Check the connection string is correct.
The connection string works with a WinForms app that connects to Oracle.

I checked all of this before posting. I wasn't sure where to go from there
that is why I posted it to the newsgroup.

Thanks,
Bryan
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
That's usually a problem with the Oracle client or permissions.

1. Make sure the ASPNET account has sufficient permissions in the Oracle
folder.
2. Confirm the version of the Oracle client is 8.1.7 or later.
3. Check the connection string is correct.

Use Oracle With ADO.NET
Access Oracle databases from your .NET apps.
http://www.fawcette.com/vsm/2003_01/...es/beauchemin/

Here's a quote:

"Once you install the .NET data provider of your choice and an Oracle client if
necessary, you need to ensure that the current user has access to
directories
where the client software resides. Later versions of the Oracle client
protect
the client libraries with a discretionary access control list (DACL). If
you're
using ASP.NET, you must also ensure that the appropriate "Web server users" (usually the user named ASPNET who runs the ASP.NET worker process) can
access
the client. Because ASPNET has only ordinary user privileges and not
administrator privileges, you need to add ASPNET to the Access Control List. If
the ASPNET user doesn't have access, you'll receive a message such as
"Cannot
load OCI.dll" or "ORA-12154 TNS: could not resolve service name."
use that DLL.
"news.microsoft.com" <re*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hello,

Another issue has risen after installing Visual Studio 2005. When I use
OracleClient with ASP.NET v1.1 I receive an error stating it can't load
OCI.DLL.

This has never been a issue before so I assume that it is a result of the new version of VS. Doe's anyone know a fix for this problem?

Thanks,
Bryan

Nov 18 '05 #4
That was the problem thanks!!
"sluggy" <zz*@hotmail.com (this is fake, don't use it)> wrote in message
news:bd********************************@4ax.com...
Bryan,
as Ken said, make sure the ASPNET user has sufficient rights. We have found that you need to assign the rights from the root Oracle folder, just doing the /bin folder will not do the trick, obviously oci.dll loads stuff from outside the bin folder. If you get really keen you could use depends.exe to examine the imports of oci.dll, and determine what it is loading and from where.
HTH,
sluggy
On Wed, 30 Jun 2004 16:20:47 -0700, "news.microsoft.com" <re*******@hotmail.com> wrote:
Hello,

Another issue has risen after installing Visual Studio 2005. When I use
OracleClient with ASP.NET v1.1 I receive an error stating it can't load
OCI.DLL.

This has never been a issue before so I assume that it is a result of the
new version of VS. Doe's anyone know a fix for this problem?

Thanks,
Bryan

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JS | last post by:
EE instance DB2 v7.2.0 fixpack 3 on WIN2K. I select some data from a table A and write it to a file using the COALESCE function and whitespace as the null character: eg coalesce(col1, ' '). This...
3
by: Prince Kumar | last post by:
When running LOAD with "ALLOW READ ACCESS", I get the following error if select is running againt the table (isolation UR). load.sql --------- db2 load from /u02/data/dly_d040817_test.dat of...
7
by: jane | last post by:
I'm going to use cursor load to load 200GB data in my production database. My database has 2 partitions. but I cannot find more info in the manual about this cursor load. I'm concern about...
3
by: claus.hirth | last post by:
When I execute the following statment using the Command Center it works: LOAD CLIENT FROM 'Y:\\TheFixedWidthData.txt' OF ASC METHOD L ( 1 1,2 11,12 17) REPLACE INTO S00.TheTargetTable...
13
by: usenet | last post by:
Hi. Can any of you explain the major differences in LOAD and IMPORT in laymen terms? I've read the DB2 docs: " Inserts data from an external file with a supported file format into a table,...
1
by: WFB | last post by:
Hi, I have a base class from which all of my pages derive (ABCBasePage). For example, ABCCustomerSelect Inherits ABCPasePage. I would now like to have ABCPocketSelect which should inherit from...
0
by: Simon | last post by:
Hi I try to open a CR report file located on the network path from a web form developed with vs2003 and CR for Visual Studio, but the Load method of ReportDocument object always return error. ...
6
by: sylcheung | last post by:
Hi, How can I be notified when the document load is complet in JavaScript? I am referring to the whold document load is complete, mean all images/external files/frame/iframes have been loaded. ...
2
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
5
by: danfan46 | last post by:
Hi. I'm on DB2 9.5.0.1 on Linux AMD 64 and the database has four partitions where catalog is on partion 0 and user data on 1 thru 3. After a load failure (path to load file was wrong) I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.