OK. I waited long enough, but now after going RTM with .NET 2.0 my problem still persists. I get A LOT of below exceptions daily and I have no idea what causes them. Maybe there is someone out there who could shed any light on this.
This happens on our production server - Windows 2003 SP1 running our custom web app now compiled to RTM version .NET 2.0. If this matters - the server is not part of any web garden or web cluster.
If this helps - I've noticed a regular pattern in causing this behavior. It looks like errors are generated only when the page is hit from Google's cache (HTTP_REFERER :
http://64.233.161.104/search?q=cache:(...)) or combed by one the search engine crawlers (HTTP_USER_AGENT : Mozilla/5.0 (compatible; Yahoo! Slurp;
http://help.yahoo.com/help/us/ysearch/slurp))
This post is exactly what I searched for but with the exception that no solution is available. Maybe some of the moderators here could help out a bit.
I checked the log and it seems that every time the googlebot is visiting my customers website its causing this error 66.249.65.204 HTTP/1.1 Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html).
First it would be nice to get an explanation about why it happens and what does this mean (does google is able to index the site properly?) and second I would like to find a solution, if any additional information is needed please tell me.
I noted that this error can also be caused through freetextbox. In my case I use freetextbox in the cms and at least if I get all the images directly from the dll then time by time it happens that the pics from the toolbar can not be loaded and for every
pic not loaded this error occurs.
I will now try to load the pics just from a folder instead of the dll. Everything said before is still valid.
<div> <div>I am also seeing this error intermittently. It shows up in the event log several times a day. I too am not running a web farm, and I am seeing this with regular user access to the
pages on my site (i.e. not just with pages hit by spiders/crawlers).</div> <div> </div> <div>I see
that this issue was previously reported to Microsoft (http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=17c64976-ee21-4055-9de4-992d9c59e589),
but they claim it is resolved because they can't reproduce it other than in web farm scenarios. Clearly there is a problem here, as evidenced by the number of people experiencing it in non-webfarm scenarios. It would be really nice to here something further
from Microsoft on this.</div></div>
RadekP
Member
243 Points
49 Posts
Annoying CryptographicException on WebResource.axd
Nov 07, 2005 11:02 PM|LINK
This happens on our production server - Windows 2003 SP1 running our custom web app now compiled to RTM version .NET 2.0. If this matters - the server is not part of any web garden or web cluster.
Thank you in advance.
Radek
URL : /WebResource.axd?d=kSeV1ybpS9bEq7I4MiVq5IkULXRhwAlV5Koqh_1-Ty01&t=632667140451143976
BaseException: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Error Message :Padding is invalid and cannot be removed.
Error Source :mscorlib
Error Stack Trace : at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Error TargetSite :Int32 DecryptData(Byte[], Int32, Int32, Byte[] ByRef, Int32, System.Security.Cryptography.PaddingMode, Boolean)
RadekP
Member
243 Points
49 Posts
Re: Annoying CryptographicException on WebResource.axd
Nov 09, 2005 03:15 PM|LINK
If this helps - I've noticed a regular pattern in causing this behavior. It looks like errors are generated only when the page is hit from Google's cache (HTTP_REFERER : http://64.233.161.104/search?q=cache:(...)) or combed by one the search engine crawlers (HTTP_USER_AGENT : Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp))
Thank You for any help
Radek
cc guy
Member
5 Points
1 Post
Re: Annoying CryptographicException on WebResource.axd
Feb 13, 2006 07:44 PM|LINK
Did you happen to resolve this? I am experiencing the exact same problem.
Thanks.
fizgig
Member
65 Points
15 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 01, 2006 08:50 AM|LINK
Ward
mpandur
Member
267 Points
69 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 04, 2006 10:25 PM|LINK
Hi!
This post is exactly what I searched for but with the exception that no solution is available. Maybe some of the moderators here could help out a bit.
I checked the log and it seems that every time the googlebot is visiting my customers website its causing this error 66.249.65.204 HTTP/1.1 Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html).
First it would be nice to get an explanation about why it happens and what does this mean (does google is able to index the site properly?) and second I would like to find a solution, if any additional information is needed please tell me.
The error-message I get is as shown below.
Thanks,
Markus
http://someURL/WebResource.axd?d=D5GnL-VKKGPWg_z-yz7sIg2&t=632712132058651250
Message
Padding is invalid and cannot be removed.
Source
mscorlib
Target site
Int32 DecryptData(Byte[], Int32, Int32, Byte[] ByRef, Int32, System.Security.Cryptography.PaddingMode, Boolean)
Stack trace
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
ToString()
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
mpandur
Member
267 Points
69 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 06, 2006 01:43 PM|LINK
Hi!
I noted that this error can also be caused through freetextbox. In my case I use freetextbox in the cms and at least if I get all the images directly from the dll then time by time it happens that the pics from the toolbar can not be loaded and for every pic not loaded this error occurs.
I will now try to load the pics just from a folder instead of the dll. Everything said before is still valid.
Markus
mpandur
Member
267 Points
69 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 06, 2006 02:20 PM|LINK
And another cause:
IIS-LOG:
2006-03-06 15:07:22 W3SVC32376 USER 66.45.225.179 GET /Cms/new_website/WebResource.axd d=9VvIn5RuBhV3h2xHTDetCA2&t=632712132058651250 80 - 200.60.247.118 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) ASP.NET_SessionId=juycn155gmf3s245j3ji0b45 http://somewebsite/Cms/new_website/Warum.aspx somewebsite 500 0 0 3316 463 3468
This error is not just annoying, it is a problem. I causes my sessions to get lost.
Please help out!
Thank you,
Markus
mpandur
Member
267 Points
69 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 06, 2006 02:24 PM|LINK
The Event-Viewer-Log for the last error descriped:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 06.03.2006 10:07:22
Event time (UTC): 06.03.2006 15:07:22
Event ID: 2a8189a93acf4a3b954f45eb73e9106c
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/32376/Root/Cms/new_website-1-127861312407923054
Trust level: Full
Application Virtual Path: /Cms/new_website
Application Path: C:\Inetpub\vhosts\somewebsite\httpdocs\Cms\new_website\
Machine name: USER
Process information:
Process ID: 3380
Process name: w3wp.exe
Account name: USERUR\IWPD_9(somewebsite)
Exception information:
Exception type: CryptographicException
Exception message: Padding is invalid and cannot be removed.
Request information:
Request URL: http://somewebsite/Cms/new_website/WebResource.axd?d=9VvIn5RuBhV3h2xHTDetCA2&t=632712132058651250
Request path: /Cms/new_website/WebResource.axd
User host address: 200.60.247.118
User:
Is authenticated: False
Authentication Type:
Thread account name: USER\IWPD_9(somewebsite)
Thread information:
Thread ID: 1
Thread account name: USER\IWPD_9(somewebsite)
Is impersonating: False
Stack trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(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.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center at
fizgig
Member
65 Points
15 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 06, 2006 06:05 PM|LINK
User-agent: *
Disallow: /*.axd$
That should fix these errors at least from firing when google, or another spider is crawling my website. I'll let you know if it helped.
campkevin
Member
10 Points
2 Posts
Re: Annoying CryptographicException on WebResource.axd
Mar 08, 2006 08:26 PM|LINK