I am working on modifying an existing standalone ASP.NET web application to run on Windows Azure. I successfully deployed the application to a web role, and initially at first glance everything seemed to work fine.
However, I quickly began to notice that Javascript did not execute on many pages as I expected. Further research showed that many pages did not load completely. I used Firefox (which seems to be more forgiving) and it displays partial content, while IE just displays "Page cannot be displayed."
Running fiddler or charles. I see that protocol violations occur with content length inconsistencies (the server sets the content length response header to one value, but then does not return the full content.
The length of the returned content seems to be changing, so I could not find a link to the cover for the length of the response, or something like that. Here are some sample error messages from fiddler:
Fiddler detected a protocol violation in session # 27. Content length mismatch: The response header indicated 26,716 bytes, but the server sent 23,138 bytes.
Fiddler detected a protocol violation in session # 47. Content length mismatch: The response header is 54,444 bytes, but the server sent 32,546 bytes.
Fiddler detected a protocol violation in session # 80. Content length mismatch: The response header indicated 27152 bytes, but the server sent 18.726 bytes.
This behavior does not occur in the application when running locally using the Azure Calculation Emulator or in the original local application - this only happens when deploying to Azure.
In case this helps, the web application is an ASP.NET 2.0 application running under .NET 3.5 SP1.
Any ideas on what might cause this problem?