Last post Dec 18, 2018 03:28 AM by Ackerly Xu
Dec 17, 2018 04:01 AM|wibowowiwit|LINK
i will disable error message in my site, after disabled i can't see the error message.
my question : where is error log folder path to see this error ?
Dec 17, 2018 08:28 AM|PatriceSc|LINK
By default exception messages should be written to the Windows event log.
Dec 18, 2018 03:28 AM|Ackerly Xu|LINK
As PatriceSc , you could see your error log in Windows event log.
Please right click your computer , click Manage,in Event viewer choose windows logs, click Applicaiton, if your application meets error, there should be warning.
You could also use library to help you log errors , for example log4net.
You could log your error to specified folder with log4net,in the Application_error event of Global.asax.
The event will trigger when your application meets error.
protected void Application_Error(object sender, EventArgs e)
Exception ex = Server.GetLastError();//get the last error
//here use log4net to log error
Server.ClearError();//clear the error