WebResource.axd requested without parameters - This is an invalid webresource request

Daniel Magliola picture Daniel Magliola · Mar 9, 2009 · Viewed 10.6k times · Source

I'm finding this problem every now and then in my production website, and it has me absolutely stumped...

My app works perfectly in both dev and production, but every now and then, I get an e-mail from my global error handling with this:

MESSAGE: This is an invalid webresource request.
URL: /WebResource.axd
(which means that for some reason webresource.axd was requested without specifying any GET parameters)

I'm not doing anything with webresource.axd myself, I don't get any of my resources through it, it's only used automatically by .Net to serve it's typical JS for validators, etc.

Any idea why this might be getting requested without parameters? Has anyone encountered this?

Answer

Pavel Chuchuva picture Pavel Chuchuva · Jun 26, 2009

That definitely is a bot not doing very good job of crawling your web site. It processes your web form and locates reference to WebResource.axd, for example:

<script src="/site/WebResource.axd?d=MtIW_TBRtZCvAXDMJGwg4g2&amp;t=633772897740666651" type="text/javascript"></script>

The bot expects static JavaScript files only and tries to download it by requesting WebResource.axd without parameters. The result is an exception thrown by System.Web.Handlers.AssemblyResourceLoader class and intercepted by Application_Error in Global.asax.

I believe this exception is harmless - the client will receive 404 error. You can safely ignore it.