469,610 Members | 1,797 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

Help - exception from WebResource.axd - what does it mean?

Hello,

I have an error logging system on one of my sites, so that if an
unexpected exception occurs, I get an e-mail sent. The e-mail includes
the name of the page on which the exception occurred, so I can track it
down.

I have been getting a lot of e-mails recently showing the source of the
exception as being WebResource.axd, and I'm not sure what's happening. I
wonder if anyone here has any ideas.

The most common exception I get is...

Exception: System.Security.Cryptography.CryptographicExceptio n

Message: Padding is invalid and cannot be removed

Source = mscorlib

Stack trace =
System.Security.Cryptography.RijndaelManagedTransf orm.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
System.Security.Cryptography.RijndaelManagedTransf orm.TransformFinalBlock
(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFin alBlock()
at
System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean useValidationSymAlgo)
at System.Web.UI.Page.DecryptString(String s)
at
System.Web.Handlers.AssemblyResourceLoader.System. Web.IHttpHandler.Proces
sRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplic
ation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)

Anyone any ideas what this could be, or how I work out what was going on
at the time? I don't even know which page on the site caused this, as
Request.ServerVariables["SCRIPT_NAME"] simply returns WebResource.axd,
which is a .NET resource that is used all over the place.

TIA for any help.

--
Alan Silver
(anything added below this line is nothing to do with me)
Sep 14 '06 #1
4 4061
if you look in the iis log, you will requests to WebResource.axd. look for
the 500 status and you have the query string.

"Alan Silver" <al*********@nospam.thanx.invalidwrote in message
news:pc**************@nospamthankyou.spam...
Hello,

I have an error logging system on one of my sites, so that if an
unexpected exception occurs, I get an e-mail sent. The e-mail includes the
name of the page on which the exception occurred, so I can track it down.

I have been getting a lot of e-mails recently showing the source of the
exception as being WebResource.axd, and I'm not sure what's happening. I
wonder if anyone here has any ideas.

The most common exception I get is...

Exception: System.Security.Cryptography.CryptographicExceptio n

Message: Padding is invalid and cannot be removed

Source = mscorlib

Stack trace =
System.Security.Cryptography.RijndaelManagedTransf orm.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
System.Security.Cryptography.RijndaelManagedTransf orm.TransformFinalBlock
(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFin alBlock()
at
System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo)
at System.Web.UI.Page.DecryptString(String s)
at
System.Web.Handlers.AssemblyResourceLoader.System. Web.IHttpHandler.Proces
sRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplic
ation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

Anyone any ideas what this could be, or how I work out what was going on
at the time? I don't even know which page on the site caused this, as
Request.ServerVariables["SCRIPT_NAME"] simply returns WebResource.axd,
which is a .NET resource that is used all over the place.

TIA for any help.

--
Alan Silver
(anything added below this line is nothing to do with me)

Sep 14 '06 #2
In article <#7**************@TK2MSFTNGP06.phx.gbl>, "bruce barker
(sqlwork.com)" <b_*************************@sqlwork.comwrites
>if you look in the iis log, you will requests to WebResource.axd. look for
the 500 status and you have the query string.
I looked in there, but found query strings like...

d=FIjXXc-q6aYj-7yQasNHpg2&t=632926642503125000

which means diddly squat to me. AFAIK, WebResource.axd is a .NET thing,
and the framework generates references to it, and the query strings as
well, so I'm not sure how to read this info. I have never manually added
a reference to it, so the exception is not something I've done (directly
at least).

Thanks for the reply, any further suggestions?
>"Alan Silver" <al*********@nospam.thanx.invalidwrote in message
news:pc**************@nospamthankyou.spam...
>Hello,

I have an error logging system on one of my sites, so that if an
unexpected exception occurs, I get an e-mail sent. The e-mail includes the
name of the page on which the exception occurred, so I can track it down.

I have been getting a lot of e-mails recently showing the source of the
exception as being WebResource.axd, and I'm not sure what's happening. I
wonder if anyone here has any ideas.

The most common exception I get is...

Exception: System.Security.Cryptography.CryptographicExceptio n

Message: Padding is invalid and cannot be removed

Source = mscorlib

Stack trace =
System.Security.Cryptography.RijndaelManagedTrans form.DecryptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
System.Security.Cryptography.RijndaelManagedTrans form.TransformFinalBlock
(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFin alBlock()
at
System.Web.Configuration.MachineKeySection.Encryp tOrDecryptData(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean
useValidationSymAlgo)
at System.Web.UI.Page.DecryptString(String s)
at
System.Web.Handlers.AssemblyResourceLoader.System .Web.IHttpHandler.Proces
sRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSt ep.System.Web.HttpApplic
ation.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

Anyone any ideas what this could be, or how I work out what was going on
at the time? I don't even know which page on the site caused this, as
Request.ServerVariables["SCRIPT_NAME"] simply returns WebResource.axd,
which is a .NET resource that is used all over the place.

TIA for any help.

--
Alan Silver
(anything added below this line is nothing to do with me)

--
Alan Silver
(anything added below this line is nothing to do with me)
Sep 14 '06 #3
Hi,

Alan Silver wrote:
In article <#7**************@TK2MSFTNGP06.phx.gbl>, "bruce barker
(sqlwork.com)" <b_*************************@sqlwork.comwrites
>if you look in the iis log, you will requests to WebResource.axd. look
for
the 500 status and you have the query string.


I looked in there, but found query strings like...

d=FIjXXc-q6aYj-7yQasNHpg2&t=632926642503125000

which means diddly squat to me. AFAIK, WebResource.axd is a .NET thing,
and the framework generates references to it, and the query strings as
well, so I'm not sure how to read this info. I have never manually added
a reference to it, so the exception is not something I've done (directly
at least).

Thanks for the reply, any further suggestions?
The webresource.axd is an ASP.NET handler which is able to extract
embedded files from a resource assembly (for example script files, CSS
files, images etc...) and to return them to the client. The advantage is
that you don't need to install multiple files together with a web
assembly or web control, but only one DLL containing all the files.

See this tutorial:
http://weblogs.asp.net/jeff/archive/...18/419842.aspx

Do you use 3rd party controls in your application? Or ATLAS? Or any
other external framework?

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 14 '06 #4
In article <uE**************@TK2MSFTNGP02.phx.gbl>, Laurent Bugnion
<ga*********@bluewin.chwrites
<snip>
>The webresource.axd is an ASP.NET handler which is able to extract
embedded files from a resource assembly (for example script files, CSS
files, images etc...) and to return them to the client. The advantage
is that you don't need to install multiple files together with a web
assembly or web control, but only one DLL containing all the files.

See this tutorial:
http://weblogs.asp.net/jeff/archive/...18/419842.aspx

Do you use 3rd party controls in your application? Or ATLAS? Or any
other external framework?
Thanks for the reply, but I don't think this is the issue. This site
doesn't use any 3rd party controls, nor Atlas (or any flavour of AJAX),
no external framework, etc. It's just a straight ASP.NET site, with all
code written in plain text files (eg classes in APP_Code folder), no
DLLs at all, etc.

The site uses plenty of CSS files, images, etc, but these are all linked
normally in the rendered HTML code AFAIK. Even the CSS, which is in a
theme folder is just linked normally.

Thanks again, any other ideas?

--
Alan Silver
(anything added below this line is nothing to do with me)
Sep 18 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Chris | last post: by
reply views Thread by sunev | last post: by
8 posts views Thread by Mark Rae | last post: by
1 post views Thread by =?Utf-8?B?TWF5?= | last post: by
9 posts views Thread by AG | last post: by
3 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
2 posts views Thread by Roberto Rasto | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.