ASP.net reproducible bug

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default ASP.net reproducible bug

    I've seen a few posts from people wondering why OnInit fires multiple times
    for one web form. I finally figured it out for my situation.

    I tested this on both .net 1.1 and 1.0 both were able to reproduce.


    Create a new c# web app. in WebApp1.aspx add the following html:
    <table><tr><td background="#000000"></td></tr></table>

    Place a Break in the Web designer generated OnInit.

    Hit run..

    OnInit will fire twice..

    remove the background="#000000" and it will only fire once..

    serious bug.. as the second time it fires the context is lost and the
    request seems to be lost aswell..

    Brilliant!

    How would i go about reporting this to ms or getting a fix without using up
    one of my msdn incidents?

    R


    Ryan Folstad Guest

  2. Similar Questions and Discussions

    1. #40747 [NEW]: Reproducible Crash
      From: th at domainbox dot de Operating system: Debian Sarge PHP version: 4.4.6 PHP Bug Type: Reproducible crash Bug...
    2. reproducible browser crash in linux
      Both mozilla 1.7.5 and firefox 1.0 on linux reproducibly crash when accessing this url: http://www.offroad-challenge.home.ro A backtrace seems...
    3. #24762 [Fbk->Csd]: Reproducible crash in error handling
      ID: 24762 Updated by: sniper@php.net Reported By: skissane at ics dot mq dot edu dot au -Status: Feedback...
  3. #2

    Default Re: ASP.net reproducible bug

    You're using the background attribute wrong.
    The baground attribute is to specify a background image.
    Use the BGColor attribute to specify the background color.
    Here's more info:
    [url]http://www.blooberry.com/indexdot/html/tagpages/b/body.htm[/url]

    But I agree with you that it still shouldn't cause the page to load twice,
    so there is a bug for you to fix and a bug for Microsoft to fix.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]
    Developer for Hire



    "Ryan Folstad" <ryan@crmkb.net> wrote in message
    news:%23DQWBRFYDHA.2444@tk2msftngp13.phx.gbl...
    > I've seen a few posts from people wondering why OnInit fires multiple
    times
    > for one web form. I finally figured it out for my situation.
    >
    > I tested this on both .net 1.1 and 1.0 both were able to reproduce.
    >
    >
    > Create a new c# web app. in WebApp1.aspx add the following html:
    > <table><tr><td background="#000000"></td></tr></table>
    >
    > Place a Break in the Web designer generated OnInit.
    >
    > Hit run..
    >
    > OnInit will fire twice..
    >
    > remove the background="#000000" and it will only fire once..
    >
    > serious bug.. as the second time it fires the context is lost and the
    > request seems to be lost aswell..
    >
    > Brilliant!
    >
    > How would i go about reporting this to ms or getting a fix without using
    up
    > one of my msdn incidents?
    >
    > R
    >
    >

    Steve C. Orr, MCSD Guest

  4. #3

    Default Re: ASP.net reproducible bug

    You might try sending an email to [email]mswish@microsoft.com[/email] using Visual Studio
    ..NET in the title.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]
    Developer for Hire


    "Ryan Folstad" <ryan@crmkb.net> wrote in message
    news:OvmEvpFYDHA.1280@tk2msftngp13.phx.gbl...
    > Agreed its not how your supposed to use background but it does work.. the
    > cel color changes in IE atleast.
    >
    > It was a real pain finding which line was causing it to load twice.. I
    > basically had to remove each row in a huge table 1 by 1 to see which was
    > causing the problem.
    >
    > Do you have a better method? Is there anyway to decipher the EventArgs to
    > determine where/what caused a given load?
    >
    > Also how do i post a bug report to microsoft? I don't see anywhere on
    MSDN
    > to do that.
    >
    > R
    >
    > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    > news:u2LgMaFYDHA.2020@TK2MSFTNGP10.phx.gbl...
    > > You're using the background attribute wrong.
    > > The baground attribute is to specify a background image.
    > > Use the BGColor attribute to specify the background color.
    > > Here's more info:
    > > [url]http://www.blooberry.com/indexdot/html/tagpages/b/body.htm[/url]
    > >
    > > But I agree with you that it still shouldn't cause the page to load
    twice,
    > > so there is a bug for you to fix and a bug for Microsoft to fix.
    > >
    > > --
    > > I hope this helps,
    > > Steve C. Orr, MCSD
    > > [url]http://Steve.Orr.net[/url]
    > > Developer for Hire
    > >
    > >
    > >
    > > "Ryan Folstad" <ryan@crmkb.net> wrote in message
    > > news:%23DQWBRFYDHA.2444@tk2msftngp13.phx.gbl...
    > > > I've seen a few posts from people wondering why OnInit fires multiple
    > > times
    > > > for one web form. I finally figured it out for my situation.
    > > >
    > > > I tested this on both .net 1.1 and 1.0 both were able to reproduce.
    > > >
    > > >
    > > > Create a new c# web app. in WebApp1.aspx add the following html:
    > > > <table><tr><td background="#000000"></td></tr></table>
    > > >
    > > > Place a Break in the Web designer generated OnInit.
    > > >
    > > > Hit run..
    > > >
    > > > OnInit will fire twice..
    > > >
    > > > remove the background="#000000" and it will only fire once..
    > > >
    > > > serious bug.. as the second time it fires the context is lost and the
    > > > request seems to be lost aswell..
    > > >
    > > > Brilliant!
    > > >
    > > > How would i go about reporting this to ms or getting a fix without
    using
    > > up
    > > > one of my msdn incidents?
    > > >
    > > > R
    > > >
    > > >
    > >
    > >
    >
    >

    Steve C. Orr, MCSD Guest

  5. #4

    Default Re: ASP.net reproducible bug

    Microsoft will get this Bug Report very soon.

    I am sure someone in this group will bubble this bug up the ladder.


    "Ryan Folstad" <ryan@crmkb.net> wrote in message
    news:OvmEvpFYDHA.1280@tk2msftngp13.phx.gbl...
    > Agreed its not how your supposed to use background but it does work.. the
    > cel color changes in IE atleast.
    >
    > It was a real pain finding which line was causing it to load twice.. I
    > basically had to remove each row in a huge table 1 by 1 to see which was
    > causing the problem.
    >
    > Do you have a better method? Is there anyway to decipher the EventArgs to
    > determine where/what caused a given load?
    >
    > Also how do i post a bug report to microsoft? I don't see anywhere on
    MSDN
    > to do that.
    >
    > R
    >
    > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    > news:u2LgMaFYDHA.2020@TK2MSFTNGP10.phx.gbl...
    > > You're using the background attribute wrong.
    > > The baground attribute is to specify a background image.
    > > Use the BGColor attribute to specify the background color.
    > > Here's more info:
    > > [url]http://www.blooberry.com/indexdot/html/tagpages/b/body.htm[/url]
    > >
    > > But I agree with you that it still shouldn't cause the page to load
    twice,
    > > so there is a bug for you to fix and a bug for Microsoft to fix.
    > >
    > > --
    > > I hope this helps,
    > > Steve C. Orr, MCSD
    > > [url]http://Steve.Orr.net[/url]
    > > Developer for Hire
    > >
    > >
    > >
    > > "Ryan Folstad" <ryan@crmkb.net> wrote in message
    > > news:%23DQWBRFYDHA.2444@tk2msftngp13.phx.gbl...
    > > > I've seen a few posts from people wondering why OnInit fires multiple
    > > times
    > > > for one web form. I finally figured it out for my situation.
    > > >
    > > > I tested this on both .net 1.1 and 1.0 both were able to reproduce.
    > > >
    > > >
    > > > Create a new c# web app. in WebApp1.aspx add the following html:
    > > > <table><tr><td background="#000000"></td></tr></table>
    > > >
    > > > Place a Break in the Web designer generated OnInit.
    > > >
    > > > Hit run..
    > > >
    > > > OnInit will fire twice..
    > > >
    > > > remove the background="#000000" and it will only fire once..
    > > >
    > > > serious bug.. as the second time it fires the context is lost and the
    > > > request seems to be lost aswell..
    > > >
    > > > Brilliant!
    > > >
    > > > How would i go about reporting this to ms or getting a fix without
    using
    > > up
    > > > one of my msdn incidents?
    > > >
    > > > R
    > > >
    > > >
    > >
    > >
    >
    >

    MS News \(MS ILM\) Guest

  6. #5

    Default Re: ASP.net reproducible bug

    I was only able to reproduce using:
    Response.Redirect or link (<a href>)

    If you use Server.Transfer to load the page its not reproducible. This is
    what was really giving me a hard time tracking it down!

    Hope this helps,

    Ryan

    "MS News (MS ILM)" <sql_agentman@hotmail.com> wrote in message
    news:#8nQsvFYDHA.2256@TK2MSFTNGP10.phx.gbl...
    Ryan,

    I was only able to reproduce this bug only on postback in Both C# and VB.NET
    and not on the initial load of the page. Do you see the same thing?

    At least not a handicap.
    That is Brilliant Ryan. Thank you for sharing this with us

    SA

    "Ryan Folstad" <ryan@crmkb.net> wrote in message
    news:%23DQWBRFYDHA.2444@tk2msftngp13.phx.gbl...
    > I've seen a few posts from people wondering why OnInit fires multiple
    times
    > for one web form. I finally figured it out for my situation.
    >
    > I tested this on both .net 1.1 and 1.0 both were able to reproduce.
    >
    >
    > Create a new c# web app. in WebApp1.aspx add the following html:
    > <table><tr><td background="#000000"></td></tr></table>
    >
    > Place a Break in the Web designer generated OnInit.
    >
    > Hit run..
    >
    > OnInit will fire twice..
    >
    > remove the background="#000000" and it will only fire once..
    >
    > serious bug.. as the second time it fires the context is lost and the
    > request seems to be lost aswell..
    >
    > Brilliant!
    >
    > How would i go about reporting this to ms or getting a fix without using
    up
    > one of my msdn incidents?
    >
    > R
    >
    >

    Ryan Folstad Guest

  7. #6

    Default Re: ASP.net reproducible bug

    Thank you for the info

    "Ryan Folstad" <ryan@crmkb.net> wrote in message
    news:OYzlwVGYDHA.652@tk2msftngp13.phx.gbl...
    > To clarify.
    >
    > It is only reproducible on initial load, if the page is loaded from a url
    or
    > response.redirect. Server.Transfer is ok.
    >
    > However regardless how it was loaded initially any subsequent PostBack
    will
    > call OnInit twice.
    >
    > I also noticed that the second OnInit has old Request information and
    > Context is gone.
    >
    > R
    >
    > "Ryan Folstad" <ryan@crmkb.net> wrote in message
    > news:OiHkBQGYDHA.1816@TK2MSFTNGP09.phx.gbl...
    > > I was only able to reproduce using:
    > > Response.Redirect or link (<a href>)
    > >
    > > If you use Server.Transfer to load the page its not reproducible. This
    is
    > > what was really giving me a hard time tracking it down!
    > >
    > > Hope this helps,
    > >
    > > Ryan
    > >
    > > "MS News (MS ILM)" <sql_agentman@hotmail.com> wrote in message
    > > news:#8nQsvFYDHA.2256@TK2MSFTNGP10.phx.gbl...
    > > Ryan,
    > >
    > > I was only able to reproduce this bug only on postback in Both C# and
    > VB.NET
    > > and not on the initial load of the page. Do you see the same thing?
    > >
    > > At least not a handicap.
    > > That is Brilliant Ryan. Thank you for sharing this with us
    > >
    > > SA
    > >
    > > "Ryan Folstad" <ryan@crmkb.net> wrote in message
    > > news:%23DQWBRFYDHA.2444@tk2msftngp13.phx.gbl...
    > > > I've seen a few posts from people wondering why OnInit fires multiple
    > > times
    > > > for one web form. I finally figured it out for my situation.
    > > >
    > > > I tested this on both .net 1.1 and 1.0 both were able to reproduce.
    > > >
    > > >
    > > > Create a new c# web app. in WebApp1.aspx add the following html:
    > > > <table><tr><td background="#000000"></td></tr></table>
    > > >
    > > > Place a Break in the Web designer generated OnInit.
    > > >
    > > > Hit run..
    > > >
    > > > OnInit will fire twice..
    > > >
    > > > remove the background="#000000" and it will only fire once..
    > > >
    > > > serious bug.. as the second time it fires the context is lost and the
    > > > request seems to be lost aswell..
    > > >
    > > > Brilliant!
    > > >
    > > > How would i go about reporting this to ms or getting a fix without
    using
    > > up
    > > > one of my msdn incidents?
    > > >
    > > > R
    > > >
    > > >
    > >
    > >
    >
    >

    MS News \(MS ILM\) Guest

Posting Permissions

  • You may not post new threads
  • You may 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