none
有关调用实时(JIT)调试问题 RRS feed

  • 问题

  • 有关调用实时(JIT)调试而不是此对话框的详细信息,
    请参见此消息的结尾。

    ************** 异常文本 **************
    System.Configuration.ConfigurationErrorsException: 配置系统未能初始化 ---> System.Configuration.ConfigurationErrorsException: “.”(十六进制值 0x00)是无效的字符。 第 10 行,位置 1。 (C:\Users\MSI-NB\AppData\Local\MSI\SCM.exe_Url_zv0ikcohnhzptbjtykvepncdk0ijftla\13.16.10073.0\user.config line 10) ---> System.Xml.XmlException: “.”(十六进制值 0x00)是无效的字符。 第 10 行,位置 1。
       在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
       在 System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
       在 System.Xml.XmlTextReaderImpl.ParseText()
       在 System.Xml.XmlTextReaderImpl.ParseElementContent()
       在 System.Xml.XmlTextReaderImpl.Skip()
       在 System.Configuration.XmlUtil.StrictSkipToNextElement(ExceptionAction action)
       在 System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
       在 System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
       在 System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)
       在 System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
       --- 内部异常堆栈跟踪的结尾 ---
       在 System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
       在 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
       在 System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
       --- 内部异常堆栈跟踪的结尾 ---
       在 System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
       在 System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)
       在 System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)
       在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       在 System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
       在 System.Configuration.ConfigurationManager.GetSection(String sectionName)
       在 System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
       在 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
       在 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
       在 System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue)
       在 System.Configuration.SettingsBase.set_Item(String propertyName, Object value)
       在 System.Configuration.ApplicationSettingsBase.set_Item(String propertyName, Object value)
       在 MSI.SCM.SCMII.SetECOtoEC()
       在 MSI.SCM.SCMII.MainForm_Load(Object sender, EventArgs e)
       在 System.Windows.Forms.Form.OnLoad(EventArgs e)
       在 System.Windows.Forms.Form.OnCreateControl()
       在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       在 System.Windows.Forms.Control.CreateControl()
       在 System.Windows.Forms.Control.WmShowWindow(Message& m)
       在 System.Windows.Forms.Control.WndProc(Message& m)
       在 System.Windows.Forms.Form.WmShowWindow(Message& m)
       在 MSI.SCM.SCMII.WndProc(Message& m)
       在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** 已加载的程序集 **************
    mscorlib
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0 built <g class="gr_ gr_139 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="139" id="139">by:</g> NET471REL1LAST
        基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
    ----------------------------------------
    SCM
        程序集版本:13.16.10073.0
        Win32 版本:13.016.10073.0
        基本代码:file:///C:/Program%20Files%20(x86)/SCM/SCM.exe
    ----------------------------------------
    System.Configuration
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_132 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="132" id="132">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_145 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="145" id="145">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0 built <g class="gr_ gr_144 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="144" id="144">by:</g> NET471REL1LAST
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_135 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="135" id="135">by:</g> NET471REL1
        基本代码: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.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_143 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="143" id="143">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.<g class="gr_ gr_148 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="148" id="148">Xml</g>
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_137 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="137" id="137">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.xml.resources
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_134 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="134" id="134">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Xml.resources.dll
    ----------------------------------------
    System.Configuration.resources
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_136 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="136" id="136">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.resources/v4.0_4.0.0.0_zh-Hans_b03f5f7f11d50a3a/System.Configuration.resources.dll
    ----------------------------------------
    WPFOSD
        程序集版本:1.0.0.0
        Win32 版本:1.0.0.0
        基本代码:file:///C:/Program%20Files%20(x86)/SCM/WPFOSD.DLL
    ----------------------------------------
    PresentationFramework
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
    ----------------------------------------
    WindowsBase
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0 built <g class="gr_ gr_133 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="133" id="133">by:</g> NET471REL1LAST
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
    ----------------------------------------
    PresentationCore
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0 built <g class="gr_ gr_141 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="141" id="141">by:</g> NET471REL1LAST
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
    ----------------------------------------
    System.Xaml
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0 built <g class="gr_ gr_146 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="146" id="146">by:</g> NET471REL1LAST
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
    ----------------------------------------
    System.Management
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_147 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="147" id="147">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    PresentationFramework.Aero2
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_142 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="142" id="142">by:</g> NET471REL1
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
    ----------------------------------------
    UIAutomationTypes
        程序集版本:4.0.0.0
        Win32 版本:4.7.2600.0 built <g class="gr_ gr_131 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="131" id="131">by:</g> NET471REL1LAST
        基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
    ----------------------------------------
    <g class="gr_ gr_149 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="149" id="149">MSIECO</g>
        程序集版本:1.0.1308.2003
        Win32 版本:1.0.1308.2003
        基本代码:file:///C:/Program%20Files%20(x86)/SCM/MSIECO.DLL
    ----------------------------------------
    System.Windows.Forms.resources
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_140 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="140" id="140">by:</g> NET471REL1
        基本代码: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
    ----------------------------------------
    mscorlib.resources
        程序集版本:4.0.0.0
        Win32 版本:4.7.2556.0 built <g class="gr_ gr_138 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="138" id="138">by:</g> NET471REL1
        基本代码: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.forms jitDebugging="true" />
    </configuration>

    启用 JIT 调试后,任何未经处理的异常
    都将被发送到在此计算机上注册的 JIT 调试程序,
    而不是由此对话框处理。
    2017年11月19日 19:41

全部回复

  • Hi,

    感谢你在MSDN论坛发帖。

    你能告诉你的项目工程类型是什么吗? winform? 还是wpf 还是其他。

    据我所知,JIT代码仅仅是为更好的性能表现,会把.NET 语言编译成中间语言,用的时候直接访问。

    如果你直接编译你的代码,也会出错吗?具体在哪一句出错,能贴出这个地方的详细信息吗?

    Best Regards,

    Hart


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2017年11月20日 6:14
    版主