ExecutionEngineException and exit code 80131506

Piotr Pietro 6 Reputation points
2021-03-20T16:28:49.06+00:00

Hi,

Guys please help with ugly issue - app crash/close.

I start to observe crash while using System.Windows.DragDrop.DoDragDrop method in C#.

Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 74FE1BC9 (74FD0000) with exit code 80131506.

OS: Windows 10 Pro for Workstations, 20H2, 19042.867, Windows Feature Experience Pack 120.2212.551.0

On some machines 100 % reproduction, on some machines issue do not occur.

Developer technologies C#
{count} vote

3 answers

Sort by: Most helpful
  1. Timon Yang-MSFT 9,606 Reputation points
    2021-03-22T06:09:52.293+00:00

    Does the same error occur when you use the following simple code?

        private void Ellipse_MouseMove(object sender, MouseEventArgs e)  
        {  
            Ellipse ellipse = sender as Ellipse;  
            if (ellipse != null && e.LeftButton == MouseButtonState.Pressed)  
            {  
                DragDrop.DoDragDrop(ellipse,  
                                     ellipse.Fill.ToString(),  
                                     DragDropEffects.Copy);  
            }  
        }  
    

    It seems that there are many possible causes of this problem, such as Windows version, too old assembly and some other reasons, please check if there is any suitable for your current situation.

    Drag and Drop sometimes causing a crash

    ExecutionEngineException (80131506) in mscorlib.dll when processing asp:ScriptManager

    Citrix Virtual Memory Optimization Service can lead to .NET application corruption

    If neither, please provide us with a simple project that can reproduce the problem so that we can try to solve it.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments

  2. Piotr Pietro 6 Reputation points
    2021-03-22T08:19:46.62+00:00

    Hi,

    Thanks for response.

    I have created new WPF project in Visual Studio.
    When designer loads empty form than I am trying to add ellipse from toolbox. Visual Studio changed cursor to drag&drop action and hangs for 3-4 seconds then error message is displayed:
    Error occures: "The operation could not be completed. The remote procedure call failed".

    System.Runtime.Remoting.RemotingException
    [16984] Designer process terminated unexpectedly!

    Looks like the same issue as in my application but Visual Studio recovers after this.

    Event viewer contains two entries:
    First:
    Application: XDesProc.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an internal error in the .NET Runtime at IP 74FE1BC9 (74FD0000) with exit code 80131506.

    Second:
    Faulting application name: XDesProc.exe, version: 16.8.30804.86, time stamp: 0xa00922bc
    Faulting module name: clr.dll, version: 4.8.4300.0, time stamp: 0x5f7e61bb
    Exception code: 0xc0000005
    Fault offset: 0x00011bc9
    Faulting process id: 0x4258
    Faulting application start time: 0x01d71ef0a542ec79
    Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\XDesProc.exe
    Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Report Id: d1ba0d98-13d3-41ab-a36c-4acc3f88166b
    Faulting package full name:
    Faulting package-relative application ID:

    After restarting Visual Studio - the same steps and the same result.

    After this I created WPF app again and manually add ellipse into XAML + event handler for mouse move. No error in runtime.

    Regards


  3. Sandeep Lal 6 Reputation points
    2021-06-16T18:49:08.24+00:00

    Install KB5003254 and reboot.

    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.