How to enable JIT debugging for a certain app?

Brendan Price 20 Reputation points
2024-08-08T01:23:02.7066667+00:00

Im using an internet tracker app called Net Uptime Monitor, Recently it came up with a panel that says,

"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click QUIT, the application will close immediately

Configuration system failed to initialize"

Heres the full line of code

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: '.', hexadecimal value 0x00, is an invalid character. Line 15, position 1. (C:\Users\Ainzy\AppData\Local\NetUptimeMonitor.com\NetUptimeMonitor.exe_Url_5vivcvko2vi2mhzntu1tmgdvt3yjaorm\2.0.24.0\user.config line 15) ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 15, position 1.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)

at System.Xml.XmlTextReaderImpl.ParseText()

at System.Xml.XmlTextReaderImpl.ParseElementContent()

at System.Xml.XmlTextReaderImpl.Skip()

at System.Configuration.XmlUtil.StrictSkipToNextElement(ExceptionAction action)

at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)

at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)

at System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)

at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

--- End of inner exception stack trace ---

at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)

at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)

at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

--- End of inner exception stack trace ---

at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)

at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)

at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

at System.Configuration.ConfigurationManager.GetSection(String sectionName)

at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)

at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)

at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)

at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)

at System.Configuration.SettingsBase.get_Item(String propertyName)

at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)

at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)

at NetUptimeMonitor.My.MySettings.get_UserLicenseKey()

at NetUptimeMonitor.Licensing.LicenseDataRead()

at NetUptimeMonitor.frmStart.frmStart_Load(Object sender, EventArgs e)

at System.EventHandler.Invoke(Object sender, EventArgs e)

at System.Windows.Forms.Form.OnLoad(EventArgs e)

at System.Windows.Forms.Form.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

at System.Windows.Forms.Control.WmShowWindow(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Form.WmShowWindow(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.8.9261.0 built by: NET481REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
```----------------------------------------

NetUptimeMonitor

```yaml
Assembly Version: 2.0.24.0

Win32 Version: 2.0.24.0

CodeBase: file:///C:/Program%20Files%20(x86)/Net%20Uptime%20Monitor/NetUptimeMonitor/NetUptimeMonitor.exe
```----------------------------------------

Microsoft.VisualBasic

```yaml
Assembly Version: 10.0.0.0

Win32 Version: 14.8.9037.0 built by: NET481REL1

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
```----------------------------------------

System

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9261.0 built by: NET481REL1LAST_C

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
```----------------------------------------

System.Core

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9261.0 built by: NET481REL1LAST_C

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
```----------------------------------------

System.Windows.Forms

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9251.0 built by: NET481REL1LAST_C

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

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9037.0 built by: NET481REL1

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
```----------------------------------------

System.Configuration

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9037.0 built by: NET481REL1

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
```----------------------------------------

System.Xml

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9037.0 built by: NET481REL1

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
```----------------------------------------

System.Runtime.Remoting

```yaml
Assembly Version: 4.0.0.0

Win32 Version: 4.8.9214.0 built by: NET481REL1LAST_B

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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>

```yaml
<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.  
  
I have 0 clue what to do, Ive done the registry "Fix" but it hasn't done anything and no forums are really helping me out.
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 30,821 Reputation points Microsoft Vendor
    2024-08-09T08:30:23.2166667+00:00

    If you’re talking about the source code/symbol files are you talking about the “exe” file?

    @Brendan Price, source code is this application’s code, written by developers. It’s different from a .exe file.

    A symbol file ends with .pdb is a program database file. It includes debugging information, maps identifiers and statements in source code to corresponding identifiers and instructions in compiled apps. The mapping file links the debugger to the source code, which enables debugging. It’s needed when you are going to debug the corresponding application.

    I’ll try to see if I could contact the creator perhaps or see if they possibly already have a fix.

    The application you want to debug is an existing application, without these files(source code files, symbol files), only the exe file and some other files. Yes, you probably need to contact the creator to debug this application as they have the source code and symbol files for debugging. They can better understand the exception and find the cause in their application.

    Feel free to let us know the results:)

    Besides, if you try to use the "Attach to Process" feature in Visual Studio to debug that application, will it work? Kindly check this document: Attach to running processes with the Visual Studio debugger for more details.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Brendan Price 20 Reputation points
    2024-08-09T17:28:13.2233333+00:00

    Needed to just delete the files and redownload the app.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.