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

Invalid WebResource Request

1 Answer 184 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Simon831
Top achievements
Rank 1
Simon831 asked on 01 Feb 2012, 10:47 AM
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?

1 Answer, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 06 Feb 2012, 10:09 AM
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.
Tags
FormDecorator
Asked by
Simon831
Top achievements
Rank 1
Answers by
Niko
Telerik team
Share this question
or