0

My web page is getting 500 Server Error inconsistently. And when i restart my IIS(7.5), it temporarily solves the issue. Is there a way to find out why?

Am using Custom error Mode. As per below solution: Deploying website: 500 - Internal server error if I use detailed mode, the error log is getting displayed in my webpage to the user. Can we get error log in separate file while the error occurs with out displaying it in web page?

Thanks in Advance.

Community
  • 1
  • 1
  • Maybe better ask/search on http://serverfault.com/ – PeterMmm Jul 21 '15 at 12:44
  • So what is the (detailed) error message that's displayed? – Alex K. Jul 21 '15 at 12:45
  • search for information about error handling inside global.asax – Paolo Jul 21 '15 at 12:50
  • The problem is might be in the data sources... Check and verify your Tables and Stored Procedures in database... – Sankar Jul 21 '15 at 13:10
  • You need to add logging in the Application_Error, may I suggest using log4net. There are plenty examples on the internet, like http://stackoverflow.com/questions/1367967/log4net-log-all-unhandled-application-errors – Dacker Jul 21 '15 at 19:50

0 Answers0