下面的代码是连接数据库的:
public DataSet ExecuteDataSet(string sql)
{
OracleConnection conn = new OracleConnection("data Source=wu;user id=wu2008;password=wu2008;");
OracleDataAdapter dap = new OracleDataAdapter(sql,conn); DataSet ds = new DataSet(); dap.Fill(ds); return ds;
}
错误:
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 31: DataSet ds = new DataSet();
Line 32:
Line 33: dap.Fill(ds);
Line 34:
Line 35: return ds;我并没有引用这个oci.dll文件阿?为什么阿?
public DataSet ExecuteDataSet(string sql)
{
OracleConnection conn = new OracleConnection("data Source=wu;user id=wu2008;password=wu2008;");
OracleDataAdapter dap = new OracleDataAdapter(sql,conn); DataSet ds = new DataSet(); dap.Fill(ds); return ds;
}
错误:
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 31: DataSet ds = new DataSet();
Line 32:
Line 33: dap.Fill(ds);
Line 34:
Line 35: return ds;我并没有引用这个oci.dll文件阿?为什么阿?
解决方案 »
- 如何解析json数据?
- 小弟刚入门请教大神们一些关于WRK内核的问题
- 关于DIV显示和隐藏问题!!
- C#中遍历文件夹目录的问题
- C# WebClient获取网址源代码时,如果目标网站延迟不能获取其源码,该什么弄?是设置延时还是怎么弄?
- StreamReader出毛病了?还是网页加入了特殊字符?
- 简单的文本读取问题
- 在线等待:如何通过app.config配置来自动寻找应用程序所需的数据库?谢谢!
- 怎么扩展OpenFileDiaolg(高人进入)
- 一个高效的,精确的定时器,应该是什么样子的?
- winfrom窗体上有几个richTextBox控件,如何知道我选中的那一个?
- 已经获得单帧图像的信息头和裸数据,C#该如何将其重新显示成图像?
你的 ORACLE_HOME 的权限设置有问题,把 ASP_NET 用户赋权就可以了
给这两个权限不可以吗?