We have an old .net 2.0 web application. We need to make some code changes to it so I installed Visual Studio 2005 on my Windows 7 computer and configured everything I think needed to be configured. When I try to run the application, the w3w worker processes crashes each time (so far I was able to identify two places where this happens). Here is what the Event Viewer shows:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0ec83720
Faulting process id: 0x8c4
Faulting application start time: 0x01ce9505fe968c11
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: unknown
Report Id: 4051c497-00f9-11e3-8fa3-782bcb9b7670
I don't have much experience analyzing dump files but I created a crash rule using Debug Diagnostics Tool 1.2 and then when I opened the dump file using windbg.exe this is what's in it:
Comment: 'Dump created by DbgHost. Second_Chance_Exception_C0000005'
Symbol search path is: srv*c:\cache*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (2 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Machine Name:
Debug session time: Fri Aug 9 09:58:52.000 2013 (UTC - 4:00)
System Uptime: 0 days 18:48:33.318
Process Uptime: 0 days 0:00:10.000
................................................................
................................................................
...............................................................
Loading unloaded module list
..
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(23e8.9b8): Access violation - code c0000005 (first/second chance not available)
eax=3f869172 ebx=002a0116 ecx=104bf8c0 edx=77be7094 esi=10257550 edi=0ed2db28
eip=0ed2db28 esp=104bf8fc ebp=104bf944 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206
0ed2db28 c744240450752510 mov dword ptr [esp+4],10257550h ss:0023:104bf900=002a0116
I have search the internet for the error message I'm getting and I have found 2 different reasons people would get a similar crash:
- reason 1 was when the app had some infinite loop in it - I don't think this is my case since our application has been in production for over 6 years now not causing any problems
- the second reason was permissions related e.g. when the app is trying to write to some file that it has no permission to write. That is a possibility since I am setting it up on a new computer. However, one place where this crash occurs is when a user selects a value from a drop down list, and the app is supposed to retrieve data from the database and populate another drop down list based on that. However, the crash does not always happen in this place. Only sometimes. And the connection to the database definitely works since everything works fine in many other places in the app.
Any help or troubleshooting ideas will be greatly appreciated.
thanks,