This is an invalid script resource request.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/3/2010 3:15:49 AM
Nux
Gravatar
Total Posts 183

This is an invalid script resource request.

Hey,

can someone explain me why I get this error a lot in ly logging:

2010-01-02 12:49:28,416 ERROR mojoPortal.Web.Global - 124.115.0.23-zh-CN - /ScriptResource.axd
System.Web.HttpException: This is an invalid script resource request.
at System.Web.Handlers.ScriptResourceHandler.Throw404()
at System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection queryString)
at System.Web.Handlers.ScriptResourceHandler.ProcessRequestInternal(HttpResponse response, NameValueCollection queryString, VirtualFileReader fileReader)
at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context)
at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I get this error with different ip addresses.
Does this mean that someone with the culture settings zh-CN in his browser is surfing to my site and mojoportal is first looking for such a resource?

Thanks
Stef

1/3/2010 4:57:35 AM
Gravatar
Total Posts 18439

Re: This is an invalid script resource request.

Hi Stef,

Its just creepy crawlers all over the web poking at your site. It is very easy to cause errors to be logged, but it generally has no impact on real users. You can cause this error in your log yourself simply by requesting the url http://yoursiteroot/ScriptResource.axd

so any crawler can also cause this error. It is a nuisance but no real harm is caused by it. I was getting these in my log every 3 minutes from a range of ip addresses in China, I collected all the ip addresses and banned them as it is clearly not normal traffic but some automated script.

I would not go crazy banning ip addresses, only ban ones where you see the same ip address causing the same error on a regular basis. Note that sometimes you will see viewstate errors associated with ScriptResource.axd, some of these are definitely not normal traffic (in my log) but viewstate errors can also be caused by normal traffic if the user posts the form before the page has finished loading so I would not ban those unless its happening repeatedly from a particular ip address.

Best,

Joe

1/3/2010 7:30:32 AM
Nux
Gravatar
Total Posts 183

Re: This is an invalid script resource request.

Thanks Joe for the information.

I wasn't scaredthat this would harm my site, I just noticed the error.
Perhaps it is not bad to denied access to the ScriptResource.axd with the robot.txt.

I will try and see if this has some effects.


Thanks
Stef

1/3/2010 7:34:13 AM
Gravatar
Total Posts 18439

Re: This is an invalid script resource request.

robots.txt included with mojoportal already tells crawlers not to crawl it. But hacking scripts don't respect robots.txt.

These errors are not from legitimate crawlers like search engine crawlers.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.