Asp.net can not load oci.dll and other error solutions

  
                  

Problem phenomenon: net access to oracle9i under windows2003 prompts "cannot load oci.dll" or "can not find the entry point named ocienvcreate in dll oci.dll"

Method one

Repair method:

1: Find the installation directory of the oracle client, for example: E:/oracle/ora92, select the directory, delete it in the attribute--security & rdquo; "ASP .NET, Users users" and then add it, and give "complete control or modify permissions"; give everyone "all control or modify permissions", note: the site's directory permissions should also be set to Ervryone is fully accessible, otherwise oracle is good, the website can't be accessed. Restart. 2: The easiest and straightforward way is to enable ASP.Net user emulation, add in the <system.web></system.web> configuration section of web.config: <identity impersonate="true" userName=" ;USER" password="PASSWORD"/> For example: <identity impersonate="true" userName="administrator" password="123456"></identity>

Second

After studying for a long time, what directory permissions, registry, have not worked.

Finally, helpless to copy oraclient8.dll, orasql9.dll, oci.dll to System32 to solve the problem.

Code is as follows

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSDTC/MTxOCI]

<;OracleXaLib”=”oraclient8.dll” “OracleSqlLib”=”orasql8 .dll” “OracleOciLib”=”oci.dll”


For the first method of the xp system, there is no security option in the attribute by default, the solution: tool - >Folder Options->View, Remove "Use Simple Wenjia Sharing" Options

Attached to Others

Solving ASP.NET Connections to Oracle Database Cannot Load DLLs (oci.dll) Cancel in folder option □ Simple file sharing (recommended) The partition format of the ORACLE_HOME path is NTFS format: ora92 attribute in the Oracle installation directory -> Security permission set to anyone can access or set This user can access ASPNET. Ensure that ASP.NET users have access to oci.dll.

Copyright © Windows knowledge All Rights Reserved