c# - In Production Web App Giving Parse Error -
my problem company's website has been getting following parse error:
server error in '/' application. parser error description: error occurred during parsing of resource required service request. please review following specific parse error details , modify source file appropriately. parser error message: not load type 'namespace.index'. source error: line 1: <%@ page language="c#" autoeventwireup="true" inherits="namespace.index" codebehind="index.aspx.cs" %> line 2: line 3: <!doctype html public "..." /> source file: /index.aspx line: 1
now website has been running fine while last code changes 2 months ago. in past 2 weeks though third time parse error has appeared. have fixed each time rebuilding project in visual studios , publishing it, in few days comes back. have no idea causing error, said there have been no code changes in past 2 months. know causing parse error appear?
edit: not sure if html pages of site still show no problem when error occurring on asp pages. error has occurred 5 times , seems take 2 or 3 re-publishes of site before site comeback up.
i've been able solve these weird , obscure errors doing one, combination or 3 of following:
- elmah
- healthmonitoring
- try/catch around every piece of code try , isolate
elmah , hm catch different errors , catch them differently. try/catch allows isolate code. onbviously, try/catch reasonable if have idea of problem - 1 page, data access, etc.
Comments
Post a Comment