Windows 2003/IIS6 – Unexpected Error: C0000005

iis-6windows-server-2003

Our event logs are full of these errors

Unexpected error. A trappable error (C0000005) occurred in an external object. The script cannot continue running.

We have tried in various ways but could not stop this error. After continuous errors, the IIS hangs up.

We are also getting another error, Warning: IIS log failed to write entry. Please help me with the solution.

Best Answer

Usually that's a COM object failing and ASP catching it. iisstate can help you catch the culprit. It will give you a log of what's going on and where the error is.

iisstate -p <pid of process hosting ASP pages> -sc <enter> 

As for your other error, is anonymous access allowed on the website in question? Whoever is generating the error doesn't have permission to write to the event log, which could be as simple as IUSR_ComputerName needing access. Or it could be much trickier. I'd need some more information.