Share via

JIT Debugging

Anonymous
2010-02-13T08:27:34+00:00

How do i fix this problem?

See the end of this message for details on invoking

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

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

System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\BotBoy\prefs.xml' is denied.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

   at System.IO.StreamWriter..ctor(String path)

   at Mylib.FileUtility.MainPreferences.save()

   at Bot.MSpace.updateRequestCounter()

   at Bot.MSpace.postRequest(String[] vStr, String message)

   at Bot.MainForm.BT_ACTION_SendFriendReq_Click(Object sender, EventArgs e)

   at System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

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

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

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

   at System.Windows.Forms.Control.ControlNativeWindow.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.4927 (NetFXspW7.050727-4900)

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


Bot

    Assembly Version: 1.0.0.20

    Win32 Version: 1.0.0.20

    CodeBase: file:///C:/Program%20Files%20(x86)/BotBoy/Bot.exe


System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

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


System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

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


System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

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


System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

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


System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

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


_yqexh-y

    Assembly Version: 1.0.0.20

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

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


Microsoft.mshtml

    Assembly Version: 7.0.3300.0

    Win32 Version: 7.0.3300.0

    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.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.

Windows for home | Previous Windows versions | Apps

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

Answer accepted by question author

Anonymous
2010-02-14T03:17:56+00:00

Hey klhjr,

To prevent this error message from showing up, you may disable JIT from launching.

Follow the steps provided in this link:

How to: Enable/Disable Just-In-Time Debugging**http://msdn.microsoft.com/en-us/library/k8kf6y2a.aspx**

If you’re comfortable with registry, you may disable the JIT debugging from there.

Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the windows help article below.

Back up the registry**http://windows.microsoft.com/en-us/windows7/Back-up-the-registry**

Go to start and type regedit.exe.

Delete the following keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\DbgManagedDebugger

If you use a 64-bit machine, please delete the following keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\DbgManagedDebugger

That should be it.


Regards,

Shinmila H - Microsoft Support

Visit our Microsoft Answers Feedback Forum and let us know what you think.

Was this answer helpful?

20+ people found this answer helpful.
0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-11-09T05:07:36+00:00

    Hi,

    I have the same problem. I do not have any of these

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\DbgManagedDebugger

    If you use a 64-bit machine, please delete the following keys:

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework\DbgManagedDebugger

    to delete.

    Also I tried doing this ...

    ************** 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.

    but cannot figure out how for the life of me. 

    how do I get rid of this error message so i can use my invoicing software?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-05-22T20:39:10+00:00

    JIT Debugging

    How do i fix this error message?

    Assertion Failed!

    Program:...or's Edition\Royal Envoy 3 Collector's Edition.exe

    File: D\work\libs_re3\boost/smart_ptr/shared_array.hpp

    line: 105

    Expression: px !=0

    For information on how your program can cause assertion failure, see the Visual C++ documentation on asserts

    (Press retry to debug the application - JIT must be enabled)

    ABORT      RETRY    IGNORE

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-12-19T18:15:24+00:00

    Do any similar Keys turn up if you search the Registry for "Debugger"?

    When did you start getting this message?  Is it something System Restore could take care of?

    How to repair the operating system and how to restore the operating system configuration to an earlier point in time in Windows Vista (or 7)

    http://support.microsoft.com/kb/936212/#appliesto

    Do you get the message from Safe Mode?

    Advanced startup options (including safe mode)

    http://windows.microsoft.com/en-US/windows7/Advanced-startup-options-including-safe-mode

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.microsoft.com/default.aspx/kb/929135

    What about if you test with another user?

    Was this answer helpful?

    0 comments No comments