473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Padding is invalid and cannot be removed.

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.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.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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)
Oct 2 '07 #1
4 8414
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)


MC wrote:
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.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.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()

at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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)
Oct 2 '07 #2
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 barker wrote:
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)


MC wrote:
>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.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.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionSt ep.System.Web.HttpApplication.IExecutionStep.Execu te()

at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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)
Oct 2 '07 #3
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/micro...rk.aspnet/brow
se_thread/thread/296d5f89a750d960/
Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, 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.

Oct 3 '07 #4
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: wa****@online.microsoft.com ("Walter Wang [MSFT]")
Organization: Microsoft
Date: Wed, 03 Oct 2007 07:24:15 GMT
Subject: Re: Padding is invalid and cannot be removed.
>
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/micro...ork.aspnet/bro
w
>se_thread/thread/296d5f89a750d960/
Hope this helps.
Regards,
Walter Wang (wa****@online.microsoft.com, 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.
>
Oct 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nicholas Holder | last post by:
A client creates a connection to the server using the TCPListener/Client classes and transfers data via a NetworkStream. When the client connects, the server creates a process and redirects its...
0
by: Robert Smith | last post by:
I am getting the following error being caught in my application_error method... I have no code referencing the crypto classes. I have found nothing on the net outside of people with crypto...
0
by: mjweiner | last post by:
I have an ajax.asp.net application that is running very well, however, my error log is continuing to fill with "padding is invalid and cannot be removed" These errors report that the url with the...
2
by: Brent K | last post by:
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 errors emailed to me (I have...
1
by: rdlauer | last post by:
For some time now we've been seeing seemingly random errors thrown by an application "Padding is invalid and cannot be removed". Everything I've read about this online suggests that the machine key...
3
by: floppyzedolfin | last post by:
Hi there. I'm coding an encryption / decryption program. At this very moment, I think I should be pretty close from the end, but there's something blocking me on my way. There's a "Padding is...
0
by: Amelyan | last post by:
Why does this happen? How to fix it? Once in a while I get error in ~/ScriptResource.axd?d=... System.Reflection.TargetInvocationException: Exception has been thrown by the target of an...
2
by: Amelyan | last post by:
Why does this happen? How to fix it? Once in a while I get error in ~/ScriptResource.axd?d=... System.Reflection.TargetInvocationException: Exception has been thrown by the target of an...
9
by: AG | last post by:
I occassionally get the following exception from an ASP.NET 2.0 Web Application running on a shared web host. I have no way of knowing what the actual request page was as it never happens when I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.