Professional Web Applications Themes

Trace enabling in web config cause app. error - ASP.NET General

Yestarday I post similar message, but I want to complete my observation. I'm using forms authentication. When <trace enabled="false"/> the app. runs normally. When set to true, the application get an error after redirected to the default.aspx from the login, and the trace page show the following error: Trace Information Category Message From First(s) From Last(s) aspx.page Begin Init aspx.page End Init 0,001624 0,001624 aspx.page Begin PreRender 0,319912 0,318288 aspx.page End PreRender 0,320124 0,000211 Unhandled Execution Error Object reference not set to an instance of an object. at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) at System.Web.UI.Page.ProcessRequestMain() 0,324925 0,004801 When trace enabled, the ...

  1. #1

    Default Trace enabling in web config cause app. error

    Yestarday I post similar message, but I want to complete my observation.

    I'm using forms authentication.

    When <trace enabled="false"/> the app. runs normally.

    When set to true, the application get an error after redirected to the
    default.aspx from the login, and the trace page show the following error:

    Trace Information
    Category Message From First(s) From Last(s)
    aspx.page Begin Init
    aspx.page End Init 0,001624 0,001624
    aspx.page Begin PreRender 0,319912 0,318288
    aspx.page End PreRender 0,320124 0,000211
    Unhandled Execution Error
    Object reference not set to an instance of an object.
    at System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
    calcViewState)
    at System.Web.UI.Page.ProcessRequestMain() 0,324925 0,004801


    When trace enabled, the application give the error several times, but after
    3-4 experiments, executes normally, but the trace shows only unsuccesfull
    tries.

    The number of unsuccessfull trying grows, as I set the requestLimit to
    larger number. If I set this number to 1, the app. executes without error.

    Can anybody explain this behaviour?

    I'm using VS 1.0 on Windows XP.


    Gabor Guest

  2. #2

    Default Re: Trace enabling in web config cause app. error

    The key is in the error message.

    When I set the requestLimit to lower number, or set to false, I don't get
    the message, because the trace doesn't execute on the erroneous page.

    The problems are:

    Wich object on can't initialize?

    Why on executes normally, when I disable tracing?

    Thanks in advance

    Gabor

    "Gabor" <hu> wrote in message
    news:%23LNrU$phx.gbl... 
    after 


    Gabor Guest

  3. #3

    Default Re: Trace enabling in web config cause app. error

    Hi Gabor,

    Would you please try to write a simple ASP.NET application to test if this
    problem still exists? I want to check if it is an issue related to a
    specific application or it is a problem of the asp.net framework. Thank you
    for your understanding.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! C www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Guest

Similar Threads

  1. Possible to change name of trace.axd in web.config file?
    By who be dat? in forum ASP.NET Security
    Replies: 5
    Last Post: June 16th, 04:19 AM
  2. Replies: 3
    Last Post: June 1st, 02:49 AM
  3. newbie: writing to php error/trace log
    By Andy in forum PHP Development
    Replies: 2
    Last Post: December 14th, 09:53 AM
  4. How to trace this error?
    By Howard J. Rogers in forum Oracle Server
    Replies: 3
    Last Post: December 18th, 09:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139