无法加载 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()
说明: 执行当前 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()
dll没找到啊,你看是不是放错路径了,最笨的办法就是可疑的地方都放个dll的拷贝.
去这儿看http://otn.oracle.com/tech/windows/odpnet/faq.html
到底是什么问题了?急啊!