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

"This is an invalid webresource request" Exception!

5 Answers 377 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 2
Eric asked on 24 Jun 2010, 12:15 AM
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

5 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 29 Jun 2010, 08:31 AM
Hi Eric,

I noticed that you have opened a duplicate post on the same matter. Please, refer to the other forum ticket post for additional information:
http://www.telerik.com/community/forums/aspnet-ajax/ajax/this-is-an-invalid-webresource-request-exception.aspx

Regards,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 21 Oct 2010, 11:05 AM
Hi Radoslav

I have the same problem but your link don't work anymore (error page) and I can't find the other post in the forum.
Where can I find the solution?

Regards,

Edwin.
0
Radoslav
Telerik team
answered on 26 Oct 2010, 09:31 AM
Hi Edwin,

On the following blog posts you could find more information about the described issue and the possible solutions:

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/this-is-an-invalid-webresource-request-exception.aspx
http://www.telerik.com/community/forums/aspnet-ajax/ajax/this-is-an-invalid-webresource-request.aspx
http://www.telerik.com/community/forums/aspnet/spell/this-is-an-invalid-webresource-request.aspx
Please check them out and let me know if they help you to resolve the issue. If the issue still persists could you please elaborate a bit more on your scenario. Which RadControls are you using? Does this error occur every time or only on the production servers?

Looking forward for your reply.

Regards,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 27 Oct 2010, 02:25 PM
Hi Radoslav,

I try to solve the problem with your links but the problem persist.
I found well from wish webresource. This is only for the RadAjaxLoadingPanel when I use a custom image.
Without the custom image I don't have the problem.
My definition is :
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Skin="">
        <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Vista.Ajax.loading7.gif") %>'
            alt="Loading..." style="border: 0; margin-top: 45px;" />
    </telerik:RadAjaxLoadingPanel>

The error code is:
URL:
 
REFERRER:
 
MESSAGE:
This is an invalid webresource request.
 
STACKTRACE:
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)


I try to put the skin="" but without effect.
This problem is new for us since the new version of Telerik (Q2 2010) with .net4

Any idea to solve this please?

Regards,

Edwin.

0
Radoslav
Telerik team
answered on 01 Nov 2010, 09:32 AM
Hello Edwin,

I tried to reproduce the described issue, but to no avail. I am sending you a simple example, please check it out and let me know what differs in your case.
Looking forward for your reply.

Regards,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Eric
Top achievements
Rank 2
Answers by
Radoslav
Telerik team
Hans van Rijnswoud
Top achievements
Rank 2
Share this question
or