Response.redirect WebResource.axd error

3 posts, 0 answers
  1. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 03 Aug 2010 Link to this post

    Can you provide a runnable web page for this?

    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

    I am doing a response.redirect in the page when I see this error in Fiddler.   IE client does not receive error, just in Fiddler.

    2010.2.722.35  IE8, XP x86 VS2008

    /WebResource.axd?d=OPZw5rj7cRd1-hon59bUqZSBmdd6GFQ_M6Jqx8mEjJr1qTKZ-V7lJ-1Kooodt1TUv-19zYD5PFm-6_nFjALOIbVI7XPEg1Lms0zblNzJYEE1&t=634153179600000000 HTTP/1.1

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /WebResource.axd

    [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)
  2. Diego
    Diego avatar
    14 posts
    Member since:
    Jun 2010

    Posted 09 Aug 2010 Link to this post

    Here you go:
    a standalone page
  3. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 09 Aug 2010 Link to this post

    Thanks!
    It worked if I have explicit <machineKey validationKey=  defined in the web.config then I copy this config to the test web page for decrypt.
    http://www.betterbuilt.com/machinekey/

    From my previous post it decoded to pTelerik.Web.UI|Telerik.Web.UI.Skins.Default.Ajax.LoadingProgressBar.gif

    The tricky part is that we use the MachineKeySection class to do our job and we deal with encryption settings specific to the current application. This means that decrypting web resource URL will work if and only if you run the code on the same server and from the same web application that generated the resource.
Back to Top