System.DllNotFoundException: 无法加载 DLL“OraOps10.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
   在 Oracle.DataAccess.Client.OpsTrace.GetRegTraceInfo(UInt32& TrcLevel, UInt32& StmtCacheSize)
   在 Oracle.DataAccess.Client.OraTrace.GetRegistryTraceInfo()
   在 Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
   在 WindowsApplication7.Form1.GetTable(String sql)
   在 WindowsApplication7.Form1.Form1_Load(Object sender, EventArgs e)
   在 System.Windows.Forms.Form.OnLoad(EventArgs e)
   在 System.Windows.Forms.Form.OnCreateControl()
   在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在 System.Windows.Forms.Control.CreateControl()
   在 System.Windows.Forms.Control.WmShowWindow(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在 System.Windows.Forms.Form.WmShowWindow(Message& m)
   在 System.Windows.Forms.Form.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)这是啥意思,怎么打包不成功,怎么解决啊?

解决方案 »

  1.   

    检查一下 OraOps10.dll 这个文件是否存在。
    你有没有安装 Oracle 客户端?
      

  2.   

    安装了,Oracle精简客户端不行吗?
      

  3.   

    那你就检查一下 OraOps10.dll 这个文件是否存在。
      

  4.   

    BIN/DEBUG?OBJ/DEBUG?还是直接引用,直接引用貌似不行啊
      

  5.   

    是否是oracle文件夹权限问题,读取和执行的权限
      

  6.   

    把oracle10g InstantClient换成oracle10g Client后仍然是这问题,重启机器后却出现加载出错,没有权限,然后按照:右键点击Oracle   Home   文件夹(如:D:\oracle\product\10.1.0\Client_1),进入属性,进入安全,选择Authenticated     Users   用户组,检查下面的权限设置,确保具有读取和执行的权限(将Read     and     Execute     的勾去掉,然后又勾上)。 
    这个吗?
      

  7.   

    提示消息是:未能添加"E:\oracle\product\10.2.0\db_1\bin\OraOps10.dll"的引用。请确保此文件可访问的是一个有效的程序集或COM组件。 
      

  8.   

    不用添加到工程里。
    是不是你的系统里缺少了这个文件。
    重新安装一下Oracle的驱动吧。
    也许,这个文件被不小心病毒了。