This Blog

Syndication

Search

Tags

Community

Email Notifications

Archives

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

Published Sun, Dec 2 2007 2:05 PM by vikassinghvi

Filed under: ,

Comments

# re: Tricky Webresource.axd@ Friday, June 06, 2008 1:51 AM

Dear Vika:

    I came into this ".axd" file type issue a different way, and here's the short of it... in Internet Options, on the first "General" tab - you can choose where files are being stored, usually one checks off, "when the site is visited" and you can VIEW the files there.  That's where the .axd file types are stored -- each location for each user.

    Hope this helps.

VBR, Mare

P.S.  By the way, I really like your "blog" and hope to visit your site(if you've got one - haven't looked yet).  Your layout is terrific and very user-friendly.

Mare Beau

# re: Tricky Webresource.axd@ Thursday, August 28, 2008 5:50 AM

Nice one to know about webResource.axd. It is simple and much easier to understand.

Thanks Vika

Krishna

# re: Tricky Webresource.axd@ Thursday, September 25, 2008 7:56 PM

Would you please post the complete path+name of the executable file that needs the axd extension.

Thanks,

Erick

# re: Tricky Webresource.axd@ Saturday, November 01, 2008 10:05 PM

Very informative - I have never seen this file discussed in ANY documentation, but I have noticed it - and don't like not knowing about things in my projects!

Thanks.

ecards

# re: Tricky Webresource.axd@ Thursday, November 06, 2008 2:16 PM

I m facing problem around webresource.axd. My site is accessible from both intranet and extranet..it is working fine from intranet but when accessed from extranet, the axd files are not getting downloaded and thus application gives js errors - web_postbackoption function undefined etc..

i tried setting suggested by Vikas but no use...any idea how can i fix this problem?

Ajinkya

# re: Tricky Webresource.axd@ Sunday, January 04, 2009 9:14 PM

Great, also  I had to add  the url of my server name to the zone "local internet sites"

thanks

Erdnando Rodriguez Vargas (Mex)

# re: Tricky Webresource.axd@ Friday, April 24, 2009 9:13 AM

thanx for a nice user friendly solutions.

prativa

# re: Tricky Webresource.axd@ Monday, May 04, 2009 9:15 PM

Thanks Vikas! This solved the issue that i've been contending with for 4 hours.

Farid

# re: Tricky Webresource.axd@ Thursday, May 28, 2009 9:30 AM

Hi ,

Nice solution I tried the way and added my intranet site to local internet in IE. but getting run time error as bellow: Webpage error. ( error window)

Do you want to debug this page?

Line: 235

Error: 'WebForm_SaveScrollPositionSubmit' is undefined

Regards,

Jaya Chandra Muni

Jaya Chandra Muni

# re: Tricky Webresource.axd@ Thursday, May 28, 2009 9:33 AM

Hi ,

Nice solution I tried the way and added my intranet site to local internet in IE. but getting run time error as bellow: Webpage error. ( error window)

Do you want to debug this page?

Line: 235

Error: 'WebForm_SaveScrollPositionSubmit' is undefined

Regards,

Jaya Chandra Muni

Jaya Chandra Muni

# re: Tricky Webresource.axd@ Wednesday, August 05, 2009 2:58 PM

c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll

Tez

# re: Tricky Webresource.axd@ Friday, August 14, 2009 8:51 AM

Thanks very much. Your suggestion has fixed my error. It took some time to search for your page.

Chakri

# re: Tricky Webresource.axd@ Monday, October 10, 2011 6:03 AM

I claim that the best papers writing service supposes to be rare at present time. But, you will see the reliable <a href="http://www.primewritings.com">term paper services</a>, if attempt well!  

Parks32JEANETTE

# re: Tricky Webresource.axd@ Wednesday, October 19, 2011 5:42 AM

In students' community cannot live without help with writing organization. Students are not lazy they are lack of time.

help with writing

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 1 and 6 and type the answer here: