Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET site sometimes freezing up and/or showing odd text at top of the page while loading, on load balanced servers
    primarykey
    data
    text
    <p>I have various servers (dev, 2 x test, 2 x prod) running the same asp.net site. </p> <p>The test and prod servers are in load-balanced pairs (prod1 with prod2, and test1 with test2).</p> <p>The test server pair is exhibiting some kind of (super) slowdown or freezing during about one in ten page loads. Sometimes a line of text appears at the very top of the page which looks something like:</p> <pre><code>00 OK Date: Thu, 01 Apr 2010 01:50:09 GMT Server: Microsoft-IIS/6.0 X-Powered_By: ASP.NET X-AspNet-Version:2.0.50727 Cache-Control:private Content-Type:text/html; charset=ut </code></pre> <p>(the beginning and end are "cut off".)</p> <p>Has anyone seen anything like this before? Any idea what it means or what's causing it?</p> <p><strong>Edit:</strong> I often see this too when clicking something - it comes up as red text on a yellow page: </p> <pre> XML Parsing Error: not well-formed Location: http://203.111.46.211/3DSS/CompanyCompliance.aspx?cid=14 Line Number 1, Column 24:2mMTehON9OUNKySVaJ3ROpN" /> -----------------------^ </pre> <p>If I go back and click again, it works (I see the page I clicked on, not the above error message).</p> <p><strong>Update:</strong></p> <p>...And, instead of the page loading, I sometimes just get a white screen with text like this in black (looks a lot like the above text): </p> <p><strong>HTTP/1.1 302 Found Date: Wed, 21 Apr 2010 04:53:39 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Location: /3DSS/EditSections.aspx?id=3&amp;siteId=56&amp;sectionId=46 Set-Cookie: .3DSS=A6CAC223D0F2517D77C7C68EEF069ABA85E9HFYV64F&FA4209E2621B8DCE38174AD699C9F0221D30D49E108CAB8A828408CF214549A949501DAFAF59F080375A50162361E4AA94E08874BF0945B2EF; path=/; HttpOnly Cache-Control: private Content-Type: text/html; charset=utf-8 Content-Length: 184</strong></p> <h2>object moved here </h2> <p>Where "here" is a link that points to a URL just like the one I'm requesting, except with an extra folder in it, meaning something like:<br> <a href="http://123.1.2.3/MySite//MySite/Page.aspx?option=1" rel="nofollow noreferrer">http://123.1.2.3/MySite//MySite/Page.aspx?option=1</a></p> <p>instead of:<br> <a href="http://123.1.2.3/MySite/Page.aspx?option=1" rel="nofollow noreferrer">http://123.1.2.3/MySite/Page.aspx?option=1</a></p> <p><strong>Update:</strong></p> <p>A colleague of mine found some info saying it might be because the test servers are running iis in 64 bit (64bit win 2003) (prod servers are 32 bit win 2003).</p> <p>So we tried telling IIS to use 32 bit:<br> <strong>cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1</strong></p> <p><strong>%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i</strong></p> <p>(from <a href="http://support.microsoft.com/kb/894435" rel="nofollow noreferrer">this MS support page</a>)</p> <p>But iis stopped working altogether (got "server unavailable" on a white page instead of web sites).</p> <p>Reversing the above (see the link) didn't work at first either. The ASP.NET tab disappeared from our IIS web site properties and we had to mess around for an hour uninstalling (aspnet_regiis.exe -u) and reinstalling 32 bit ASP.NET and adding Default.aspx manually back into default documents. </p> <p>We'll probably try again in a few days, if anyone has anything to add in the meantime, please do. </p> <p><strong>Update:</strong> This seems at odds with everything we've found out so far, but our testing shows that this problem happens only in Firefox, not IE or Chrome (!!??). </p> <p><strong>Update: The Solution</strong><br> For anyone finding this later:<br> On Aristos's suggestion (see accepted answer) we searched the code for the HTTP Header "Content-Length". There <em>was</em> a page which set it, a page that pulls an image out of the DB for displaying a company logo (spits it straight to response, i.e.: instead of linking to say "log56.gif" you can link to "ThisImagePage.aspx?id=56" and it will serve the specified gif from the DB).<br> We commented out the line: </p> <pre><code>HttpContext.Current.Response.AddHeader("Content-Length", File.Length.ToString()); </code></pre> <p>... and it worked. If anyone can see a bug in that, let us know, otherwise I guess it was some kind of IIS or load balancer configuration problem, that only appears when manually setting the content-length on binary files, and only in Firefox (!?).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload