Oracle oci.dll in ASP.NET bin directory cannot be deleted / does not work

I followed the directions here: http://splinter.com.au/blog/?p=156 in an attempt to use a newer version of ODP.NET without installing the Oracle 11g client. I kept an eye on everything except restarting IIS.

However, this caused some problems, and I'm really interested to know why. If I try to use ODP.NET, I encounter an empty exception that was thrown when connecting an Oracle connection (for example, ConnectExample.Open ()).

But the most curious: I can not remove oci.dll. He says that he is used. What can I use this DLL? What exactly does ASP.NET do with the native dll when it is in the bin directory? I thought that maybe this is something that is related to oci.dll, but if I use the DLL in the same way in the WinForm desktop application, then oci.dll will not be blocked, and I can remove it freely.

Also, after I tried to use it, the regular System.Data.OracleClient stops working. Now it throws an exception returned by OCIEnvCreate with -1.

I will try restarting IIS and hope this fixes, but I would like to know what is going on here (and if this can be resolved without restarting IIS). Does anyone have an idea?

Edit: I tried restarting IIS, and that didn't help.

№ 2: , , , , IIS . , . Googling , : Oracle ODP.NET . :

http://kr.forums.oracle.com/forums/thread.jspa?threadID=632296

http://forums.oracle.com/forums/thread.jspa?threadID=549864

. , , . , " , , DLI DLI , ODP"?

/ # 3: , . dll Bin, IIS. . , , .

№4 ( ): , oraocci11.dll(DLL- ++) ASP.NET( ODP.NET), DLL- 11g, oraocci11.dll, , . , , , ,

# 5: mfc71.dll msvcr71.dll, 2 Windows, C/MFC, Bin, , ODP.NET(, , ). , , " ". 2 DLL , , , . , , , reset IIS.

+5
5

( , ) IIS, World Wide Web Publishing Service, services.msc, .

, DLL , asp.net, IIS , ( ..). World Wide Web , ...

+2

Oracle.

. Unlockers . - , , , .

IIS Windows .

, , . - Windows , "oci.dll" , .

+2

DLL, IIS, , IIS. , DLL, # dll. # " " dll, .

oracle, , ... , SO, .

+1

It should be that IIS is not a file locking process, and you are really stuck, Unlocker can help you see what is actually locking the file, as well as release those locks and delete the file with force.

Get here

0
source

There are three things that I know, this will allow you to delete this and other files that are part of the Oracle Data Access Client:

1.) Stop application pools in IIS.

2.) Close Visual Studio.

3.) Restart your computer.

0
source

All Articles