我将oci.dll拷贝到windows/system32目录下,出现这个错误了:Could not create an environment: OCIEnvCreate returned -1. 
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.Exception: Could not create an environment: OCIEnvCreate returned -1.

解决方案 »

  1.   

    应该是oracle 客户端安装的问题!最好从新安装一下
      

  2.   

    http://www.csdn.net/develop/article/15/15664.shtm
      

  3.   

    http://www.csdn.net/develop/article/15/15664.shtm
      

  4.   

    我重新装了oracle,还是不行,怎么办呢?
      

  5.   

    Does you ASP.NET user (security principal) have access to the directories
    where OracleHome is? This is a common problem when ASP.NET and 9.2 client
    libs are used.
      

  6.   

    设置ASPNET 用户对 OracleHome 的acl访问权限.
      

  7.   

    http://www.csdn.net/develop/article/15/15664.shtm
    你按照这个设置一下呀!!