我的应用程序在一些机器上运行良好,但在一个关键演示单元上运行不正常。这是一个简单的winform应用程序,可以访问网络摄像头并尝试录制视频。此应用程序在启动时立即崩溃。这是Exception消息:
*** 例外文字 ** * **** System.Runtime.InteropServices.COMException(0x80040154):Class not not 已注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG)) 在System.Runtime.InteropServices.Marshal.BindMoniker(IMoniker pmk, UInt32 grfOpt,Guid& iidResult,Object& ppvResult)at System.Runtime.InteropServices.Marshal.BindToMoniker(字符串 monikerName)在DirectX.Capture.Capture.createGraph()中 C:\用户\ SONY \下载\压缩\ DirectXCapture_demo_Enhanced \ DirectXCapture_demo \ DirectX.Capture \ Capture.cs:行 1107在DirectX.Capture.Capture..ctor(Filter videoDevice,Filter audioDevice) C:\用户\ SONY \下载\压缩\ DirectXCapture_demo_Enhanced \ DirectXCapture_demo \ DirectX.Capture \ Capture.cs:行 928 at Ivypromise.webcame.WebCame.buttonRecord_Click(Object sender, EventArgs e)in E:\ Project_extra \ LiLi_project \ Ivypromise_desktopApp \ Ivypromise \ Ivypromise \ webcame \ WebCame.cs:行 209在System.Windows.Forms.Control.OnClick(EventArgs e)at System.Windows.Forms.Button.OnClick(EventArgs e)at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)at at System.Windows.Forms.Control.WmMouseUp(Message& m,MouseButtons 按钮,Int32点击)at System.Windows.Forms.Control.WndProc(Message& m)at System.Windows.Forms.ButtonBase.WndProc(Message& m)at System.Windows.Forms.Button.WndProc(Message& m)at 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)
** * ** 已加载的程序集 ** * **** mscorlib 汇编版本:2.0.0.0 Win32版本:2.0.50727.4963(win7RTMGDR.050727-4900) CodeBase:file:/// C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- Ivypromise 汇编版本:1.0.0.0 Win32版本:1.0.0.0 CodeBase:file:/// C:/Users/Jenny/Dropbox/To%20share/li/Release/Ivypromise.exe ---------------------------------------- System.Windows.Forms 汇编版本:2.0.0.0 Win32版本:2.0.50727.4961(win7RTMGDR.050727-4900) CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ----------------------------------------系统 汇编版本:2.0.0.0 Win32版本:2.0.50727.4962(win7RTMGDR.050727-4900) CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing 汇编版本:2.0.0.0 Win32版本:2.0.50727.4927(NetFXspW7.050727-4900) CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- DirectX.Capture 汇编版本:1.0.4380.42651 Win32版本:1.0.4380.42651 CodeBase:file:/// C:/Users/Jenny/Dropbox/To%20share/li/Release/DirectX.Capture.DLL ---------------------------------------- DShowNET 汇编版本:1.0.0.1 Win32版本:1.0.0.1 CodeBase:file:/// C:/Users/Jenny/Dropbox/To%20share/li/Release/DShowNET.DLL ---------------------------------------- System.Xml 汇编版本:2.0.0.0 Win32版本:2.0.50727.4927(NetFXspW7.050727-4900) CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.DirectX.AudioVideoPlayback 汇编版本:1.0.2902.0 Win32版本:5.04.00.2904
CodeBase:file:/// C:/Users/Jenny/Dropbox/To%20share/li/Release/Microsoft.DirectX.AudioVideoPlayback.DLL
** * ** JIT调试 ** * **** 要启用实时(JIT)调试,此应用程序的.config文件或电脑 (machine.config)必须在中设置jitDebugging值 system.windows.forms部分。该应用程序也必须编译 启用调试。
例如:
启用JIT调试时,将发送任何未处理的异常 JIT调试器在计算机上注册而不是由处理 这个对话框。
答案 0 :(得分:0)
我们切换到directShow.net dll,它适用于我们所有的机器。我们认为我们在原始解决方案中缺少一些网络摄像头驱动程序界面。