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

后端 未结 4 924
盖世英雄少女心
盖世英雄少女心 2021-02-07 09:24

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 n

相关标签:
4条回答
  • 2021-02-07 09:34

    I would also log the useragent that made the request to WebResource.axd. It wouldn't surprise me if it was a bot crawling your site.

    0 讨论(0)
  • 2021-02-07 09:35

    We also have all of our errors emailed to us, and we occasionally get those too. They never seem to have a referrer, and the user agent is usually a little wacky. We write them off as bots.

    I just checked a couple of the offending client IP's against Arin, and one them belonged to a web-spidering-type organization, so there's a little more evidence for the bot theory.

    0 讨论(0)
  • 2021-02-07 09:43

    This discussion...

    http://www.telerik.com/community/forums/aspnet/spell/this-is-an-invalid-webresource-request.aspx

    ... and this linked MSDN article...

    http://msdn.microsoft.com/en-us/magazine/cc163708.aspx

    ... might shed a little light (though not much).

    0 讨论(0)
  • 2021-02-07 09:49

    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.

    0 讨论(0)
提交回复
热议问题