Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I search for the google not getting satisfied answer that solve my problem.

Whenever I build my web application, I get the error message pop up
"Microsoft JScript runtime error: ASP.NET Ajax client-side framework failed to load."
with three buttons Break, Continue and ignore.

If I press Continue or Ignore the project run successfully. But this error occurs only on my machine not on my colleague machine if I place the same project there.

Also I get other error messages like

<code>Microsoft JScript runtime error: 'Type' is undefined</code>


The below one occurs while I close the browser
<code>Microsoft JScript runtime error: Object doesn't support this action</code>



In most of the answers given on the Google, it is mentioned that It is Ajax framework problem and they suggest to reinstall Ajax. I have .Net framework 3.5 and Ajax is inbuilt in it so whether i need to reinstall the .Net framework 3.5.

I think it may be browser setting? If so what settings i need to change of the browser so that this error do not occur.

My default browser is Internet Explorer.

Thanks in advance.. :)
Posted
Updated 26-Aug-10 2:27am
v4

I have found that this is a possibly a caching/compression issue and by putting in the following into Web.Config, resolves the issue.

<system.web.extensions>
  <scripting>
    <scriptResourceHandler enableCaching="false" enableCompression="false" />
  </scripting>
</system.web.extensions>
 
Share this answer
 
The JScript runtime errors are because the AJAX javascript has not been loaded, or not loaded properly.

Verify the web.config file has all of the appropriate settings and JavaScript is not disabled on your browser
 
Share this answer
 
Comments
Sandesh M Patil 26-Aug-10 8:38am    
Javascript is enabled.
What you are trying to say uncheck the disable script debugging option.
till the problem persist.

And i said before it runs on another machine without an error. So it must not web.config problem.

Please elaborate your answer. Thanks for your answer
[no name] 26-Aug-10 20:07pm    
Where in my answer did you see anything related to debug?

You did not elaborate whether the application was hosted on one single machine or two so the web.config could be a problem. If you want accurate answers you must also provide full, complete and accurate description of the issue(s)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900