c# - Catching errors in an ASP.NET webpage from winforms -
I am writing a WinForms app that will execute some web UI tests written in a web test framework.
Can I get an error on the page without scratching on the page (I specify the page via the method parameter)? For example, if it throws:
A potentially dangerous request. From the client String value detected
How can I find out?
Edit:
In a way, just have to scratch the title.
I really suggest you call in some if you put ELMAH on your ASP.NET website , It will automatically log in and handle all the exceptions that are thrown by your app, as you are checking it. You can store all files in the form of XML files or in the database. You can email it directly with a copy of Yellow Screen of Death (including stack trace).
This will be very easy for you, then you can try to program the same functionality in your Winforms app. Simply use your app to beat the ASP.NET site and handle LMH error logging.
Comments
Post a Comment