Web App Periodically Crashing on Windows

My web app is running on a windows VM machine in Azure. It occassionally gets confused by user interaction and hard crashes.

[quote]Problem signature:
Problem Event Name: APPCRASH
Application Name: CBOnline.exe
Application Version: 1.0.0.0
Application Timestamp: 5528cb4b
Fault Module Name: XojoConsoleFramework32.dll
Fault Module Version: 15.2.3.2
Fault Module Timestamp: 5528ce32
Exception Code: c0000005
Exception Offset: 000c66a9
OS Version: 6.3.9600.2.0.0.400.8
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: a10f
Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
[/quote]

Is there anything I can do to figure what is going on?

I usually suggest looking at memory usage first. You could put another console app up there to watch and log memory and the status of the web app.

Two suggestions: put in debug code that writes to a file so you can see where it got up to, second run it as a Windows Service so it’ll relaunch if it ever crashes.

You might also put some code in app.unhandledexcrption which writes the exception stack to disk.