w3wp.exe fails and web restarts every ~75 seconds - c#

We have a farm of 5 Windows Server 2012 R2 servers, running IIS.
Under load, one website start failing every ~75 seconds and it keeps going on and on, until load goes down at night time.
Only thing we have to go after, is the message in the evenlog :
Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x5215df96
Faulting module name: clr.dll, version: 4.0.30319.34209, time stamp: 0x5348a1ef
Exception code: 0xc00000fd
Fault offset: 0x000000000001ff16
Faulting process id: 0x73d0
Faulting application start time: 0x01d31e49290c950a
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 8a491461-8a3c-11e7-80e8-d89d6731bc04
Faulting package full name:
Faulting package-relative application ID:
If I look at the "Workers" inside IIS, I just see a bunch of requests and the wait time keeps going up and up when I press F5 - until the process is crashing/restarted.
Any advise ?
The application is written in C#/VB, and uses controls from Telerik, saves data inside a Sql Server and caches via a distributed nCache running on 5 servers.
The application has been running for months without updates, other that patches to the OS regularly.

Related

UWP App closing as soon as it opens (Windows.UI.Xaml.dll) - error

We have a sideload AppXBundle where we are experiencing the app crashing right after it shows the splash screen.
We install the certificate from our store association, double click on the appxbundle - App Installer prompt appears, and we click install. As mentioned, the splash screen shows, and then within a few seconds the app closes.
Here is the error message from the Event Viewer:
Faulting application name: TestApp.exe, version: 1.1.11.0, time stamp: 0x5f0453e7
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.18362.815, time stamp: 0x9fa806f2
Exception code: 0xc000027b
Fault offset: 0x0000000000713530
Faulting process id: 0x1b84
Faulting application start time: 0x01d6544d6b4a7c36
Faulting application path: C:\Program
Files\WindowsApps\TestApp_1.0.31.0_x64__e3skdg3cf6xk8\TestApp.UWP.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: 2eda3b62-5ac6-46cd-89b2-b251d05dea05
Faulting package full name: TestApp_1.0.31.0_x64__e3skdg3cf6xk8
Faulting package-relative application ID: App
We have done quite a bit of research on the Windows.UI.XAML dll issue - I have uninstalled it with powershell, and reinstalled it. I tried updating it. Nothing seems to do the trick.
We have tried it with every compile version I can for the device (x64,x86,ARM,ARM64)
The target device is a Surface GO, but we have expereinced the app crashing on x64 desktops with Windows version 17143+.
We have this issue only on specific computers. 1909(build 18363.836) <- windows version where the app works.
If you need more information, please let us know.

iisexpress crashing not able to debug

I am trying to debug my asp.net , which calls a api (which is a 3rd party wrapper). On calling the below method it crashes.
private void RegisterCallbacks()
{
_instance.Callbacks.RegisterCallbacks(LogCallback, StatusCallback, BusyCallback, ExceptionCallback);
}
Here _instance is of that API. It crashes IIS and no error.. Any ideas what could be wrong?
Getting below in eventvwr
Faulting application name: iisexpress.exe, version: 10.0.14358.1000, time stamp: 0x574fc56b
Faulting module name: HybirRelease32.dll, version: 0.0.0.0, time stamp: 0x597ec186
Exception code: 0xc00000fd
Fault offset: 0x001cffe7
Faulting process id: 0x814
Faulting application start time: 0x01d315fa7acca3f0
Faulting application path: C:\Program Files (x86)\IIS Express\iisexpress.exe
Faulting module path: C:\Test\xxx.dll
Report Id: 32057b9d-8f56-45c9-abc6-64771c99c4ba
Faulting package full name:
Faulting package-relative application ID:
Publish the hosted application as debug mode, then go to visual studio debug-> Attach to process -> w3wp.exe(find in 'user name' column your hosted name) select and attach. you can debug the application in IIS host

Application crash with exit code 0xe0004743

My application crashed after running for some time.
I'm using .NET 4.6 on Windows Server 2012-R2.
Application is 64-bit.
I cannot find more detail about this bug code. I think I have all relevant updates installed.
This application has run cumulatively for thousands of hours before and this is the first time this particular bug happened.
Event viewer errors:
Faulting application name:ApplicationName, version: 1.0.0.0, time stamp: 0x561c9fd7
Faulting module name: clr.dll, version: 4.6.96.0, time stamp: 0x55b96716
Exception code: 0xe0004743
Fault offset: 0x00000000003ccf84
Faulting process id: 0xef4
Faulting application start time: 0x01d1058c3f5834e6
Faulting application path: ApplicationName
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 9765e800-7185-11e5-8177-0ae6116ba893
Second entry in the event viewer:
Application: ApplicationName
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FF837C2CF84 (00007FF837860000) with exit code e0004743.
The only similar issue reported in SO is The process was terminated due to an internal error in the .NET Runtime where GC issue / heap corruption was suggested.

ASP .NET MVC Application crashes randomly

I have a web site developed in ASP .NET MVC 5. It was working normally during last 9 month but since the web site got many active users (about 200 concurrent) it started to crash randomly in every 25~90 min. The strange part is that there is no exception in my log and the only exception that I could find is this in my event log:
Faulting application name: w3wp.exe, version: 8.5.9600.16384, time
stamp: 0x5215df96 Faulting module name: ntdll.dll, version:
6.3.9600.16408, time stamp: 0x523d5305 Exception code: 0xc0000005 Fault offset: 0x0000000000055a0b Faulting process id: 0x2340 Faulting
application start time: 0x01d0e9f87a1fba57 Faulting application path:
c:\windows\system32\inetsrv\w3wp.exe Faulting module path:
C:\Windows\SYSTEM32\ntdll.dll Report Id:
97868357-55f2-11e5-80b8-a0d3c1fba76b Faulting package full name:
Faulting package-relative application ID:
Can any body explain me why it's happening and I can get more detail about exception and it's possible resolutions?
Update 1:
I found two hot fixes (https://support.microsoft.com/en-us/kb/2679415 and https://support.microsoft.com/en-us/kb/2640103 in Microsoft site which seems that is the case. One of them is not applicable for Windows 2012 :| the other one is not accessible to public. My emails to Microsoft site is also not answered!
Update 2:
Finally after hours and hours of research and code review I found cause of problem. In my code I was loading a DbSet from my Entity Framework db context. The records of database in that table was huge and because of this my app was crashing. And because I also had app pre initialization configured in IIS after crash again it started to load that DbSet again and here was a loop of crashing and crashing!

Windows Service keep crashing with Faulting Module SHLWAPI.dll

I have a Windows Service running in "Local System account" context.
I can start the service successfully, but after a few minutes it crashes. I get following error in the event log
What could be the possible reason, and how to fix this issue?
Faulting application name: MyWindowsService.exe, version: 1.0.0.2993, time stamp: 0x554085eb
Faulting module name: SHLWAPI.dll, version: 6.3.9600.16384, time stamp: 0x521574db
Exception code: 0xc00000fd
Fault offset: 0x00005d66
Faulting process id: 0x14d4
Faulting application start time: 0x01d0830a94202cb3
Faulting application path: C:\Program Files\MyProject\Etswap Workflow Polling Service\MyWindowsService.exe
Faulting module path: C:\Windows\SYSTEM32\SHLWAPI.dll
Report Id: ff232358-eefe-11e4-94ea-08002787efe4
Faulting package full name:
Faulting package-relative application ID:
yes, it was a bug in the application only.
it was a rare scenario which was going into a deadlock situation.
Fixed

Categories

Resources