• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Page Load Exceptions

You are not authorized to post a reply.

New Member

New Member

    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)
                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.



    Basic Member

    Basic 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.


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


      You are not authorized to post a reply.

      These Forums are dedicated to 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. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
      2. 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.
      3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      4. No Flaming or Trolling.
      5. No Profanity, Racism, or Prejudice.
      6. Site Moderators have the final word on approving / removing a thread or post or comment.
      7. 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