问题描述
有关调用实时(JIT)调试而不是此对话框的详细信息,请参见此消息的结尾。**************异常文本**************System.Runtime.InteropServices.SEHException(0x80004005):外部组件发生异常。在System.Data.OleDb.DataSourceWrapper.InitializeAndCreateSession(OleDbConnectionStringconstr,SessionWrapper&sessionWrapper)在System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionStringconstr,OleDbConnectionconnection)在System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptionsoptions,DbConnectionPoolKeypoolKey,ObjectpoolGroupProviderInfo,DbConnectionPoolpool,DbConnectionowningObject)在System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptionsoptions,DbConnectionPoolKeypoolKey,ObjectpoolGroupProviderInfo,DbConnectionPoolpool,DbConnectionowningConnection,DbConnectionOptionsuserOptions)在System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnectionowningConnection,DbConnectionPoolGrouppoolGroup,DbConnectionOptionsuserOptions)在System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnectionowningConnection,TaskCompletionSource`1retry,DbConnectionOptionsuserOptions,DbConnectionInternaloldConnection,DbConnectionInternal&connection)在System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnectionouterConnection,DbConnectionFactoryconnectionFactory,TaskCompletionSource`1retry,DbConnectionOptionsuserOptions)在System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnectionouterConnection,DbConnectionFactoryconnectionFactory,TaskCompletionSource`1retry,DbConnectionOptionsuserOptions)在System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnectionouterConnection,DbConnectionFactoryconnectionFactory)在System.Data.OleDb.OleDbConnection.Open()在RepAtSeaPlatform.ExcelOut.label1_Click(Objectsender,EventArgse)位置e:ProjectC#RepAtSeaPlatformExcelOut.cs:行号29在System.Windows.Forms.Control.OnClick(EventArgse)在System.Windows.Forms.Control.WmMouseUp(Message&m,MouseButtonsbutton,Int32clicks)在System.Windows.Forms.Control.WndProc(Message&m)在System.Windows.Forms.Label.WndProc(Message&m)在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)在System.Windows.Forms.NativeWindow.Callback(IntPtrhWnd,Int32msg,IntPtrwparam,IntPtrlparam)**************已加载的程序集**************mscorlib程序集版本:4.0.0.0Win32版本:4.0.30319.18444builtby:FX451RTMGDR基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll----------------------------------------RepAtSeaPlatform程序集版本:1.0.0.0Win32版本:1.0.0.0基本代码:file:///E:/Project/C%23/RepAtSeaPlatform/bin/Debug/RepAtSeaPlatform.exe----------------------------------------System.Windows.Forms程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System程序集版本:4.0.0.0Win32版本:4.0.30319.34238builtby:FX452RTMGDR基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Configuration程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Xml程序集版本:4.0.0.0Win32版本:4.0.30319.34234builtby:FX452RTMGDR基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------System.Windows.Forms.resources程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll----------------------------------------System.Data程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------System.Core程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll----------------------------------------System.Transactions程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------mscorlib.resources程序集版本:4.0.0.0Win32版本:4.0.30319.18408builtby:FX451RTMGREL基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll----------------------------------------**************JIT调试**************要启用实时(JIT)调试,该应用程序或计算机的.config文件(machine.config)的system.windows.forms节中必须设置jitDebugging值。编译应用程序时还必须启用调试。例如:<configuration><system.windows.formsjitDebugging="true"/></configuration>启用JIT调试后,任何未经处理的异常都将被发送到在此计算机上注册的JIT调试器,而不是由此对话框处理。
解决方案
解决方案二:
先查权限是否有问题