https://github.com/burnsoftnet/burnsoft.web.errorhandling
Simple Library that can help send error messages from your website to you or your support email about any application exception errors that have occurred in a pretty HTML report
https://github.com/burnsoftnet/burnsoft.web.errorhandling
burnsoft email error-handling nuget-package website
Last synced: 2 months ago
JSON representation
Simple Library that can help send error messages from your website to you or your support email about any application exception errors that have occurred in a pretty HTML report
- Host: GitHub
- URL: https://github.com/burnsoftnet/burnsoft.web.errorhandling
- Owner: burnsoftnet
- License: mit
- Created: 2020-08-13T11:53:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T13:37:23.000Z (almost 6 years ago)
- Last Synced: 2025-02-17T07:35:14.359Z (over 1 year ago)
- Topics: burnsoft, email, error-handling, nuget-package, website
- Language: C#
- Homepage:
- Size: 839 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BurnSoft.Web.ErrorHandling
Simple Library that can help send error messages from your website to you or your support email about any application exception errors that have occurred in a pretty HTML report.
Somethings you might need to get the exact exception that occurred as well as any Session information that you can use to recreate or diagnose the issue depending on how you currently use your session variables.
## Example Picture

## How To Use
1. Install nugget package
2. Open your **Global.asax.cs** file.
3. If you do not have it add the *Application_Error* function
4. Call the function *SendHtmlError* in the Application_Error section.
5. Add *Session["ERRORMESSAGE"] = "";* in your **Session_Start** function.
Example:
void Application_Error(object sender, EventArgs e)
{
Exception myErr = Server.GetLastError().GetBaseException();
BurnSoft.Web.ErrorHandling.ApplicationErrors.SendHtmlError(myErr,"tosomeone@test.com", "siteSupport@test.com", "smtp.test.com", "siteSupport@test.com", "12345");
}
void Session_Start(Object sender, EventArgs e)
{
Session["ERRORMESSAGE"] = "";
}
So now when you application throws an exception it will catch it and email it to you.
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JSW8XEMQVH4BE)]