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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -