Javascript runtime error in ASP.net MVC
<p>I created a new ASP .net mvc 2 web application with that default template provided in VS 2008. I wanted to check the document.ready to see on how it fires. So in Site.Master I included the jQuery Scripts in the following way:</p>

<p>"</p>

<pre><code>&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/jquery-1.3.2-vsdoc.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/jquery-1.3.2.min-vsdoc.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/jquery-1.3.2.min.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/Jquery/jquery.validate-vsdoc.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/jquery.validate.js")%&gt;" type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/jquery.validate.min-vsdoc.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/jquery.validate.min.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/MicrosoftAjax.js")%&gt;" type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/MicrosoftMvcAjax.debug.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/MicrosoftMvcValidation.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/MicrosoftMvcValidation.debug.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/MicrosoftAjax.debug.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;

&lt;script src="&lt;%=Page.ResolveClientUrl("~/Scripts/JQuery/MicrosoftMvcAjax.js")%&gt;"
    type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>But when I load the application, I get the following javascript error:</p>

<p>Error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance
Source File: <a href="http://localhost:1108/Scripts/JQuery/MicrosoftAjax.debug.js" rel="nofollow">http://localhost:1108/Scripts/JQuery/MicrosoftAjax.debug.js</a>
Line: 1559</p>

<p>Don't know whats wrong in this? I checked if the jquery files are not downloaded, but all of them get downloaded fine. Any help would be appreciated.</p>
