DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Page Load Exceptions

Sort:
You are not authorized to post a reply.





New Around Here





    I'm trying to trace down why I'm not getting a stack trace for a PageLoadException. 

    In my specific case, placing a module on the page seems to work fine in DEV, and its rock solid, has been for years. But mysteriously in product the module renders once, then blows up.  I suspect there's some discombobulation with permissions causing this but without that stack trace its hard to find what.  I set out to find out why.

    First, the stupid question.  Is there a setting that turns off stack traces - specifically, all log records have no ExceptionHash and there is of course no consequent exception record generated.  

    In investigating this, I track down this OnError handler from PageBase:

     

            protected override void OnError(EventArgs e)
            {
                base.OnError(e);
                Exception exc = Server.GetLastError();
                Logger.Fatal("An error has occurred while loading page.", exc);

    /* Stuff */        

        Exceptions.ProcessPageLoadException(exc, strURL);
            }

    From what I understand, there's circumstances where Server.GetLastError() in ASP.NET returns null and so what will happen here is that you could wind up with the scenario of actually not getting a stack trace.  Do you think this is what I could be dealing with here or am I just barking up a wrong tree.

     




     






    Growing Member





      I wish I could help here more but I am not the guy... I don't know of a setting in dnn but here is a post that says the following :
       

      the following way you can disable or enable stack trace in web.config
      past here as a quote didnt work for the info below...

      <>  configuration

      <>  system.web

      <>  trace enabled="false" localOnly="true"

      with <> around each of those lines above in the web config is what this thread you can do for an ASP.NET app... so DNN should be included in that arena should work.


      https://forums.asp.net/t/...+net+Web+Application

      there is the link I found that info, could this work?

       

      You are not authorized to post a reply.

      These Forums are dedicated to the discussion of DNN Platform.

      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      5. No Flaming or Trolling.
      6. No Profanity, Racism, or Prejudice.
      7. Site Moderators have the final word on approving / removing a thread or post or comment.
      8. English language posting only, please.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved