啓動SQL代理的時候報錯以下:windows
關調用實時(JIT)調試而不是此對話框的詳細信息,
請參見此消息的結尾。ui
************** 異常文本 **************
System.NullReferenceException: 未將對象引用設置到對象的實例。spa
Server stack trace:
在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.FindObjectExplorerFrame()
在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.GetObjectExplorer(Boolean activateWindow)
在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ShowError(Exception e)
在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.Service.Start()
在 System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
在 System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
在 System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)代理
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
在 System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ServiceActionHandler.EndInvoke(IAsyncResult result)
在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ServiceControlProgress.ActionCompletedHandler(IAsyncResult result)調試
************** 已加載的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4984 (win7RTMGDR.050727-4900)
基本代碼: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ControlService
程序集版本: 10.0.0.0
Win32 版本: 2007.0100.1600.022 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/ControlService.exe
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4984 (win7RTMGDR.050727-4900)
基本代碼: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4985 (win7RTMGDR.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.NetEnterpriseServers.ExceptionMessageBox
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.NetEnterpriseServers.ExceptionMessageBox/10.0.0.0__89845dcd8080cc91/Microsoft.NetEnterpriseServers.ExceptionMessageBox.dll
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4986 (win7RTMGDR.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4985 (win7RTMGDR.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ControlService.resources
程序集版本: 10.0.0.0
Win32 版本: 2007.0100.1600.022 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/zh-CHS/ControlService.resources.DLL
----------------------------------------
Microsoft.SqlServer.SString
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.SqlServer.SString/10.0.0.0__89845dcd8080cc91/Microsoft.SqlServer.SString.dll
----------------------------------------
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectExplorer
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/ObjectExplorer.DLL
----------------------------------------
System.Management
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
ObjectExplorer.resources
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/zh-CHS/ObjectExplorer.resources.DLL
----------------------------------------
Microsoft.NetEnterpriseServers.ExceptionMessageBox.resources
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.NetEnterpriseServers.ExceptionMessageBox.resources/10.0.0.0_zh-CHS_89845dcd8080cc91/Microsoft.NetEnterpriseServers.ExceptionMessageBox.resources.dll
----------------------------------------
System.Data
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Web
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4971 (win7RTMGDR.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Microsoft.SqlServer.SqlTools.VSIntegration
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/Microsoft.SqlServer.SqlTools.VSIntegration.DLL
----------------------------------------
Microsoft.VisualStudio.Shell.Interop
程序集版本: 7.1.40304.0
Win32 版本: 7.10.6071
基本代碼: file:///C:/Windows/assembly/GAC/Microsoft.VisualStudio.Shell.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Interop.dll
----------------------------------------
Microsoft.VisualStudio.OLE.Interop
程序集版本: 7.1.40304.0
Win32 版本: 7.10.6070
基本代碼: file:///C:/Windows/assembly/GAC/Microsoft.VisualStudio.OLE.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.OLE.Interop.dll
----------------------------------------
SqlWorkbench.Interfaces
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/SqlWorkbench.Interfaces.DLL
----------------------------------------
Microsoft.VisualStudio.Shell
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1826 (QFE.050727-1800)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Shell/2.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.dll
----------------------------------------
Microsoft.VisualStudio.Shell.Interop.8.0
程序集版本: 8.0.0.0
Win32 版本: 8.0.50727.1826 (QFE.050727-1800)
基本代碼: file:///C:/Windows/assembly/GAC/Microsoft.VisualStudio.Shell.Interop.8.0/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Shell.Interop.8.0.dll
----------------------------------------
Microsoft.SqlServer.Management.SDK.SqlStudio
程序集版本: 10.0.0.0
Win32 版本: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )
基本代碼: file:///C:/Program%20Files%20(x86)/Microsoft%20SQL%20Server/100/Tools/Binn/VSShell/Common7/IDE/Microsoft.SqlServer.Management.SDK.SqlStudio.DLL
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
基本代碼: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------orm
************** JIT 調試 **************
要啓用實時(JIT)調試,
該應用程序或計算機的 .config 文件(machine.config)的 system.windows.forms 節中必須設置
jitDebugging 值。
編譯應用程序時還必須啓用
調試。server
例如: 對象
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>blog
啓用 JIT 調試後,任何沒法處理的異常
都將被髮送到在此計算機上註冊的 JIT 調試器,
而不是由此對話框處理。it
通過我幾天的努力和查找緣由:是服務中啓動賬戶的問題。