Completely random and suddenly our application crashes on its production environment. The application runs on Windows XP and .net framework 3.5 sp1. In the application we provide a WCF service and we use the serial port.
When the application crashes it leaves messages in the application log:
.NET Runtime version 2.0.50727.3625 - Fatal Execution Engine Error (7A0BC59E) (80131506)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
and
Faulting application ***.exe, version 1.0.0.0, stamp 4f48b8fc, faulting module mscorwks.dll, version 2.0.50727.3625, stamp 4e154c98, debug? 0, fault address 0x000a03ea.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
On our test environment we do have similar problems.
On the internet I find several identical problems, all mention hot fixes or reinstalls. But I want to know what happens and do not want happens. Does anyone knows what happens and how we can fix it?
[edit]
Besides the application also Sophos antivirus and MySql is installed.
[edit 2]
In our application we use a C-library wrapped in a .net package. We use the library in more applications and in those it does not give the exceptions.
[edit 3] Cannot answer my own question
Well I found something:
http://support.microsoft.com/kb/959209/en-us
958481 List of the issues that are addressed by the Application Compatibility Update for the .NET Framework 2.0 Service Pack 2
In the .NET Framework 3.5 SP1, because of the changes that are made in
checking a NULL value to support address space layout randomization
(ASLR), a failure case causes an access violation in the runtime. This
access violation manifests as an ExecutionEngineException exception.
Additionally, the process is terminated.
http://www.microsoft.com/download/en/details.aspx?amp;displaylang=en&id=10006
i suggest you use MS Debugging tools for windows's AdPlus utility to take a full dump of the process when it crashes and then use WinDBG to see what happend. (using !threads , !clrstack ,!PrintException).
Related
I have an asp.net application written using a combination of technologies such as Asp.net MVC,WebAPI,SignalR etc and it is crashing almost everyday randmoly. I get this message logged by IIS in the event logs
Faulting application w3wp.exe, version 6.0.3790.3959, stamp 45d691cc,
faulting module kernel32.dll, version 5.2.3790.4062
There are no erros in my application log(log4net)
There are no other logs in the application and system logs
I cannot install any tools or profiler in the production server as it requires many levels of approvals and privileges.
I understand that we can use some kind of CLR profiler to get the crash analyzed but even that requires approval and we had a situation where the profiler was causing real slowness to our application as the application is very chatty(Hence signalR) .So I am looking for a solution with minimal impact on runtime but would like to figure out the root cause of the crash.
WER helped me troubleshoot this issue.Enabled crash dump using WER
Windows Registry Editor Version 5.00
�
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\w3wp.exe]
"DumpFolder"=hex(2):63,00,3a,00,5c,00,64,00,75,00,6d,00,70,00,73,00,00,00
"DumpCount"=dword:00000002
"DumpType"=dword:00000002
And this created an hdmp file and I was to get this analyzed using debugdiag and windbg to find out the issue. There was a stackoverflow exception happening and caused the application to crash.
Are you using dedicated application pool for your app ?
if not, you can try to add new application pool and configure it for your application.
I have a .NET application that regularly works on all the machines with .NET installed.
When I try to launch it on a PC with no .NET framework installed this happens:
it opens, i can change tab (my app has 4 tabs), it reads the computer IP without any problem, but then crashes somewhere when it receives a message from another terminal (i have a terminal that communicates with the PC via ETH-TCP/IP).
The message I get is just:
DESCRIPTION: stopped working.
The big deal is that I cannot debug it because if I install the .NET framework it magically works like a charm.
Obviously I'm asking this because we prefer not to install .NET on all the machines in the office (they run different Windows versions and plenty of them don't have the .NET installed).
My question can be similar to this one, but in my case the .exe starts (as I explained above).. the crash comes when I start the communication between the PC and the terminal.
Anybody has a hint for my problem? Thank you
EDIT : thank you for the answers, in the end I decided to do Remote Debugging by running the app on a virtual machine with no .NET at all. Now, when it crashes, I can catch the bad instructions inside VS2010 installed on the host machine.
Btw, the problem was on a .dll that couldn't be loaded
You must have the .NET Framework installed on a machine in order to run a .NET application. The .NET Framework is both a runtime and the SDK, not just an SDK. All versions beyond Windows XP come with some version of the .NET Framework installed.
If you are saying that installing Visual Studio corrects the issue (which is what the question you linked to describes), that is a different problem altogether. Unfortunately, your question doesn't provide enough information to troubleshoot it. You can check the Event Viewer on the machine experiencing the issue, then look for two errors next to each other in the Application event log. One of these errors will contain exception detail, which will aid us (or you) in tracking down the problem.
I'm currently struggling with a problem I'm having after publishing an application that’s written using C# in Visual Studio 2010. The application runs without errors or warnings in debugging mode. In my application I’m using 6 different 3rd party .DLL:s, http://pcapdotnet.codeplex.com/ and vcinet2.dll.
The application is installable on my own computer and runs here without errors, however when I try installing it on a different computer it doesn’t work. And this is what happens:
The application is (after publishing through the publish tool I VS 2010) accessible in the folder specified. I run the setup.exe file and it starts installing. It finishes installing but directly after this (after a shortcut has been created on the desktop and the application starts to load) the application crashes. It says “MyProgram has stopped working, check online? Close the program? Debug the program?” When I click on more details this is shown:
“Problem signature:
Problem Event Name: APPCRASH
Application Name: MyProgram.exe
Application Version: 1.0.0.0
Application Timestamp: 4f9150a6
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.17651
Fault Module Timestamp: 4e2111c0
Exception Code: e0434352
Exception Offset: 0000d36f
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1053
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt “
What I have found after browsing the Internet for this is that people get this problem when they are using a remote server for the publishing, or updates from a webpage. But I don’t, I’m simply using the “From a CD-ROM or DVD-ROM” in the “How will users install the application” window in VS 2010.
I have been working with this for a couple of days now, mostly checking compatibility with the .DLL:s etc. But I haven’t found a solution for this.
Both computers are using x86 platform and my “platform target” in VS2010 is “x86”.
When I looked closer to “e0434352” (error code) I found that this was some sort of error for every Exception I VS2010, is this correct or have I misinterpreted this?
I would really appreciate any help I can get, I have a feeling that it is a simple solution with some setting in VS2010 that’s wrong but I can’t figure it out!
I’m not getting any exceptions in the beginning of the start of the program, which leads me to think that it is a setting which is wrong?
Best regards
Erik
Did you check the application files in the project -> publish properties? I have seen it where VS didn't automatically add the libraries I wanted in the application files. This should make sure that they get installed.
In my case this error happens when I use libraries of a Framework less than the framework that I use to compile the project.
There are some object that you use in your window form that from a Library of netframework 2 for example Microsoft.VisualBasics.PowerPacks.Vs that don't has a similar in Framework 4.
How to solve the problem?
Go to the project
expand the reference
Inspect the property of framework, usually the penultimate of the list is this version less than the framework use to compile change in the same property list the 'local copy´to true
Recompile and the application works
The exception code C0000005 is thrown from mscorwks.dll when the application is run on Windows Server 2008 R2 launched using test complete. Other platforms (Windows XP, Server 2003 R2, Windows 7 32-bit and 64-bit) do not present this exception.
The event log from a single execution has many of the following event with event ID 1023 raised by the .NET Runtime:
.NET Runtime version 2.0.50727.4952 - Fatal Execution Engine Error (7383851A) (80131506)
The application itself makes use of a SOAP interface generated by Visual Studio from a WSDL file, a COM object with an embedded interop, and is targeting .NET 4.
sfc /scannow was run and found no problems with system files on the affected system.
What troubleshooting can be done to identify a solution?
Fatal Engine Execution Error and an access violation are both symptoms of the same problem. FEEE is raised when the .NET garbage collector detects that the internal structure of the garbage collected heap is destroyed. An access violation is a hardware exception, raised by the processor when it is asked to access memory with an invalid address. A common cause of an AV is heap corruption.
These kind of mishaps are very commonly caused by unmanaged code. It is also quite common for unmanaged code to have latent memory management bugs that can go unnoticed for a long time. The kind of damage the bug can do tends to be quite random. Just running it on another operating system which has a different memory allocation pattern can be enough to trigger the bomb.
You have an excellent candidate for the source of the trouble. You'll need to work with the COM server vendor or author to chase the bug.
A 0xC0000005 is an exception code wrapping a Win32 error which means "Access Denied." Given that you are using COM interop and are getting an ExecutionEngineException (in COM, COR_E_EXECUTIONENGINE; 0x80131506), my guess is that either it's a NULL pointer in the COM component or a faulty ComImport directive in your .NET code.
This error is caused by flaws in the way that TestComplete 7 interacts with the heap in mixed managed/unmanaged applications. Instead of using the TestedApp.Run method using the following block of code, modified for you choice of scripting language, presented in VBScript:
Dim oScript, command
Set oScript = CreateObject("WScript.Shell")
command = "%comspec% /c " & PATH_TO_EXE & " " & Args
oScript.Run command, 10, True
The relevant MSDN article is Run Method (Windows Script Host).
TestComplete 7 (including the latest update 7.52) supports .NET Framework 4 only up to version .NET 4 Beta 2. It does not support the release version of the Framework, so this may be the reason of the problem.
Try building the application targeting .NET 2.0. This should resolve the problem.
To test .NET 4 applications, you will need to use TestComplete 8.
I have one windows application built using C# and .net framework 2.0 and its installed on Windows Server 2003.
I have tested application on my machine and it works perfectly on my machine. Only difference between two machines is that, my machine has Windows Vista OS and machine on which error occured has Windows Server 2003 OS.
When I start application, it works correctly for some time but then gives one error as
Faulting application ,
version ,faulting
module kernel32.dll,version 5.2.3790.4480, stamp , debug? 0. fault address 0x000bef7.
Source : .NET Runtime 2.0 Error
Category : None
Event ID : 1000
Does anyone knows why this error is coming? I googled for this error but most of the solutions were for either explorer.exe or internet explorer.
Use windbg or adplus to attach to the process and get the process crash dump. This would help you to identify the offending part of the code with symbols loaded. In most cases, it shows the last exception and hence gives a very good view of what could have gone wrong.