I have recently studied several ASP. in the open-source project of NET, ELMAH is used to record the error log of the entire application. So I took a little research and shared it with you here, if you have used it, please advise.
ELMAH will be introduced in three series:
Concepts
Basic Applications
Advanced Applications
Concepts
I have recently studied several ASP. in the open-source project of NET, ELMAH is used to record the error log of the entire application. So I took a little research and shared it with you here, if you have used it, please advise.
ELMAH will be introduced in three series:
Concepts
Basic Applications
Advanced Applications
Concepts
ELMAH (Error Logging Modules and Handlers for ASP. NET) is an ASP. NET, which can easily record asp.net errors to XML, MS SQLServer, SQLite, MySql and other files, and even it can send mail.
Http://code.google.com/p/elmah/
This is an open-source component that allows you to easily report Global website errors.
On the
Recent Msdn This section describes the usage HTTP Module And Handler Implemented error logging Module Elmah (error logging modules and handlers )), He can record all unprocessed Asp.net ProgramException , You do not need to modify the existingCode , No need to re-compile and deploy , Modify Web. config Set DLL Copy Bin Okay. . Elmah You can not only record the detailed descriptions o
MVC uses the Elmah logging component, mvcelmahIntroduction
ELMAH (Error Logging Modules and Handlers) Error Logging module and processing program, is a widely used Error Log tool that is completely pluggable. It can be dynamically added to a running ASP. NET Web application, or even all ASP. NET Web applications on a m
problem, but there is also the problem that once the hacker sees the error message, the hacker can search for the information that is very beneficial to the invasion from these detailed information, which is also the purpose of writing an article.
Sniffing informationLet's see what kind of useful information we can get from Elmah. To see an example,Through the picture can see, we deliberately visited a/blah.aspx file, and then
Recently, the company's servers often encounter errors, leading to the inability to access the website. Therefore, we think of the error reminder emails that the company used before. We often receive system reports of the Yellow Pages, this helps us fix possible bugs and ensure system stability and a good user experience.
At present, an entrepreneurial company needs to do everything on its own. If this is not the case, it will take a long time to deploy this
Overview[Elmah records webapplication exceptions by configuring httpmoule and httphandler. However, if you do not handle these exceptions, you only record them and report errors by sending emails, to conveniently monitor webapplication exceptions]
Http://www.gotdotnet.com/workspaces/workspace.aspx? F18bab11-162c-4267-a46e-72438c38df6f
HTTP modules and handlers can be used in ASP. net to provide a hig
In C #. net website projects often need to record error logs. The previous practice is to record error exceptions to the data table of an error log, however, after a project needs to be connected to the VPN, the access speed to the database is really unsatisfactory for every view of the Error Log, so I found a third-party elmah logging tool for error backup, elmah
1. Installing Elmah through NuGetELMAH on XML log automatically adds configuration content to the Web. config file, does not allow remote access by default, log access path is Elmah.axd, 500 error is not logged2. Modify the configuration file500 increase in exception logging, allowing remote access Elmah> See Http://code.google.com/p/elmah/wiki/SecuringErrorLo
; True routedata.values["Error"; routedata.values["action"] = action; New Handleerrorinfo (ex, Currentcontroller, currentaction); ((IController) controller). Execute (new RequestContext (new Httpcontextwrapper (HttpContext), Routedata)); }To do this, you also need to define a errorcontroller and, of course, a corresponding error-prompt view:Using SYSTEM.WEB.MVC;Namespace Mvcapplication1.controllers{ Class Errorcontroller:controlle
Normal running time
After a website is published, you certainly hope that your website will not encounter any problems and will remain in normal operation. Now, I use the following tools to monitor the "Superexpert.com" website and make sure it remains in normal operation.
4, ELMAH
ELMAH is short for Error Logging Modules and Handlers for ASP. NET.
YSlow is a free Firefox extension provided by Yahoo. It allows you to test the front-end of your website.
Http://developer.yahoo.com/yslow/ of ySlow
This is the current test result of the "Superexpert.com" Website:
The overall score for "Superexpert.com" is "B" (not perfect, but not bad ). YSlow is not perfect. For example, although the Superexpert.com website uses the Microsoft Ajax Content Delivery Network (for Microsoft Ajax Content Delivery Network, refer to: http://www.asp.net/ajaxlibrary
NuPack-. NET open source Package Manager
NuPack is an open-source software package manager that allows you to easily find, install, and use the. NET Library in your project. It works well with all. NET project types (including, without any restrictions, ASP. NET Web Forms and ASP.
Using Miniprofiler to debug ASP. NET MVC Web site performance, Miniprofiler can handle the event of each processing time on the back end of the website very well, but Miniprofiler is unable to do remote monitoring of the action, The Miniprofiler is only capable of monitoring local-side actions, so miniprofier is more suitable for use during development.When developing ASP. NET Webfrom, if you want to track
Use MiniProfiler to debug ASP. net mvc website performance. MiniProfiler can handle events at each processing time on the back end of the website. However, MiniProfiler cannot be used for remote monitoring. MiniProfiler can only monitor local operations, therefore, MiniProfier is suitable for use during development.
In the development of ASP. NET WebFrom, if you want to track the execution status and perfor
produce production environment logs or uploaded files are deleted. (If the target environment exists but the development environment is present, you need to delete it when you deploy it, depending on how you set it up). If you set the Items to deploy option for the package/publish Web tab as only Files Needed to run of this application , that Elmah log files generated in the development environment will not be deployed. (If you need to deploy, t
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.