Faulting application <app_name>, version <version number>,faulting module kernel32.dll - c#

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.

Related

WPF application crashing on Windows Server 2008

I received an error report regarding a WPF app that wouldn't start up in a Windows Server 2008 Service pack 2 server (the application is an administration tool we're distributing to our customers). Since this application has a lot of external references, I tried to simplify the problem by creating a simple WPF application using Visual Studio 2013: a plain white window with "hello world" showing and nothing more. I tried to make it run in the production server, with no luck: it always crashes immediately.
Here's what I have:
the application was created with the standard VS 2013 template for WPF, so it had 3.5 as the target framework; i changed it to 4.6
the server has the 3.5 SP1 and 4.6 versions of the .net framework installed
the app.config is well-formed, with the configSections section on top, no additional references besides log4net, supportedRuntime tag set according to the target framework version
I already checked that there are no project references from version 3.5 left in the project
I already tried logging in the DispatcherUnhandledException and in the AppDomain.UnhandledException handlers
the application runs in my development environment
the application runs in production environment only if I change the target framework to 3.5. In this case, the WPF windows shows up and the log file is correctly produced
I already tried producing a dump and trying to debug it in Visual Studio: I just get a "Source not available" message and a stack trace ending with ntdll.dll!NtWaitForSingleObject()
Here are the error details:
Description:
Stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: MyApp.exe
Application Version: 1.0.0.0
Application Timestamp: 5bfc07f1
Fault Module Name: KERNEL32.dll
Fault Module Version: 6.0.6002.24367
Fault Module Timestamp: 5ae3dcd9
Exception Code: e0434352
Exception Offset: 000000000001667d
OS Version: 6.0.6002.2.2.0.272.7
Locale ID: 1033
The Windows event log shows little information:
Faulting application MyApp.exe, version 1.0.0.0, time stamp 0x5bfc07f1, faulting module KERNEL32.dll, version 6.0.6002.24367, time stamp 0x5ae3dcd9, exception code 0xe0434352, fault offset 0x000000000001667d, process id 0x%9, application start time 0x%10.
Application: MyApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code e0434352, exception address 0000000077A6667D
Stack: [this is empty]
Any suggestions?
Just in case someone else stumbles on the same problem, looks like the KB4457921 update from Microsoft somehow solves the issue. If an update is not possible, consider porting the code back to .net framework v. 3.5.

asp.net application running in production is crashing

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.

Appcrash while running the windows application after installing the setup

I have developed a windows application in visual studio 2012 and deployed the application using Installshield. When I install the application in 32-bit system it works fine, but while I install in 64-bit system, it installs fine but after installing the application is not opening throwing and error that,
Problem Signature:
Problem Event Name: APPCRASH
Application Name: sappln.exe
Fault Module Name: KERNALBASE.DLL
and more it goes on..
In configuration Manager, I have specified Release -> Any CPU
Can anyone give some solutions to avoid this error?
Thanks in advance!!
Seems like you are using libaries that can't run on x64 platforms. What libaries are you using?
Also check if your program does anything "special" upon startup.
This should keep you out.
Good luck!

Unable to Install published .NET C# program

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

Suddenly application crash - Fatal Execution Engine Error (7A0BC59E) (80131506)

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

Categories

Resources