用asp.net如何连接oracle数据库!?
我的环境是:
VS.net 2003
.net Framework 1.1
oracle 9i
我现在需要用asp.net 连接oracle数据库。我试过在用C#.net 创建windos application 的时候,连接成功,没有问题。然后,我换成asp.net 连接,连接的时候就报错,请那位高手帮帮忙啊!?错误如下:
Unable to load DLL (oci.dll).
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.DllNotFoundException: Unable to load DLL (oci.dll).
Source Error:
Line 28: this.Label1.Text = this.oracleConnection1.ConnectionString;
Line 29: DataSet ds = new DataSet();
Line 30: this.oracleConnection1.Open();
Line 31: this.oracleDataAdapter1.Fill(ds);
Line 32: int i = ds.Tables[0].DefaultView.Count;
Source File: c:\inetpub\wwwroot\testconnectdb\webform1.aspx.cs Line: 30
Stack Trace:
[DllNotFoundException: Unable to load 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()
TestConnectDB.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\testconnectdb\webform1.aspx.cs:30
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573