How do I enable “JIT Debugging” for Microsoft .NET Framework In Windows 7?

Anonymous
2011-07-04T14:13:28+00:00

How do I enable “JIT Debugging” for Microsoft .NET Framework in Windows 7? A “dialog box” warning window with the red X icon pops up repeatedly/seemingly randomly , lists a long series of what looks to me like command line or etc programming, or events,  (I’m not a programmer, obviously), and then says:

Quote:

"Unhandled exception has occurred in your application.....The system cannot find the file specified...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."

End quote

As mentioned, I don't have programming skills/language, but I've been successful in past following a tech's exact and detailed directions, going into registry (or whatever/wherever in the bowels of the OS), finding a specified destination, modifying/retyping a specific file/command/etc, and managing to fix the problem without my computer melting.

Anyone?  With skillz?  Help, please?

Windows for home | Previous Windows versions | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Anonymous
    2017-12-28T12:04:54+00:00

    sorry I cant see all options in visual studio 2010 some last option please tell me a proper solution.

    28 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-01-18T10:03:38+00:00

    i have the same problem and its annoing. i want it fixed

    26 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-01-19T20:28:13+00:00

    Do i have to download visual studio?

    32 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-02-27T00:22:17+00:00

    Thank you so much for answering!!  Here is the entire text of the message:

    See the end of this message for details on invoking

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

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

    System.ComponentModel.Win32Exception: The system cannot find the file specified

    at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)

    at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)

    at imstrayicon.MainForm.ReadRegistry()

    at System.Windows.Forms.Timer.OnTick(EventArgs e)

    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)

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

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

    mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll


    imstrayicon

    Assembly Version: 6.0.5830.12

    Win32 Version: 6.0.5830.12

    CodeBase: file:///C:/Program%20Files/Dell%20Support%20Center/imstrayicon.exe


    System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5442 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


    System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


    System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


    System.Management

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll


    System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.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.

    68 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2018-02-27T00:35:55+00:00

    I have the same problem with windows 10  where is visual studios located

    55 people found this answer helpful.
    0 comments No comments