This is a migrated thread and some comments may be shown as answers.

Response.redirect WebResource.axd error

2 Answers 113 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 03 Aug 2010, 10:12 PM
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 Answers, 1 is accepted

Sort by
0
Diego
Top achievements
Rank 1
answered on 09 Aug 2010, 10:12 AM
Here you go:
a standalone page
0
Lenny_shp
Top achievements
Rank 2
answered on 09 Aug 2010, 02:57 PM
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.
Tags
Ajax
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Diego
Top achievements
Rank 1
Lenny_shp
Top achievements
Rank 2
Share this question
or