In my ASP.NET web application, I have defined custom error pages in my web.config file as follows:
My first thought would be to create a HttpHandler which catches url's with aspxerrorpath in it, and strips it. You could probably do the same with the rewrite module in IIS7 as well.
aspxerrorpath