"This is an invalid webresource request" Exception!

52 posts, 0 answers
  1. Eric
    Eric avatar
    19 posts
    Member since:
    May 2009

    Posted 24 Jun 2010 Link to this post

    Hi,

    Since I upgraded my solution to ASP.NET 4 (webforms) and to Telerik RadControls 2010.1.519.40, I keep getting the following exception every time there is a new request to the server:
    Exception ID:   0 
    From:   System.Web 
    Time of Error:  6/23/2010 6:42:06 PM 
    Exception Type: System.Web.HttpException 
    Exception Message:  This is an invalid webresource request. 
    Exception Source:   System.Web 
    Source: Path :/WebResource.axd - Raw Url :/WebResource.axd?d=ajTmsUGo059i8jVyULN6WJxyGEzDWeYyk5iXrJ-hlCbfDyKpxWCzGgr__HcHehjE45vAS9-jMMZQxEhj5WlSgsmmlvC8804M8q7f1ZWxcrM4ODuYtuHJilKNWiCjODeP0&t=634129147086009932 
    Stack Trace:       at System.Web.Handlers.AssemblyResourceLoader.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) 

    And here is how my web.config looks like just in case it can help:
    <?xml version="1.0"?> 
    <configuration> 
      <appSettings> 
        <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" /> 
        <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" /> 
      </appSettings> 
      <system.web> 
        <compilation debug="true" targetFramework="4.0" /> 
        <customErrors mode="Off" /> 
        <sessionState compressionEnabled="true"></sessionState> 
        <httpRuntime maxRequestLength="2097151" /> 
        <pages maintainScrollPositionOnPostBack="true" controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"
        </pages> 
        <httpHandlers> 
          <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" /> 
          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> 
          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> 
          <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> 
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
        </httpHandlers> 
        <httpModules> 
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> 
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
        </httpModules> 
      </system.web> 
      <system.webServer> 
        <modules runAllManagedModulesForAllRequests="true"
          <remove name="RadUploadModule" /> 
          <remove name="RadCompression" /> 
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" /> 
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" /> 
        </modules> 
        <validation validateIntegratedModeConfiguration="false" /> 
        <handlers> 
          <remove name="ChartImage_axd" /> 
          <remove name="Telerik_Web_UI_SpellCheckHandler_axd" /> 
          <remove name="Telerik_Web_UI_DialogHandler_aspx" /> 
          <remove name="Telerik_RadUploadProgressHandler_ashx" /> 
          <remove name="Telerik_Web_UI_WebResource_axd" /> 
          <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" /> 
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" /> 
          <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" /> 
          <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" /> 
          <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" /> 
        </handlers> 
        <security> 
          <requestFiltering> 
            <requestLimits maxAllowedContentLength="2147482624" /> 
          </requestFiltering> 
        </security> 
      </system.webServer> 
    </configuration> 

    Is anyone experiencing the same problem? Any help will be greatly appreciated!

    Eric
  2. Eric
    Eric avatar
    19 posts
    Member since:
    May 2009

    Posted 24 Jun 2010 Link to this post

    I solved it. It turned out to be a reference in an embedded resource from a custom library that didn't exist. What's weird is that it was like this for several months but only threw an exception when I upgraded to .NET 4.0.....

    Eric
  3. Stanley
    Stanley avatar
    17 posts
    Member since:
    Feb 2008

    Posted 04 Jul 2010 Link to this post

    " ... a reference so an embedded resource", could you give more details on your fix? I might have the same issue - but in my case it only/always happens in IE, always OK with Firefox and Chrome.
    Thanks Eric!
  4. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 29 Oct 2010 Link to this post

    Could you expand on this issue? I am encountering the same thing at a volume of 100+ errors a day.
  5. Bill
    Bill avatar
    96 posts
    Member since:
    Aug 2006

    Posted 12 Nov 2010 Link to this post

    Same with me 100+ errors a day!
  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 16 Nov 2010 Link to this post

    Hello Bill and mac,

    It seems Eric has found the cause of the issue as stated in his second post.

    Are the circumstances in your cases the same? Which version of Telerik.Web.UI are you using? What is the URL of the request that triggers the exception? Does replacing RadScriptManager with ScriptManager resolve the issue?

    Sincerely yours,
    Simon
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  7. Scott Li
    Scott Li avatar
    15 posts
    Member since:
    Jun 2008

    Posted 21 Dec 2010 Link to this post

    I am having the same problem, so many errors in the audit log, can anyone from Telerik tell us which reference needs to be added?

    Thanks,

    Scott
  8. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 22 Dec 2010 Link to this post

    Hello Scott,

    Could you please log a failing request with FiddlerCap and send us the logs through a support ticket? Additionally, if possible, please send us the application or a subset of it, which exhibits this behavior.

    Regards,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  9. Eric
    Eric avatar
    19 posts
    Member since:
    May 2009

    Posted 22 Dec 2010 Link to this post

    In a custom library I had references such as the following that caused the exception when I upgraded to 4.0

    Page.ClientScript.GetWebResourceUrl(GetType(), "Namespace.file.png")

    Hope this helps,
    Eric
  10. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 22 Dec 2010 Link to this post

    I have been chasing this ghost for months now... my errors look like this:
    ---------------------------------------
    This is an invalid webresource request. at http://intranet/WebResource.axd?d=bjUPUSWQ4JmcTyMVIrIh1jGscEgqGVqj2ae3m6JJeXHOzWM7YlRfJNuJyAr_tLuAdTFEoVQUb-s73bm8hsuCnocmP40cdgrA_R6HS2gLIjY1&t=633716706420000000

    System.Web.HttpException: This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.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)Generated by: domain\username

    http://intranet/WebResource.axd?d=bjUPUSWQ4JmcTyMVIrIh1jGscEgqGVqj2ae3m6JJeXHOzWM7YlRfJNuJyAr_tLuAdTFEoVQUb-s73bm8hsuCnocmP40cdgrA_R6HS2gLIjY1&t=633716706420000000
    Referring Page: http://intranet/default.aspx
    --------------------------------------
    I have tried:
    recompile
    redeploy
    set machine keys
    added to the web.config 
      <httpHandlers>
    <add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader" validate="true" />

    I found this site but couldn't get the page to give me anything
    http://blogs.telerik.com/hristodeshev/posts/07-03-26/debugging_asp_net_2_0_web_resources_decrypting_the_url_and_getting_the_resource_name.aspx
    paste this: bjUPUSWQ4JmcTyMVIrIh1jGscEgqGVqj2ae3m6JJeXHOzWM7YlRfJNuJyAr_tLuAdTFEoVQUb-s73bm8hsuCnocmP40cdgrA_R6HS2gLIjY1 and get nothing back.

    The only thing that has worked for me is to contact the individual who has the issue and ask them to clear their temp files. problem is that if they don't clear the temp, then the UI is actually affected. 
    I get about 300 a day and about 10/second when one of the afftected users is running.
    Its pretty frustrating to say the least. I have all but given up at this point.
    Code compiles, no errors, no warnings.


  11. Gary Meagher
    Gary Meagher avatar
    29 posts
    Member since:
    Jan 2010

    Posted 20 Jan 2011 Link to this post

    This is a very serious issue on our web application.
    Controls started disappearing.
    We tried adding the skin to each Rad control but issue still happens on some machines.

    System.Web.HttpException: This is an invalid webresource request.

    Generated: Thu, 20 Jan 2011 21:43:29 GMT

    System.Web.HttpException: This is an invalid webresource request.
       at System.Web.Handlers.AssemblyResourceLoader.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)
    		
  12. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 27 Jan 2011 Link to this post

    Hello Eric,

    The most common cause of such a mysterious issue is a missing file that is requested through the WebResource.axd handler.

    Can you get the WebResource URL that is generating this error? If so, please use the approach suggested in this blog post to get the name of this particular resource. This will give us a clue about what is this resource and where it is located. If it is in our assembly, we will investigate it further.

    Kind regards,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  13. Ian Pellicano
    Ian Pellicano avatar
    1 posts
    Member since:
    Oct 2008

    Posted 28 Jan 2011 Link to this post

    Dear All,

    Have you found a solution to this problem? Recently I just started getting these errors up to 40 a day .. and even 6 in few seconds.. Here is the error :

    /WebResource.axd?d=rIXG_7apM8YM7VCIbyza4Y3RaewiCbR7BXKxTEZ8RsfH_yanrqHpdtNwLEgn4pH_ATVgbGr2Xho_tuvB1WFg-Cs3sjYN2FDBuIvqnEJrHKM1&t=634248267500000000

    System.Web.HttpException: This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.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)

    ..
    Can you help ??
  14. preeti
    preeti avatar
    6 posts
    Member since:
    Jul 2012

    Posted 03 Feb 2011 Link to this post


    Hi m getting same error.

    Using AsyncUpload / Progress control.
    Exception Details:Exception-Detail:MESSAGE: Path '/Telerik.Web.UI.WebResource.axd' was not found..
    please help me.
  15. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Mar 2011 Link to this post

    Hi preeti,

    Please make sure the axd extension is registered in IIS as described in this blog post.

    I hope this helps.

    All the best,
    Simon
    the Telerik team
  16. Matthew
    Matthew avatar
    3 posts
    Member since:
    Aug 2011

    Posted 17 Aug 2011 Link to this post

    What is the approach to identify the missing file. I am getting the same error.
  17. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 19 Aug 2011 Link to this post

    Hi Matthew,

    Here is a blog post showing the approach. I hope it helps.

    Kind regards,
    Simon
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  18. Alexander Shashkin
    Alexander Shashkin avatar
    15 posts
    Member since:
    May 2010

    Posted 14 Feb 2012 Link to this post

    Hi Simon,
    I have similar problem and I found that I have this problem because of 
    Telerik.Web.UI.Skins|Telerik.Web.UI.Skins.Common.loading.gif 

    I didn't checked it in depth, but looks like this issue becomes important. May be you have some advice for me?
  19. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 16 Feb 2012 Link to this post

    Hello Alexander,

    I just verified the latest version of the skin assembly for such embedded resource and there wasn't. This means some RadControl is requesting this resource erroneously.

    Which version of RadControls are you using? Could you remove RadControls from the page one by one to catch exactly which one is requesting the resource?

    Greetings,
    Simon
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  20. Alexander Shashkin
    Alexander Shashkin avatar
    15 posts
    Member since:
    May 2010

    Posted 26 Feb 2012 Link to this post

    Hello Simon,
    Thanks for your response and sorry for delay.
    After your post I decide to just update controls lib.
    I updated lib from 2011.3.1115.35 to 2012.1.215.35

    And I can say that I don't receive these errors anymore. Not sure what control had this "bad request", but looks like in newest version it is already fixed.


  21. Chris Poirier
    Chris Poirier avatar
    11 posts
    Member since:
    Mar 2007

    Posted 09 May 2012 Link to this post

    Hello,

    I am getting this error intermittently on a few of our RadControls applications, and I haven't been able to figure out what is going on. I tried the method mentioned in the blog post to find the resource being requested, but I get an error when I try to run it:
    Error decrypting data. Are you running your page on the same server and inside the same application as the web resource URL that was generated?
    Exception has been thrown by the target of an invocation.
    Unable to validate data.


    This is being run within the same application that generated the error, and the same server. We are running under RadControls for ASP.NET AJAX Q2 2011 SP1.
  22. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 15 May 2012 Link to this post

    Hi Eric,

    As long as the same machine key was used for encrypting the url, the provided code should be working. Please make sure that the machine key is the same and that you are using the code in the same manner as shown on this page.


    Greetings,
    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  23. Kevin Warnke
    Kevin Warnke avatar
    35 posts
    Member since:
    Feb 2010

    Posted 27 Aug 2012 Link to this post

    I have been experieincing this same problem for some time now.  I believe it started (as it did for others) after upgrading to .NET 4.0.

    Today, I upgraded to the latest version of the controls (RadControls for ASP.NET AJAX Q2 2012 SP1) to see if that would fix the issue.  It did not.

    The problem is the same as described above, although it's intermittent.  Sometimes a page will load perfectly fine.  Other times it will fail with this error for one of the resources and then the page will look funny (since 1 set of resources was not served).

    I can't proactively reproduce this problem.  When I try, everything works (of course).

    But I see this error in the logs frequently for other users, and I will also occaisionally see it when I'm running the site myself.

    When this happens, I'll try and use the page discussed to take the problem resource URL and decode it, but I see the same failure as the other person:
    Error decrypting data. Are you running your page on the same server and inside the same application as the web resource URL that was generated?
    Exception has been thrown by the target of an invocation.
    Unable to validate data.


    But, I'm not sure that article really works correctly for ASP.NET 4.0 anyways.  I can take a resource URL that worked fine, paste it into that sample page, and I'll get some other error like "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters."

    Then again, the same test page with another working resource URL will work fine and gets decoded as expected.

    I am at my whit's end on this one.  I need some additional guidance on how to debug this issue to find out why it sometimes fails while othertimes it works fine (on the same exact page).

    Thanks,
    Kevin
  24. Matthew
    Matthew avatar
    3 posts
    Member since:
    Aug 2011

    Posted 28 Aug 2012 Link to this post

    Is it happening with IE and Chrome?
  25. Kevin Warnke
    Kevin Warnke avatar
    35 posts
    Member since:
    Feb 2010

    Posted 28 Aug 2012 Link to this post

    It's not just IE and Chrome.  Looking back a week or so I've seen the following user agents with this problem:
    • IE6
    • IE8
    • IE9
    • FireFix 14.0.1
    • Chrome 21.0.1180.83
    • iPad (Safari)
    • iPhone (Safari)
    • Safari (on MAC)
    • Googlebot

    I'm sure others have had it too.

    Thanks,
    Kevin

  26. Matthew
    Matthew avatar
    3 posts
    Member since:
    Aug 2011

    Posted 28 Aug 2012 Link to this post

    Try clearing the cache for the individual browsers. Mine error was only happening with Chrome and when I cleared the cached and deleted all the temp files everything worked.
  27. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 30 Aug 2012 Link to this post

    Hello Kevin,

    We are aware of several causes for this problem. Most often is that if there are embedded resources in the dll that are dated in the future (this can happen if you compile the dll in europe and host it in the USA). Could you please verify that this is not the case? Here is more info:

    Link1


    Link2


    Kind regards,
    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  28. Luca B
    Luca B avatar
    38 posts
    Member since:
    Oct 2012

    Posted 06 Nov 2012 Link to this post

    Hi Genady Sergeev,
    sorry to bring up an old thread but I have this exact issue, although with an older version on Telerik controls. I tried all the suggestions found in this thread, without success.
    It's happening randomly, some users (such as myself) have not experienced this at all.
    I am unable to decode the webresource url ("Unable to validate data" error).
    I am not using future-dated resources and I am using a single web server (production, of course, on my dev box everything looks fine).
    The .axd extension is registered and both <httpHandlers> and <handlers> nodes are configured (using Telerik's wizard).
    In at least one case we can see the missing resources are related to RadWindow (the borders and icons do not appear).
    Any suggestion left?
    Thanks
  29. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 12 Nov 2012 Link to this post

    Hello Luca,

    We are still unable to find out the reason for some of the Invalid Web Resource exceptions. I believe that in you case applies to that category, unfortunately. We will now test the web resource decode url code in ASP.NET 4.0 and post the fixed version here so that you can use it to troubleshoot which is the failing resource.

    Kind regards,
    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  30. Luca B
    Luca B avatar
    38 posts
    Member since:
    Oct 2012

    Posted 14 Nov 2012 Link to this post

    Hi, thanks for your support.
    I don't know if this helps in investigating the issue, but let me explain our application layout.
    We have an application that is nested in a bigger one. We moved the outer application from ASPNET 2 to 4 and we added Telerik controls to it as well (so, now we also have Telerik handlers and settings in the outer web.config). I am not sure, but from that point on the inner application started to fail with the webresource.axd error.
    I do not know if this makes sense, but could it be that the inner application is trying to decode urls/resources based on the outer application settings?
    Thanks
Back to Top