.net website in iis7 not rendering correctly on one server but is fine on another
Ran into a strange one today when pushing a .net 4.0 web forms app out to iis7 on two different servers. On one server was working fine on the other however the pages were not properly rendering, and not all of the scriptresource.axd files were getting loaded up. Also errors were popping up in IE dev tools console similar to this:
SCRIPT5009: ‘WebForm_GetElementByTagName’ is undefined
Turns out according to this post by Scott Hanselman that there is a bug in the browser definition files that shipped with .NET 2.0 and .NET 4, namely that they contain definitions for a certain range of browser versions. This causes an issue with postbacks.
After installing the hotfix all problems were gone. I am guessing I installed an older release of the .net 4.0 framework on the machine I was having the issues with b/c this issue was supposed to be addressed in the Jan 2012 update…
Here is the stackoverflow question and answer as well.