Invalid WebResource Request

2 posts, 0 answers
  1. Simon831
    Simon831 avatar
    36 posts
    Member since:
    Sep 2005

    Posted 01 Feb 2012 Link to this post

    I am using RadFormDecorator on an Asp.Net4 site.

    When a request is made to WebResource.axd for the RadFormDecorator Skin using the  'www.' URL the correct CSS is returned.

    When the same request is made without the 'www.' the error is produced:

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

    System.Web.HttpException (0x80004005): 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)

    Here is the code from the sites masterpage:
    <telerik:RadScriptManager runat="server" ID="radScriptManager" OutputCompression="AutoDetect" CdnSettings-TelerikCdn="Enabled" CdnSettings-BaseUrl="https://d2i2wahzwrm1n5.cloudfront.net"  EnablePartialRendering="true" EnableScriptCombine="true" />
    <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1" CdnSettings-TelerikCdn="Enabled" CdnSettings-BaseUrl="https://d35islomi5rx1v.cloudfront.net" EnableStyleSheetCombine="true" />
    <telerik:RadFormDecorator ID="radFormDecorator" runat="server" DecoratedControls="all" Skin="Windows7" />


    How can I stop this error?
  2. Niko
    Admin
    Niko avatar
    387 posts

    Posted 06 Feb 2012 Link to this post

    Hello Simon,

    The issue that you are experiencing seems to be more closely related to the configuration of the web server, rather than the web application itself. Please, check whether the web-server accepts example.com and www.example.com equally, as these are technically two different web locations. You can also review any article on setting up redirection in IIS from one location to the other.
    Nevertheless, if you consider that the issue is not with the IIS I would suggest that you remove the RadFormDecorator from the page and check it the issue persists. If you still have issues, you best option is to open a support ticket and attach a sample fully-runnable project there that demonstrates the issue at hand.

    All the best,
    Niko
    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top