Pismire ASPNET yellow screen exception capture module

Source: Internet
Author: User

This function is mainly used to deploy the running ASPNET website, capture and record pornographic screen errors to the corresponding data source, or send error notifications to the specified mailbox, then, the user can see more friendly error information by setting and shielding the yellow screen errors,
At the same time, it ensures the security of the program and records all errors to facilitate error re-query.

I think this module is very practical. I hope you can share it with me: D. Go back to the software release area. If the Administrator thinks it is inappropriate, please transfer it.

SVN address:Http: // Pismire.googlecode.com/svn/trunk/

Configuration method:

1. Configure the pismire runtime environment (in web. config, specify the position of pismire. config, configure pismireHttpModule, and deploy pismire. config );

2. Configure httphandler (<Add verb = "*" path = "Pismire_AspnetErrorCapture.aspx" type = "Pismire. AspnetErrorCapture. Web. PageFactory, Pismire. Core"/> );

3. If necessary, change the settings of pismire. config for AspnetErrorCapture. For example, you need to modify the connection string of Pismire_AspnetErrorCapture in connectionStrings to store the connection string of the database with the error record for you;

4. Run http: // yourdomain/Pismire_AspnetErrorCapture.aspx? Command = install to install and initialize the database and storage process.

5. When an error occurs, the program will automatically capture it. To test the effect, you can manually trigger an exception for testing. Then enter http: // yourdomain/Pismire_AspnetErrorCapture.aspx? Command = install view record errors.

6. Check the customErrors node configuration in web. config.

The following are various viewing pages after error collection:

 

The original author of this module is lion. In pismire, it is only rewritten during configuration and usage, making it simpler and integrated and released. Thanks to LION for its good IDEA: d. This module is very practical.

 

--- Paste a QQ chat dialog to better explain the role of this module --

I am a fish (41347614) 16:11:11
Isn't it error handling?
I am a fish (41347614) 16:11:14
How to make a yellow Screen
I am a fish (41347614) 16:11:15
Call
Bad guy (889508) 16:11:33
Is the exception that you didn't handle in ASPNET? Is it a yellow screen?
I am a fish (41347614) 16:11:50
Then you should handle the exception.
Bad guy (889508) 16:11:57
Ah .. Exception Handling is what you do.
Bad guy (889508) 16:11:59
I do not handle
I am a fish (41347614) 16:12:00
But back.
Bad guy (889508) 16:12:04
I just helped you record it, huh, huh
I am a fish (41347614) 16:12:18
Generally, pornographic screens are abnormal.
Bad guy (889508) 16:12:19
Otherwise, the yellow screen will be displayed by the customer, and the customer cannot tell you clearly.
I am a fish (41347614) 16:12:28
Oh, you
I am a fish (41347614) 16:12:31
Remember to use porn shielding.
Bad guy (889508) 16:12:32
Let's take a note of this.
Polar silver fox. NET (157558) 16:12:44
The yellow screen can be changed to another one. Isn't it in CONFIG?
Bad guy (889508) 16:12:51
Yes.
Bad guy (889508) 16:12:59
But after the change, what happened? No records
Bad guy (889508) 16:13:07
This is to help you record it.
I am a fish (41347614) 16:13:08
This is recorded.
Bad guy (889508) 16:13:12
It can be restored later.
Polar silver fox. NET (157558) 16:13:14
Oh, you noted down its exceptions.
I am a fish (41347614) 16:13:15
Record exceptions for you
I am a fish (41347614) 16:13:18
Persistence
Bad guy (889508) 16:13:20
Yes, write down
Bad guy (889508) 16:13:37
Although there is no technical content, it is very practical. In fact, it was not written by me. It was written by LION.
Bad guy (889508) 16:13:59
It's just that he has modified too much about WEBCONFIG, and the module involved is too complicated. I changed it and integrated it.
Bad guy (889508) 16:14:11
I think it is very practical, so I will share it with you: D
Bad guy (889508) 16:14:25
Best stress testing
Polar silver fox. NET (157558) 16:14:29
 
Bad guy (889508) 16:14:55
This is the first thing to do, the stress test is the first thing to do. After the test is complete, all the errors that have not been handled are recorded. Haha
Bad guy (889508) 16:15:08
One-on-one processing is
I am a fish (41347614) 16:15:18
Is quite practical
Bad guy (889508) 16:16:02
After all, it is really a headache to solve the problem. Especially, the customer told you, oh, your program is wrong. You don't know what to write, you have to teach the customer to capture screens... The key is, in case the customer is too lazy to tell you ....

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.