See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at NTSCallCenter.Common.HtmlEditor.HtmlEditor.webBrowserBody_DocumentFocusing(Object sender, HtmlElementEventArgs e)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.HtmlShim.FireEvent(Object key, EventArgs e)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
NTSCallCenter
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/NTSCallCenter.exe
----------------------------------------
NTSCallCenter.Common
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/NTSCallCenter.Common.DLL
----------------------------------------
NTSCallCenter.Maintenance
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/NTSCallCenter.Maintenance.DLL
----------------------------------------
BlueSail.Resources
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/BlueSail.Resources.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.278 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.282 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.296 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
hwbhi5hj
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.296 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
NTSCallCenter.Entity
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/NTSCallCenter.Entity.DLL
----------------------------------------
CommonControls
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/CommonControls.DLL
----------------------------------------
Common
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/Common.DLL
----------------------------------------
ulwa5t3f
Assembly Version: 1.0.0.0
Win32 Version: 4.0.30319.296 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
DevExpress.XtraEditors.v11.1
Assembly Version: 11.1.6.0
Win32 Version: 11.1.6.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/DevExpress.XtraEditors.v11.1.DLL
----------------------------------------
DevExpress.Utils.v11.1
Assembly Version: 11.1.6.0
Win32 Version: 11.1.6.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/DevExpress.Utils.v11.1.DLL
----------------------------------------
DevExpress.Data.v11.1
Assembly Version: 11.1.6.0
Win32 Version: 11.1.6.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/DevExpress.Data.v11.1.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
NTSCallCenter.DataProxy
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/NTSCallCenter.DataProxy.DLL
----------------------------------------
NTSCallCenter.Data
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/NTSCallCenter.Data.DLL
----------------------------------------
Microsoft.Practices.EnterpriseLibrary.Data
Assembly Version: 5.0.414.0
Win32 Version: 5.0.414.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/Microsoft.Practices.EnterpriseLibrary.Data.DLL
----------------------------------------
Microsoft.Practices.EnterpriseLibrary.Common
Assembly Version: 5.0.414.0
Win32 Version: 5.0.414.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/Microsoft.Practices.EnterpriseLibrary.Common.DLL
----------------------------------------
Microsoft.Practices.ServiceLocation
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/Microsoft.Practices.ServiceLocation.DLL
----------------------------------------
Microsoft.Practices.Unity
Assembly Version: 2.0.414.0
Win32 Version: 2.0.414.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/Microsoft.Practices.Unity.DLL
----------------------------------------
Microsoft.Practices.Unity.Interception
Assembly Version: 2.0.414.0
Win32 Version: 2.0.414.0
CodeBase: file:///C:/Program%20Files/KTInfo/NTSCallCenter/Microsoft.Practices.Unity.Interception.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.For example:<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.//英文实在太肉了,求救一下更新发布
at NTSCallCenter.Common.HtmlEditor.HtmlEditor.webBrowserBody_DocumentFocusing(Object sender, HtmlElementEventArgs e)NTSCallCenter.Common.HtmlEditor.HtmlEditor这个是你自己的控件或者第三方的控件,webBrowserBody_DocumentFocusing函数中,使用了空引用。
这很常见,步骤,环境等等不同。软件不可能100%没有bug的。
我看了这个方法 ,这边没有问题
webBrowserBody.Document.DomDocument.GetType().GetProperty("designMode").SetValue(webBrowserBody.Document.DomDocument, "On", null);
只是让 webBrowserBody 具有编辑性
之前一直都没有问题的,好像上次增加了 excl 导出功能后就 出现这个问题了