keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.main > 08/2006

 #1  
08-29-06, 11:08 PM
Brad
Our .Net 2 web apps recently started getting CryptographicExceptions from
WebResource.axd, and these almost always seem to be when the client is a
web crawler...most notably googlebot (but a few times it is a client browser
such as IE). I'm curious if anyone has some insight as to why this would
be happening, if there is a way to resolve this. If it was just a web
crawler I'd ask if we should even care.

The error is - System.Security.Cryptography.CryptographicExceptio n:
Padding is invalid and cannot be removed.

Thanks

Brad
 #2  
08-30-06, 07:19 AM
Steven Cheng[MSFT]
Hello Brad,

Regarding on the CryptographicException from the ASP.NET webresource.axd, I
did find many thread discussing on this issue. Actually the problem is
usually caused by the request parameter(hashed string value) be invalid and
the webresource.axd fail to verify it.

As you mentioned the problem only occurs against some web crawler
client(like gooblebot...), have you ever found it occurs exactly when you
interactively visit any page in your ASP.NET 2.0 application or any other
user who get such error when they directly visit the pages in your
application?

If the problem is only caused when some unexpected user or web crawler
accessing your application, it is likely that they're using a cached
url(like the one in google cache) which contains a expired url string to
the webresource.axd. The querystring paramter used by webresource.axd is
encrypted by a machinekey defined by .net framework and the encrypted
string will timeout after a certain period. Therefore, if any user is
accessing the web application through those cached page(with expired
webresoruce url string), your application will certainly report exception
against this.

If this is the case, you can simply ignore these exceptions.

Please feel free to let me know if you have any further questions on this.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
Similar Threads
Strange error-(WebResource.axd) CryptographicException: Padding is invalid and cannot be removed.

Ok, I have an internal intranet website created in visual studio 2005, c#. It was running fine for months, and then all of the sudden a few days I started getting these...

CryptographicException WSE502

I refer to a post from Sidd [MSFT] on this newsgroup: [..] i also have the same problem [WSE502] with some messages being rejected, in an asynchronous environment. my...

CryptographicException: WSE502

Hi I have been using the UsernameSigningCode console sample supplied with WSE 2.0 SP2 and managed to get it working with ease. Based on the code from console sample, I...

CryptographicException

I started getting the error CryptographicException "the parameter is incorrect" whilst designing a report. Interestingly, I removed everything from the report so there...

CryptographicException: Bad Data

Hi. Okay. From this one site A, a user login then using a frame to go to site B. Then I get System.Security.Cryptography.CryptographicException: Bad Data. error. It seems...


All times are GMT. The time now is 09:39 PM. | Privacy Policy