Newby: Unexpected Error Handling in C# Web Applications

  • Thread starter Thread starter W.G. Ryan eMVP
  • Start date Start date
W

W.G. Ryan eMVP

If you have the code in VB.NET and you want it converted to C#, I'll be glad
to do it for you if you post it. You can trap the exception doing exactly
what you mention, but I don't know about getting all of the fields on the
page, out of the box I'm not sure there's a way to do that b/c those fields
may have nothing to do with the error and not even in the scope of it.
 
Hi:

I'm a VB.NET web programmer who is writing my first C# web application!

I'm having a problem trapping and logging unexpected errors. In my VB.NET
applications I have a routine called by global.asax that will trap the error
and write it to a text file. I've tried to convert that code and I'm totally
confused!

(This is not about try/catch)

I've searched MSDN and Google and there are very complicated examples
however I need something simple to start with. I need to know the error and
the various fields on the screen so I can debug in the event of an
unexpected crash.

If anyone knows of a SIMPLE example then I would appreciate hearing about
it.

Thanks very much!

Fred
 
Back
Top