I don't have any specific suggestions for fixing the error you're seeing but you should consider installing and running the Microsoft Debug Diagnostic Tool v1.1.
You can use this tool to help troubleshoot common problems in specific Windows processes and in IIS.
Here's a blog post in which the author demonstrates how to use the tool to troubleshoot an error with w3wp.exe that looks similar to yours (I can't tell if it's the same error since you haven't provided a lot of information about your error, even with the additional comment). In the post the author uses the tool to analyze the w3wp.exe process running on the machine experiencing the error. He shows that his error was caused by a stack overflow and his analysis of the dump logs indicates the problem is with a specific constructor in this code.
Your time might be better spent in troubleshooting your code (ie logging), but if your problem proves sufficiently difficult to troubleshoot the tool might be worth a look.
Fair warning:
1. The blog's the author recommends against running an analysis on a production server.
2. I've never used this tool myself.