C# 类型为'的首次机会例外;System.DllNotFoundException';发生在glib-sharp.dll中
我正在尝试调试,每次都会出现此错误并停止执行。我已将所有引用复制到调试文件夹中,但仍然存在错误。我需要知道如何引用调试文件夹中的C# 类型为'的首次机会例外;System.DllNotFoundException';发生在glib-sharp.dll中,c#,.net,windows,gtk#,C#,.net,Windows,Gtk#,我正在尝试调试,每次都会出现此错误并停止执行。我已将所有引用复制到调试文件夹中,但仍然存在错误。我需要知道如何引用调试文件夹中的glib sharp.dll。我的错误输出是: 'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Symbols
glib sharp.dll
。我的错误输出是:
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Symbols loaded.
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\IT-Administrator\Documents\Visual Studio 2010\Projects\web4\bin\x86\Debug\WebMobility.vshost.exe'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\gtk-sharp.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\gdk-sharp.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\pango-sharp.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\glib-sharp.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\Mono.Posix.dll'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
The thread 'vshost.NotifyLoad' (0x1a5c) has exited with code 0 (0x0).
The thread '<No Name>' (0x1a48) has exited with code 0 (0x0).
The thread '<No Name>' (0x1584) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0xbf8) has exited with code 0 (0x0).
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\IT-Administrator\Documents\Visual Studio 2010\Projects\web4\bin\x86\Debug\WebMobility.exe'
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\WMLibrary.dll', Symbols loaded.
'WebMobility.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\ProgramData\Red Gate\.NET Reflector\DevPath\atk-sharp.dll'
Starting WMeXplore
A first chance exception of type 'System.DllNotFoundException' occurred in glib-sharp.dll
A first chance exception of type 'System.TypeInitializationException' occurred in WebMobility.exe
System.TypeInitializationException: The type initializer for 'Gtk.Application' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'glibsharpglue-2': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at GLib.Thread.glibsharp_g_thread_supported()
at GLib.Thread.get_Supported()
at Gtk.Application..cctor()
--- End of inner exception stack trace ---
at Gtk.Application.Init()
at WMeXplore.MainClass.Main(String[] args)
The thread 'vshost.RunParkingWindow' (0x1f44) has exited with code 0 (0x0).
The thread '<No Name>' (0x9c4) has exited with code 0 (0x0).
The program '[7716] WebMobility.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载“C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0_b77a5c561934e089\mscorlib.dll”,加载符号。
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载的“C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0_uuB03F5F7F11D50A3A\Microsoft.VisualStudio.HostingProcess.Utilities.dll”
'WebMobility.vshost.exe'(托管(v4.0.30319)):加载'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0_b77a5c561934e089\System.Windows.Forms.dll'
'WebMobility.vshost.exe'(托管(v4.0.30319)):加载'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0.0.0_uuB03F5F7F11D50A3A\System.Drawing.dll'
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载的“C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0_b77a5c561934e089\System.dll”
'WebMobility.vshost.exe'(托管(v4.0.30319)):加载'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载的“C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll”
'WebMobility.vshost.exe'(托管(v4.0.30319)):加载'C:\Users\IT Administrator\Documents\Visual Studio 2010\Projects\web4\bin\x86\Debug\WebMobility.vshost.exe'
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\gtk sharp.dll”
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\gdk sharp.dll”
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\pango sharp.dll”
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\glib sharp.dll”
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\Mono.Posix.dll”
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载的“C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0_uuB77A5C561934E089\System.Xml.dll”
线程“vshost.NotifyLoad”(0x1a5c)已退出,代码为0(0x0)。
线程“”(0x1a48)已退出,代码为0(0x0)。
线程“”(0x1584)已退出,代码为0(0x0)。
线程“vshost.LoadReference”(0xbf8)已退出,代码为0(0x0)。
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载的“C:\Users\IT Administrator\Documents\Visual Studio 2010\Projects\web4\bin\x86\Debug\WebMobility.exe”
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\WMLibrary.dll”,加载了符号。
“WebMobility.vshost.exe”(托管(v4.0.30319)):加载了“C:\ProgramData\Red Gate\.NET Reflector\DevPath\atk sharp.dll”
开始WMeXplore
glib-sharp.dll中发生类型为“System.DllNotFoundException”的第一次意外异常
WebMobility.exe中首次出现类型为“System.TypeInitializationException”的异常
System.TypeInitializationException:“Gtk.Application”的类型初始值设定项引发异常。-->System.DllNotFoundException:无法加载DLL“glibsharpglue-2”:找不到指定的模块。(来自HRESULT的异常:0x8007007E)
在GLib.Thread.glibsharp_g_Thread_supported()中
在GLib.Thread.get_Supported()上
在Gtk.Application..cctor()上
---内部异常堆栈跟踪的结束---
在Gtk.Application.Init()处
位于WMeXplore.MainClass.Main(字符串[]args)
线程“vshost.RunParkingWindow”(0x1f44)已退出,代码为0(0x0)。
线程“”(0x9c4)已退出,代码为0(0x0)。
程序“[7716]WebMobility.vshost.exe:Managed(v4.0.30319)”已退出,代码为0(0x0)。
安装后的第二个错误
private enum CameraEnum // errror identifier excepted public is keyword. {
{
public const GtkController<T>.CameraEnum Camsat = GtkController<T>.CameraEnum.Camsat;,identifier e3xcepted
public const GtkController<T>.CameraEnum Docking = GtkController<T>.CameraEnum.Docking;,//errro :invalid token',' in class,struct, or interface member declaration//
public const GtkController<T>.CameraEnum Internal = GtkController<T>.CameraEnum.Internal;
}
public delegate void TaskFunction();
}
} //Error type or namespace definition, or end of file excepted.//
private enum CameraEnum//error-identifier excepted-public是关键字。{
{
public const GtkController.CameraEnum Camsat=GtkController.CameraEnum.Camsat;,标识符E3Excepted
public const GtkController.CameraEnum Docking=GtkController.CameraEnum.Docking;,//erro:invalid token',在类、结构或接口成员声明中//
public const GtkController.CameraEnum Internal=GtkController.CameraEnum.Internal;
}
public delegate void TaskFunction();
}
}//错误类型或命名空间定义,或文件结尾除外//