我的web.config里面是这样连数据库的: <appSettings>
<!--此处设置数据库连接字符串-->
<add key="ConnectionString" value="Data Source=flyoradb;User Id=lixlee;Password=lixlee;Integrated Security=no"/>
</appSettings>报错出现:
无法加载 DLL (oci.dll)。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.DllNotFoundException: 无法加载 DLL (oci.dll)。源错误:
行 22: OracleDataAdapter myCommand = new OracleDataAdapter("select * from newtable", myConnection);
行 23: DataSet ds = new DataSet();
行 24: myCommand.Fill(ds, "newtable");
行 25: DropDownList1.DataSource=ds;
行 26: DropDownList1.DataTextField = "column_one";
其中24行是红色的.
这是什么原因,求助.
<!--此处设置数据库连接字符串-->
<add key="ConnectionString" value="Data Source=flyoradb;User Id=lixlee;Password=lixlee;Integrated Security=no"/>
</appSettings>报错出现:
无法加载 DLL (oci.dll)。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.DllNotFoundException: 无法加载 DLL (oci.dll)。源错误:
行 22: OracleDataAdapter myCommand = new OracleDataAdapter("select * from newtable", myConnection);
行 23: DataSet ds = new DataSet();
行 24: myCommand.Fill(ds, "newtable");
行 25: DropDownList1.DataSource=ds;
行 26: DropDownList1.DataTextField = "column_one";
其中24行是红色的.
这是什么原因,求助.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货