Previous Next

Thread: corrupt html from custom asp.net control on win2003/iis6 box

Last post 06-17-2008 12:33 PM by anilr. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 06-14-2008, 4:05 PM

    • papafiduk
    • Not Ranked
    • Joined on 06-12-2008, 11:31 PM
    • Posts 5

    corrupt html from custom asp.net control on win2003/iis6 box

    It was suggested to try posting in this forum.  Thanks! 

    ***

    Hello everyone -- first time poster and relative newcomer to the boards. This bug I'm tackling has me at my wits' end and it's come time to turn to the masses! If this is posted in the wrong forum and/or has already been addressed, I apologize. However, I've done thorough searches and haven't come across anything akin to what I'm facing.

    I'm working with a website that has a set of custom asp.net controls, all descending from a base class. These controls take DataSets returned from web services and renders custom html via overriding the Render method. Everything works fine on my local box and my coworker's box (both xp machines running iis 5). However, on our server (windows server 2003, 64-bit, iis 6), the html rendered by the browser appears corrupt, with garbage replacing individual characters, as follows:

    - …width="1px" bgcolor="DarkG˜‑ý></td><td>…

    - …<td><p sty¨šýmargin-left:5px;…

    - … style="margin-leØ
    ÿpx;margin-right:5px"…

    - … <p style="margin-left:5px;margin-rigèŠÿpx">…

    - … valign="top" widt`|Æpx"…

    Some interesting observations of this behavior:

    - to reiterate, it only happens on our win2003 64-bit iis6 machine and not on xp iis5 boxes. We're not concerned with cross-browser compatibility, just the IE browser.


    - the server is running with ssl encryption, however i've ruled that out as it occurs without it as well

    - the corruption of bytes follow a predictable pattern: no more than 8 bytes are corrupted in a group (on occasion 6 bytes are corrupted) and they occur on a regular interval of 0x7000 bytes. Every 0x7000 bytes after the first occurrence would be another corruption.

    - when stepping through code, I've confirmed that the control/page is properly rendered on the server via a dump of the html produced by the page. So at the server, just after rendering, it's appears to be fine. However, when it hits the browser, you see the above. This occurs in both ie6 and ie7, whenever hitting the server in question.

    Memory issues, right? I've closed off every stream utilized in the front-end. I tried toggling buffering options in iis and asp.net. I utilized the adsutil.vbs script and increased the AspBufferingLimit parameter on iis 6, but to no avail. One thing that did seem to make a difference was the presence, or lack thereof, of other custom controls on the master page. ie: the master control usually has 3 major custom controls and then a content place holder for the given page (the html rendered for the custom page is where the corruption is occurring.) However, if i comment out the controls on the master page such that only one is active - doesn't matter which one - everything renders correctly. Unfortunately, upon looking at the code of the controls and the base class, I don't see any shared resources between them, nothing that would 'cause any interference.

    I apologize for the length of the post, but I figure the more info the better. And again, if this is misplaced or I completely missed it addressed elsewhere, my bad.

     

  • 06-15-2008, 10:52 PM In reply to

    Re: corrupt html from custom asp.net control on win2003/iis6 box

    I would verify if IIS compression is enabled.  I've seen wierd things from compression and .NET.

    http://www.pipeboost.com/

    This link allows you to test if your webpage has compression enabled.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 06-16-2008, 12:44 PM In reply to

    • papafiduk
    • Not Ranked
    • Joined on 06-12-2008, 11:31 PM
    • Posts 5

    Re: corrupt html from custom asp.net control on win2003/iis6 box

    steve schofield:

    I would verify if IIS compression is enabled.  I've seen wierd things from compression and .NET.

    http://www.pipeboost.com/

    This link allows you to test if your webpage has compression enabled.

    Hey Steve,

    Thanks for the suggestion.  I checked out the pipeboost utilities and it turned out that there wasn't http compression going on.  HOWEVER, the page rendered correctly when I had the pipeboost compression isapi enabled.

    Interesting -- the page works if pipeboost compresses it.  Does it work with just IIS compression and not pipeboost?  After reinstalling and confirming IIS compression was up and running, I tried again.  Back to corrupted html.

    So: no compression -- corrupt html

          IIS compression -- corrupt html

          pipeboost compression -- valid html

    I'm still tweaking with the IIS compression to try and get that to work.  I don't want to have to go to my superior and say, "hey, got it working, but you'll have to purchase a third-party component." 

    Any thoughts?  Thanks for the direction!

  • 06-16-2008, 2:40 PM In reply to

    Re: corrupt html from custom asp.net control on win2003/iis6 box

    Hmm.  When you say it's corrupted, it is IE requests that are corrupted.  Have you attempted the same request with Safari or FireFox with the same results?

    I would also try wfetch or fiddler (you might have mentioned this already) to see the results there.

    http://support.microsoft.com/kb/284285

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 06-17-2008, 10:49 AM In reply to

    • papafiduk
    • Not Ranked
    • Joined on 06-12-2008, 11:31 PM
    • Posts 5

    Re: corrupt html from custom asp.net control on win2003/iis6 box

    I haven't tested with Firefox nor Safari.  Not that I haven't tried.  But this is an internal company website that's meant for IE and will be hosted within a panel of a desktop app.  I've tried hitting with Firefox, but the internal company authorization fails for whatever reason.

    That being said, I have analyzed it with wfetch and fiddler and am experiencing the same thing in both.  Namely, the GET command for the dynamic content is fired correctly and the response is corrupted.  As in, both wfetch and fiddler, in the response for the GET, either have garbage bytes (\x016\x004\x01B) or the text stops upon the first corruption and the remaining text is missing.

  • 06-17-2008, 12:33 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 1,237

    Re: corrupt html from custom asp.net control on win2003/iis6 box

    If you can create a small repro which reproes this problem that we can use to repro - we can get to the bottom of this - otherwise, we are just speculating - although since this does not repro with IIS compression turned off, that does not seem to be the cause of the problem.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (6 items)
Page view counter