Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Faulting application w3wp.exe

I have a application written in ASP.NET which uses DllImport to reference a dll written in Delphi. On my Windows 7 dev machine using the asp.net Development Server accessing the ddl works as expected.

However on a Windows Server 2008 Production Server running IIS 7 the dll return the error "Page cannot be found" and the following error pops into the Application log:

Faulting application w3wp.exe, version 7.0.6002.18005, time stamp 0x49e023cf, faulting
module ntdll.dll, version 6.0.6002.18005, time stamp 0x49e03821, exception code
0xc0000374, fault offset 0x000afaf8, process id 0xab8, application start time   
0x01cc6947b1bb081b.

How to solve this or how can I find a deeper cause?

like image 582
Sebastiaan Avatar asked Sep 02 '11 08:09

Sebastiaan


People also ask

Why does w3wp exe crash?

“Faulting module name” refers to the component that causes the crash.

What is w3wp exe?

“An Internet Information Services (IIS) worker process is a Windows process (w3wp.exe) which runs web applications, and is responsible for handling requests sent to a web Server for a specific application pool.”

How do I turn off w3wp exe?

At the command prompt type “taskkill /IM w3wp.exe /F”. Press Enter.

How do I run a w3wp exe?

Open Visual Studio in Administrator Mode, then Debug -> attach to process -> tick the check box "Show processes from all user", select w3wp.exe.


1 Answers

Just a hunch but you could try enabling 32bit worker process. It's more compatible that 64bit and might help. Is your local server 32bit?

 %windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.enable32BitAppOnWin64:true

Failing that this might help debug the issue.

Troubleshooting IIS7 Worker Thread Crashes (w3wp.exe) with a Faulting Module of ntdll.dll

There's also a thread here with an identical issue. They suggest that adding a reference to kernel32.dll resolved the issue.

Calling unmanaged code from ASP.NET in IIS7

Update

Some people report that copying your dependencies to Windows\System32\Inetsrv resolves the issue. It's worth a try.

like image 83
TheCodeKing Avatar answered Sep 20 '22 09:09

TheCodeKing