I'm making a SOAP handler that will be secured with X509 Certificates, and one of the requirements is that the program log as much as possible in an existing log viewer. Obviously, there are a lot of errors surrounding certificates that are handled at the IIS level, which in this case is not acceptable.
I already have the logging part solved in C# code. That part is easy. The harder part is getting the IIS-level errors to go into the code instead of being returned to the client as unhelpful web errors. I looked at this thread, but our project lacks an App_Code folder due to the nature of what's going on, so it's not terribly applicable.
Any suggestions?