This Blog

Syndication

Search

Tags

Community

Email Notifications

Archives

December 2007 - Posts

C# 3.0 Language Enhancements - Hands on Lab
For people moving from C# 2.0 to  C# 3.0 , there is an excellent document from microsoft downloads explaining C# 3.0 language enhancements with hands on lab. Please follow the link.

Posted 12-04-2007 5:04 PM by vikassinghvi | 1 comment(s)

Tricky Webresource.axd

One of the .Net web applications that I am working with uses Infragistics UI library and recently after upgrading to the newer version of Infragistics it stopped working.

 

On debugging it, I found that client side scripts related to Infragistics controls are not executing and it seems it could not find them.

 

To find out which scripts are this web page referencing , I did view source of the rendered Html file and noticed that there is not a single reference of any JavaScript  or “.js” file but I noticed a reference to “WebResource.axd”.

I looked at all my application files and could not find webresource.axd anywhere. So what is this file and where it is.

 

On researching the issue further I found out that this WebResource.axd file is related to a new functionality in .Net where in it allows control developers to package up client files such as scripts, resources, images, style sheets etc and use then in the generated rendering simply by embedding them into assembly rather than having to scatter them into file system. It helps in making deployment more manageable, cleaner, simple and secure.

Without this feature any script, image and webresource would be URL accessible.

 

At this point I know what a webresource.axd file is but it still does not explain why I can not find this file. On digging up further I found out that an .axd file really does not exist physically but is spit out by an Http Handler.

 

To resolve this issue I had to look at IIS settings for this file extension (.axd) so that it does not look for physical existence of the file. For that I had to open application extension mapping dialog box in IIS. This dialog box has two check boxes

  1. Script Engine
  2. Check that file exists
 

For .axd file application mapping make sure that “Check that file exits” is unchecked and “script engine” is checked.

.axd mappingaxd mapping

Posted 12-02-2007 2:05 PM by vikassinghvi | 31 comment(s)

Filed under: ,