Microsoft .NET Framework encounters JIT debugging error when launching some apps.

Anonymous
2024-04-22T12:14:49+00:00

I'm encountering an error when launching some apps. Are there any ways to fix it?


See the end of this message for details on invoking

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

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

System.ArgumentException: File format is not valid.

at System.Windows.Forms.RichTextBox.StreamIn(Stream data, Int32 flags)

at System.Windows.Forms.RichTextBox.StreamIn(String str, Int32 flags)

at System.Windows.Forms.RichTextBox.set_Rtf(String value)

at System.Windows.Forms.RichTextBox.OnHandleCreated(EventArgs e)

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

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

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

at System.Windows.Forms.RichTextBox.WndProc(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.9232.0

built by: NET481REL1LAST_C

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


SurConsent

Assembly Version: 2.4.0.10717

Win32 Version: 2.4.0.10717

CodeBase: file:///C:/Program%20Files/Intel/SUR/ICIP/SurConsent.exe


System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.8.9195.0

built by: NET481REL1LAST_B

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


System

Assembly Version: 4.0.0.0

Win32 Version: 4.8.9236.0

built by: NET481REL1LAST_B

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


System.Drawing

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


Config

Assembly Version: 2.4.0.10717

Win32 Version:

CodeBase: file:///C:/Program%20Files/Intel/SUR/ICIP/Config.DLL


System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.8.9236.0 built by: NET481REL1LAST_B

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


System.Configuration

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

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


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

&lt;system.windows.forms jitDebugging="true" /&gt; 

</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 | Windows 10 | 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
Answer accepted by question author
  1. Sumit D - IA 152.3K Reputation points Independent Advisor
    2024-04-26T11:20:07+00:00

    I see. Maybe Support has some ideas further.

    Please get in touch with Microsoft Support for further help.

    Please type the "Get Help" app in Windows Search and open it.

    Type the "Chat with an agent" option and press Enter.

    Please click on the "Contact support" button at the bottom.

    Select the Product and Category for support according to your requirement.

    The available support methods will be shown to you.

    Please ensure to contact using business hours(Monday to Friday, 9 AM to 5 PM Local time) for maximum available support options, including Chat support. You can also select Call Me back option and input your Phone number.

    4 people found this answer helpful.
    0 comments No comments

13 additional answers

Sort by: Most helpful
  1. Sumit D - IA 152.3K Reputation points Independent Advisor
    2024-04-22T12:54:33+00:00

    Hi Fyz,

    I'm Sumit, here to answer your query at the Microsoft Community.

    Looks like some VC++ issue.

    Open the Control Panel:

    Click on the Start button.

    Type appwiz.cpl and hit ENTER.

    In the Programs and Features window, locate and uninstall all the components listed as Microsoft Visual C++ 2xxx Redistributable and uninstall them.

    After reboot, use the VC++ AIO package to install the package which should resolve the issue:

    https://www.techpowerup.com/download/visual-c-r...

    Hope that helps, and rely on us for any further inquiries. All the best.

    Disclaimer:

    The link included is a non-Microsoft website that would provide accurate and safe information. Watch out for ads on the site that are frequently classified as PUP (Potentially Unwanted Products). There is no need to buy paid products to fix your computers as they sometimes do more harm than good.

    0 comments No comments
  2. Anonymous
    2024-04-22T16:20:03+00:00

    Thank you for your help, but unfortunately, your method could not fix this error. I have tried following your instructions but it still doesn’t work.

    0 comments No comments
  3. Sumit D - IA 152.3K Reputation points Independent Advisor
    2024-04-22T16:34:23+00:00

    I see.

    Type "winver" in the search/Run box and press enter.

    What is the Build and version number reported in the Window?

    0 comments No comments
  4. Anonymous
    2024-04-23T11:01:44+00:00

    Tôi hiểu.

    Nhập "winver" vào hộp tìm kiếm / Chạy và nhấn enter.

    Bản dựng và số phiên bản được báo cáo trong Cửa sổ là gì?

    Windows 10 Pro 22H2 [19045.4291]

    0 comments No comments