jQuery(document).ready doesn't run under IIS7

Posted by gsiler on Stack Overflow See other posts from Stack Overflow or by gsiler
Published on 2010-04-26T16:29:54Z Indexed on 2010/04/26 16:33 UTC
Read the original article Hit count: 627

Filed under:
|
|

To simplify this test case, I created a new default .NET MVC project in Visual Studio 2010, and added the following code to the HTML header in Site.Master:

<script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript">
  jQuery(document).ready(function () { alert('jQuery document ready'); });
</script>

This works as expected in the .NET development server. However, when deployed to IIS7, the jQuery(document).ready function is not executed. Needless to say, my actual application is much more complicated. This eliminates all "suspects" except IIS7 deployment.

Any thoughts/suggestions?

© Stack Overflow or respective owner

Related posts about iis7

Related posts about jQuery