How to fix "Sys is undefined" error ?

Recently I have faced a strange issue in the process of developing a task using script manager for async post backs.

The error is "webresource.axd and scriptresource.axd 404 not found" whenever I do any async call I use to get this error "sys is not defined". I have tried a lot to fix this issue by following the below links.


1. http://blogs.msdn.com/b/carloc/archive/2008/12/04/webresource-axd-or-scriptresource-axd-not-working.aspx
2. http://imnettellect.blogspot.in/2010/12/iis-75-webresourceaxd-and.html
3. http://stackoverflow.com/questions/1433512/asp-net-web-application-webresource-axd-and-scriptresource-axd-files-loading

and so on ....




After spending 4 hours I found a new property on asp.net 4.0 called EnableCdn that basically, if it's set to "true", it loads the resources from the Microsoft content resource servers.

Refer this link for information about EnableCDN.

This worked like a charm and fixed my issue.

I hope this snippet can help many techies. :-)

Popular posts from this blog

Exporting to excel from a custom class object using C#.NET

Get the Clicked Cell Value and Column Name of GridView in ASP.NET

How to apply watermark to the textbox and dropdownlist?