Application_error not being triggered on server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hd95
    New Member
    • Nov 2008
    • 24

    Application_error not being triggered on server

    when i test my application locally Application_Err or works but when I upload my dll to the test or production servers it doesn't.

    Help would be appreciated.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Can you describe what happens that you know it is not working?
    I have an idea what might be going on, but it depends on your situation.

    I would guess that for starters you will want to change the line in your web.config to:
    <customErrors mode="Off"/>

    So that you can see what errors are occuring on your remote server. If your application_err or() function is generating an exception, I think it will get confusing

    Comment

    • hd95
      New Member
      • Nov 2008
      • 24

      #3
      Thanks but I figured it out

      I had moved global.asax.cs file to the servers instead of the global.asax file.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Ahh. You do not use the Publish feature of the web project to upload the webpage?

        Comment

        • hd95
          New Member
          • Nov 2008
          • 24

          #5
          for some reason (which i forget) we don't

          Comment

          Working...