Padding is invalid and cannot be removed.

M

MC

Could someone please explain why I get 10-15 errors a day from my site
after the "googleBot" has visited?

Regards

MC
--------Error---------
Padding is invalid and cannot be removed.
--------Stack Trace---------
Current Path:/WebResource.axd
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)

--------Server Variables---------
APPL_MD_PATH: /LM/W3SVC/643/ROOT
APPL_PHYSICAL_PATH: C:\Sites\Single23\webroot\
AUTH_TYPE:
AUTH_USER:
AUTH_PASSWORD:
LOGON_USER:
REMOTE_USER:
CERT_COOKIE:
CERT_FLAGS:
CERT_ISSUER:
CERT_KEYSIZE:
CERT_SECRETKEYSIZE:
CERT_SERIALNUMBER:
CERT_SERVER_ISSUER:
CERT_SERVER_SUBJECT:
CERT_SUBJECT:
CONTENT_LENGTH: 0
CONTENT_TYPE:
GATEWAY_INTERFACE: CGI/1.1
HTTPS: off
HTTPS_KEYSIZE:
HTTPS_SECRETKEYSIZE:
HTTPS_SERVER_ISSUER:
HTTPS_SERVER_SUBJECT:
INSTANCE_ID: 643
INSTANCE_META_PATH: /LM/W3SVC/643
LOCAL_ADDR: 35.102.21.143
PATH_INFO: /WebResource.axd
PATH_TRANSLATED: c:\sites\single23\webroot\webresource.axd
QUERY_STRING: d=dxMMdK6eAGkmBYDPyRmCVA2&t=633198105607423965
REMOTE_ADDR: 66.249.67.105
REMOTE_HOST: 66.249.67.105
REMOTE_PORT: 48168
REQUEST_METHOD: GET
SCRIPT_NAME: /WebResource.axd
SERVER_NAME: www.XXXXXXXXXXXXXXX.com
SERVER_PORT: 80
SERVER_PORT_SECURE: 0
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Microsoft-IIS/6.0
URL: /WebResource.axd
HTTP_CONNECTION: Keep-alive
HTTP_ACCEPT: */*
HTTP_ACCEPT_ENCODING: gzip
HTTP_FROM: googlebot(at)googlebot.com
HTTP_HOST: www.XXXXXXXXXXXXXXX.com
HTTP_USER_AGENT: Mozilla/5.0 (compatible; Googlebot/2.1;
+http://www.google.com/bot.html)
 
B

bruce barker

it unable to produce a valid viewstate for a postback. design your site
to be crawled by bots by have only links and gets. use the agent strig
to detect a bot.


-- bruce (sqlwork.com)
 
M

MC

To clarify, I should not use any postback functionality?

Hasn't the majority of the ASP.NET functionalitiy been provided by using
postbacks?

If I detected a bot what do I do to stop it serving invalid responses
the errors all seem to come from webResource and ScriptResource requests.

MC
bruce said:
it unable to produce a valid viewstate for a postback. design your site
to be crawled by bots by have only links and gets. use the agent strig
to detect a bot.


-- bruce (sqlwork.com)



Could someone please explain why I get 10-15 errors a day from my site
after the "googleBot" has visited?

Regards

MC
--------Error---------
Padding is invalid and cannot be removed.
--------Stack Trace---------
Current Path:/WebResource.axd
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)

--------Server Variables---------
APPL_MD_PATH: /LM/W3SVC/643/ROOT
APPL_PHYSICAL_PATH: C:\Sites\Single23\webroot\
AUTH_TYPE:
AUTH_USER:
AUTH_PASSWORD:
LOGON_USER:
REMOTE_USER:
CERT_COOKIE:
CERT_FLAGS:
CERT_ISSUER:
CERT_KEYSIZE:
CERT_SECRETKEYSIZE:
CERT_SERIALNUMBER:
CERT_SERVER_ISSUER:
CERT_SERVER_SUBJECT:
CERT_SUBJECT:
CONTENT_LENGTH: 0
CONTENT_TYPE:
GATEWAY_INTERFACE: CGI/1.1
HTTPS: off
HTTPS_KEYSIZE:
HTTPS_SECRETKEYSIZE:
HTTPS_SERVER_ISSUER:
HTTPS_SERVER_SUBJECT:
INSTANCE_ID: 643
INSTANCE_META_PATH: /LM/W3SVC/643
LOCAL_ADDR: 35.102.21.143
PATH_INFO: /WebResource.axd
PATH_TRANSLATED: c:\sites\single23\webroot\webresource.axd
QUERY_STRING: d=dxMMdK6eAGkmBYDPyRmCVA2&t=633198105607423965
REMOTE_ADDR: 66.249.67.105
REMOTE_HOST: 66.249.67.105
REMOTE_PORT: 48168
REQUEST_METHOD: GET
SCRIPT_NAME: /WebResource.axd
SERVER_NAME: www.XXXXXXXXXXXXXXX.com
SERVER_PORT: 80
SERVER_PORT_SECURE: 0
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Microsoft-IIS/6.0
URL: /WebResource.axd
HTTP_CONNECTION: Keep-alive
HTTP_ACCEPT: */*
HTTP_ACCEPT_ENCODING: gzip
HTTP_FROM: googlebot(at)googlebot.com
HTTP_HOST: www.XXXXXXXXXXXXXXX.com
HTTP_USER_AGENT: Mozilla/5.0 (compatible; Googlebot/2.1;
+http://www.google.com/bot.html)
 
W

Walter Wang [MSFT]

Hi MC,

Please search for "SEO ASP.NET" for more information on this topic. SEO
stands for Search Engine Optimization.

Here's some useful thread for your reference:

#Gridview, paging and googlebot (and other spiders)
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/296d5f89a750d960/


Hope this helps.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steven Cheng[MSFT]

Hi MC,

Have you got any progress on this issue? If you have any findings or
anything else need help, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: (e-mail address removed) ("Walter Wang [MSFT]")
Organization: Microsoft
Date: Wed, 03 Oct 2007 07:24:15 GMT
Subject: Re: Padding is invalid and cannot be removed.
 

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

Members online

Forum statistics

Threads
473,979
Messages
2,570,183
Members
46,719
Latest member
login dogas.info

Latest Threads

Top