无法加载 DLL (OraOps10.dll)。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.DllNotFoundException: 无法加载 DLL (OraOps10.dll)。源错误: 
行 29:  {
行 30:  //Provider=MSDAORA.1;Password=iims;User   ID=iims;Data   Source=intoserv;Persist   Security   Info=True
行 31:  OracleConnection con= new OracleConnection("Data Source=orcl_linxin-peng;user id=user_o;password=user_o");
行 32:  string sql="select * from test";
行 33:  OracleCommand command = new OracleCommand(sql,con);
 源文件: c:\inetpub\wwwroot\webappli\webform1.aspx.cs    行: 31 堆栈跟踪: 
[DllNotFoundException: 无法加载 DLL (OraOps10.dll)。]
   Oracle.DataAccess.Client.OpsTrace.GetRegTraceInfo(UInt32& TrcLevel) +0
   Oracle.DataAccess.Client.OraTrace.GetRegistryTraceInfo()
   Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
   WebAppli.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\webappli\webform1.aspx.cs:31
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain() 

解决方案 »

  1.   

    异常详细信息: System.DllNotFoundException
    dll没找到啊,你看是不是放错路径了,最笨的办法就是可疑的地方都放个dll的拷贝.
      

  2.   

    装客户端了吗? 注意ASPNET权限问题
    去这儿看http://otn.oracle.com/tech/windows/odpnet/faq.html
      

  3.   

    我装的是oracle 10g啊!
    到底是什么问题了?急啊!
      

  4.   

    在安装目录Oracle\ora90  打开Ora90的-》属性-》安全,选Authenticated Users 看下面的属性  将Read and Execute 的勾去掉,按确定,然后再勾上,确定重新启动机器。