ASP.NET site move to IIS7 results in gibberish characters in page output

Posted by frankadelic on Stack Overflow See other posts from Stack Overflow or by frankadelic
Published on 2009-06-26T02:10:43Z Indexed on 2010/03/17 15:41 UTC
Read the original article Hit count: 600

Filed under:
|
|
|

I have an ASP.NET site that was working fine running on Windows Server 2003 / IIS6.

I moved it to Windows Server 2008 / IIS7 and the aspx page output now includes gibberish text.

For example:

p????

?????

The majority of the page renders properly, but there is gibberish here and there. I have checked the event logs and there is nothing.

Any idea what's going on here? How can I fix this?

I have noticed that this issue shows up when I include multiple Server.Execute statements in the aspx code:

<% Server.Execute("/inc/top.inc"); %>

<% Server.Execute("/inc/footer.inc"); %>


The .inc files above contain just html. It appears that the files have to be of a significant length to cause the error. Here is the sample html I've been testing with:

<div class="logo">
  <a href="/">
    <img src="/logo.png" alt="logo" width="31" height="29" class="logoimg" />
  </a>
</div>
<div class="logo">
  <a href="/">
    <img src="/logo.png" alt="logo" width="31" height="29" class="logoimg" />
  </a>
</div>
<div class="logo">
  <a href="/">
    <img src="/logo.png" alt="logo" width="31" height="29" class="logoimg" />
  </a>
</div>
<div class="logo">
  <a href="/">
    <img src="/logo.png" alt="logo" width="31" height="29" class="logoimg" />
  </a>
</div>
<div class="logo">
  <a href="/">
    <img src="/logo.png" alt="logo" width="31" height="29" class="logoimg" />
  </a>
</div>
<div class="logo">
  <a href="/">
    <img src="/logo.png" alt="logo" width="31" height="29" class="logoimg" />
  </a>
</div>


Also, the gibberish characters appear inconsistently. If I ctrl+F5 the pages, the gibberish characters change and occasionally don't appear at all.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about iis