L
li2
Unregistered / Unconfirmed
GUEST, unregistred user!
同样的代码可以用窗口应用程序执行没点问题。
我写的asp.net 代码编译没点问题,在WEB 上加载时出错
“/WebApplication1”应用程序中的服务器错误。
--------------------------------------------------------------------------------
无法加载 DLL (oci.dll)。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.DllNotFoundException: 无法加载 DLL (oci.dll)。
源错误:
行 107: {
行 108: Label1.Text="asdfsd";//label1.text="sadf";
行 109: oracleDataAdapter1.Fill(dataSet11);
行 110: DataGrid1.DataBind();
行 111:
源文件: c:/inetpub/wwwroot/webapplication1/webform1.aspx.cs 行: 109
堆栈跟踪:
[DllNotFoundException: 无法加载 DLL (oci.dll)。]
System.Data.OracleClient.DBObjectPool.GetObject(Object owningObject, Boolean&
isInTransaction)
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean&
isInTransaction)
System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionString parsedConnectionString, Object transact)
System.Data.OracleClient.OracleConnection.Open()
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState&
originalState)
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in c:/inetpub/wwwroot/webapplication1/webform1.aspx.cs:109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573;
ASP.NET 版本:1.1.4322.573
我写的asp.net 代码编译没点问题,在WEB 上加载时出错
“/WebApplication1”应用程序中的服务器错误。
--------------------------------------------------------------------------------
无法加载 DLL (oci.dll)。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.DllNotFoundException: 无法加载 DLL (oci.dll)。
源错误:
行 107: {
行 108: Label1.Text="asdfsd";//label1.text="sadf";
行 109: oracleDataAdapter1.Fill(dataSet11);
行 110: DataGrid1.DataBind();
行 111:
源文件: c:/inetpub/wwwroot/webapplication1/webform1.aspx.cs 行: 109
堆栈跟踪:
[DllNotFoundException: 无法加载 DLL (oci.dll)。]
System.Data.OracleClient.DBObjectPool.GetObject(Object owningObject, Boolean&
isInTransaction)
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean&
isInTransaction)
System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionString parsedConnectionString, Object transact)
System.Data.OracleClient.OracleConnection.Open()
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState&
originalState)
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in c:/inetpub/wwwroot/webapplication1/webform1.aspx.cs:109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573;
ASP.NET 版本:1.1.4322.573