I've been chasing down the cause of an intermittent crash in one of our .NET services due to an internal error in the .NET Runtime (exit code 0x80131506). The service in question doesn't perform any of the kinds of operation that are usually to blame for such errors (unsafe code, [...] read more
While I was debugging a simple bit of C#. I got the error 'internal clr error 0x80131506' and the program being debugged crashed. It's .NET Core 3.1 running on Windows 10 x64. The code wasn't doing much interesting, just calling a method that iterates an array, from another static method [...] read more
I've just tried installing Visual Studio 2015 RTM on my Windows 8.1 computer. The installation proceeded without any problems, but afterwards I had multiple issues: * Visual Studio 2015 itself wouldn't launch: it would crash with a Debug dialog on startup. * Visual Studio 2013, which was previously working, also [...] read more
I'm working on a C# application, but occasionally the GUI disappears (closes) without any warning. None of the exceptions catches seem to work, but I did notice the following error code in the VS output window: > The program '[5172] MyProg.vshost.exe: Managed (v4.0.30319)' has exited with > code -2146233082 (0x80131506) [...] read more
I am going to preface this by saying that the cause of the error itself might not actually be related to PowerShell specifically, it may lie deeper in .NET but that is where I encountered it. PowerShell version: 7.1.0 I defined the following type in order to resolve resource requests [...] read more
Our .NET app crashes randomly with ExecutionEngineException error. App targets .NET 4.8 x64. After some intensive reproduction attempts I've collected following facts. 1. We used WinDBG Preview with Time Travel function to capture execution history. 2. We analyzed few crashes of app collected with AdPlus where break point was set [...] read more
I have an exe that works properly in Visual Studio. When I deploy it to Windows Server, it crashes -- even though I am trying to catch its unhandled exceptions, as shown in the code below. The code DOES catch unhandled exceptions as expected in VS (i.e. it displays the [...] read more
I am trying to create an excel add-in using Visual Studio 2013. The add-in is for Excel 2010. Now the issue I am facing... I am not able to run the add-in in debug mode. When I click "Start" to debug my code, Excel opens and closes immediately. This issue [...] read more
I am trialling the FirstChangeException event handler for the service layer of my WCF. The aim is to capture the exception from any method and throw it as a new FaultException so it can pass back to the client. For example below is a test server class private static bool [...] read more
This class exists in its own DLL. Calling the Ex method fairly obviously causes an exception to be thrown and handled: class Foo : MarshalByRefObject { public void Ex() { object o = null; try { string s = o.ToString(); } catch { } } } The following loads the [...] read more
I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have 1 site which is causing the application pool to stop. These are the following errors in the Event Viewer: This shows several times: A process serving application pool 'Pilot.Mobile.SyncV2' terminated [...] read more
I have a .netcore 3.1 (with some .netstandard 2.0 libraries, no external references and only managed code) project where I'm currently investigating an issue with managed heap corruption. Occasionally, it throws a System.ExecutionEngineException, with HResult=0x80131506, in different areas of the code (for instance, when creating a new list). Update: I [...] read more
I am currently facing an issue in my program that is created for reading .xls and .csv files and match two files against each other. When using .xls files everything is fine and works as expected. However, if I am using .csv files, I always receive this error: Fatal error. [...] read more
I have a function in an unmanaged library that looks like this: void fill_arr(int size, struct mystruct **buffer) { /* code that allocates memory for size number of structs and fills the pointer buffer */ } In C# i try to do the following: [DllImport("mylib.dll", CallingConvention = CallingConvention.Winapi, EntryPoint = [...] read more
While calling .ToArray, I am hitting the following exception: Internal CLR error. (0x80131506) at System.Linq.Enumerable.ToArray[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>) This happens intermittently, and is hard to reproduce. Can this type of exception be caught and retried? Would I just have to catch a generic exception. The code to call .ToArray() [...] read more
I have a PowerPoint add-in developed with .NET Framework 4.0/C#/VSTO. The add-in loads fine when I manually launch PowerPoint, but when I press F5 in Visual Studio, the PowerPoint splash screen shows for a short period and then PowerPoint closes. The Visual Studio output window shows only the following lines: [...] read more
I'm working in VS2012 with update 1 on a win2k8 r2 64 bit. Within a simple class library application i do Add > New Item> ADO.NET Entity Data Model I select a SQL Server on the network and select the database and add a single table. The table gets added, [...] read more
I am getting the following error when running my metro app: > The runtime has encountered a fatal error. The address of the error was at > 0x6e6b9a68, on thread 0x279c. The error code is 0x80131506. This error may be > a bug in the CLR or in the unsafe [...] read more
I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have 1 site which is causing the application pool to stop. These are the following errors in the Event Viewer: This shows several times: A process serving application pool 'Pilot.Mobile.SyncV2' terminated [...] read more
My MonoGame application is outputting an error while stepping through code in visual studio, but not while running the code. I am stumped and wondering if I have been breaking some rules. So, here is the code in question: public class SpacialHash<T> { public Vector2 Size, CellSize; public HashCell<T>[,] Cells; [...] read more