webresource.axd produces errors

P

Peter Strøiman

Hi.

I have a web application running .NET 2.0.

In the global.asax we have set up a handler for the ApplicationError event.
The handler sends an email with details about the error.
The puzzling thing is that we regularly (5-10 times a week) get this error
message:

System.Web.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)

The requested URL for this is http://url:80/WebResource.axd

We don't use web-resources ourselves.

Thanks in advance,
Pete
 
S

Steven Cheng[MSFT]

Hi Peter,

Welcome to MSDN newsgroup.
As for the webresource exception you mentioned, it is likely caused by some
certain client send request to the webresource.axd.... which dosn't contain
the valid querystring parameter.... The WebResource.axd is the new
build-in handler added in ASP.NET 2.0 to help generate resource stream
dynamically from assembly(embeded resource files.....). Some buildin
asp.net resource files (like validation script, webpart script or
style.....) are generated through this handler..... And when use it ,
the url's querystring will contain the encrypted assemblyname + resource
name, thus, if we send such requst without valid paramters , there'll occur
exception....

As for your scenario, not sure whether the request is sent by asp.net
runtime or any other client ... Have you checked the IIS log to see the
source of the request?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Peter Strøiman" <[email protected]>
| Subject: webresource.axd produces errors
| Date: Tue, 13 Dec 2005 18:51:18 +0100
| Lines: 28
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework
| NNTP-Posting-Host: cpe.atm2-0-101262.0xc159f118.boanxx12.customer.tele.dk
193.89.241.24
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:105220
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| Hi.
|
| I have a web application running .NET 2.0.
|
| In the global.asax we have set up a handler for the ApplicationError
event.
| The handler sends an email with details about the error.
| The puzzling thing is that we regularly (5-10 times a week) get this
error
| message:
|
| System.Web.HttpException: This is an invalid webresource request.
| at
|
System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRe
quest(HttpContext
| context)
| at
|
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplicati
on.IExecutionStep.Execute()
| at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
| completedSynchronously)
|
| The requested URL for this is http://url:80/WebResource.axd
|
| We don't use web-resources ourselves.
|
| Thanks in advance,
| Pete
|
|
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top