"System.Web.HttpException (0x80004005): This is an invalid webresource request" Exception!

0 Answers 2510 Views
Ajax AjaxPanel Editor General Discussions Grid Security
Birender
Top achievements
Rank 1
Birender asked on 26 Jul 2022, 06:01 PM

Hi,

I'm getting the following exception multiple time throughout the application in error log and the exception generates randomly while accessing any page in the application. It's  pretty much difficult to identify the exact reason for exception occurrence as the application is vast to debug in depth. Also, I'm using Telerik Control as well as Telerik Reporting in multiple place in the application.

EXCEPTION URL :

https://abp.roc-p.com:443/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZFJTiB1HaFtaGUfEvk469M0Ahcb1VPA81p1stPBulIctJXoc9_fThOXkBpob-_Dmsw2%29%20WAITFOR%20DELAY%20%270%3A0%3A5%27%20AND%20%284423%3D4423&t=637453852754849868

EXCEPTION MESSAGE :

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.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Can anyone please provide all the possible reason behind this exception along with its step to resolve. Any help will be highly appreciated!

NOTE :

I have already visited multiple page in the forum those have similar issue but the solutions provided were specific to their script attached. Here, I'm not sure about the script which causes this exception randomly. I need to try all possible solution to get this issue resolve.

 

Rumen
Telerik team
commented on 27 Jul 2022, 07:14 AM

Hi Birender,

This is most likely a cached URL for web resource generated by the asp:ScriptManager, which is made invalid when the IIS pool is being recycled. 

The available options here are:

  • ignore the error
  • increase the time between the application recycling
  • recycle only in the small hours during the night when the traffic is insignificant
  • reduce the use of web resources by enabling CDN for the native ASP.NET WebForms and Telerik resources.

    On a side note, the problem might not be directly related to the Telerik components since in the stack trace of the error log there isn't anything related to Telerik :

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.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Birender
Top achievements
Rank 1
commented on 01 May 2023, 02:27 PM

Hi Rumen,

As per your suggestion, we have researched on enabling CDN for native ASP.NET WebForms and Telerik resources, we found some of the limitation mentioned below over which we have concern and wanted to confirm from your end.

1. Reliability: Relying on a third-party CDN provider means that if the provider experiences downtime or other issues, your application's performance may be affected.

2. Security: Using a CDN may expose your application to security risks, as you are trusting an external provider to deliver content securely. If the CDN provider is compromised, your application's security might be at risk.

3. Limited control: With a CDN, you have less control over your application's resources, as they are hosted on servers managed by the CDN provider. This can make it more challenging to troubleshoot and resolve issues.

4. Compatibility: Enabling CDN for Telerik resources may cause compatibility issues with certain features or controls, as not all Telerik components are designed to work with a CDN. This may require additional configuration or workarounds to ensure proper functionality.

5. Latency: While CDNs can improve performance by delivering content from a server closer to the user, they can also introduce latency if the CDN provider does not have a server near your target users, or if there is a delay in updating the content on the CDN.

6. Cost: Utilizing a CDN can lead to additional costs, as many providers charge based on the amount of data transferred or the number of requests made.

7. Cache management: Managing cache settings can be more complicated when using a CDN, as you need to ensure that content is updated and invalidated correctly across all CDN servers.

8. CORS issues: Cross-Origin Resource Sharing (CORS) issues can arise when using a CDN, as resources are served from a different domain than your application. This may require additional configuration to ensure proper functioning.

Please let us know how Telerik team will overcome with the above concern if we'll enable CDN as we have project implemented in ASP.NET WebForms. Also, what additional challenges we may face after implementation and what preventive action we need to take, please suggest.

In addition to the above research, we found CDN base url  as "https://kendo.cdn.telerik.com/"  for active Telerik license account. As we have active Telerik license account, could you please confirm this base url is same for all. If not, please provide screenshot for reference from where we can get CDN base url.


Rumen
Telerik team
commented on 01 May 2023, 02:43 PM

The Telerik UI for ASP.NET CDN is hosted on Amazon CloudFront which is not only one of the most trusted and secure providers but also with no to limited downtimes - https://health.aws.amazon.com/health/status. You can find more information about the Telerik CDN at CDN Support Overview.

If you, however, do not want to trust any third-party CDN providers, you can host the Telerik scripts and stylesheet files on your own local CDN server as explained in the following article: Custom Local CDN Provider.

The https://kendo.cdn.telerik.com/ is the official Kendo UI and UI for Blazor CDN. The Telerik UI for ASP.NET AJAX CDN is available at the following locations:

  • https://d2i2wahzwrm1n5.cloudfront.net - for the scripts;
  • https://d35islomi5rx1v.cloudfront.net - for the skins (css and images);


Birender
Top achievements
Rank 1
commented on 02 May 2023, 10:30 AM

Rumen,

Thank you for your response. I would like to request one more clarification regarding the pricing model in case we decide to utilize the Telerik UI for ASP.NET CDN hosted on Amazon CloudFront. We already have an active Telerik license account. Thus, I am curious to know if there are any additional charges that we should anticipate once we begin using the CDN service.
Rumen
Telerik team
commented on 02 May 2023, 10:49 AM

Thank you for the question. The use of the Telerik ASP.NET AJAX CDN is part of your Progress® Telerik® UI for ASP.NET AJAX license and there aren't any additional charges.

No answers yet. Maybe you can help?

Tags
Ajax AjaxPanel Editor General Discussions Grid Security
Asked by
Birender
Top achievements
Rank 1
Share this question
or