<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Vikas Singhvi : iis, Webresource.axd</title><link>http://bloggingabout.net/blogs/vikas/archive/tags/iis/Webresource.axd/default.aspx</link><description>Tags: iis, Webresource.axd</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Tricky Webresource.axd</title><link>http://bloggingabout.net/blogs/vikas/archive/2007/12/02/tricky-webresource-axd.aspx</link><pubDate>Sun, 02 Dec 2007 19:05:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:442634</guid><dc:creator>vikassinghvi</dc:creator><slash:comments>14</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/vikas/rsscomments.aspx?PostID=442634</wfw:commentRss><comments>http://bloggingabout.net/blogs/vikas/archive/2007/12/02/tricky-webresource-axd.aspx#comments</comments><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;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.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;On debugging it, I found that client side scripts related to Infragistics controls are not executing and it seems it could not find them.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;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&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;or “.js” file but I noticed a reference to “WebResource.axd”.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;I looked at all my application files and could not find webresource.axd anywhere. So what is this file and where it is.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;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.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Without this feature any script, image and webresource would be URL accessible.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;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.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;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&lt;/font&gt;&lt;/p&gt;
&lt;ol style="MARGIN-TOP:0in;"&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;font face="Times New Roman" size="3"&gt;Script Engine&lt;/font&gt;&lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;font face="Times New Roman" size="3"&gt;Check that file exists&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;For .axd file application mapping make sure that “Check that file exits” is unchecked and “script engine” is checked. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="1" alt=".axd mapping" src="http://bloggingabout.net/root/images/axd_mapping.gif" width="1" border="0" /&gt;&lt;img height="463" alt="axd mapping" hspace="1" src="http://bloggingabout.net/blogs/vikas/Images/axd_mapping.gif" width="599" align="baseline" border="1" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=442634" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/vikas/archive/tags/iis/default.aspx">iis</category><category domain="http://bloggingabout.net/blogs/vikas/archive/tags/Webresource.axd/default.aspx">Webresource.axd</category></item></channel></rss>