473,569 Members | 3,043 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.R ijndaelManagedT ransform.Decryp tData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
System.Security .Cryptography.R ijndaelManagedT ransform.Transf ormFinalBlock(B yte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security .Cryptography.C ryptoStream.Flu shFinalBlock()
at
System.Web.Conf iguration.Machi neKeySection.En cryptOrDecryptD ata(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean useValidationSy mAlgo)
at System.Web.UI.P age.DecryptStri ng(String s)
at
System.Web.Hand lers.AssemblyRe sourceLoader.Sy stem.Web.IHttpH andler.ProcessR equest(HttpCont ext
context)
at
System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpApplicat ion.IExecutionS tep.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)

--------Server Variables---------
APPL_MD_PATH: /LM/W3SVC/643/ROOT
APPL_PHYSICAL_P ATH: C:\Sites\Single 23\webroot\
AUTH_TYPE:
AUTH_USER:
AUTH_PASSWORD:
LOGON_USER:
REMOTE_USER:
CERT_COOKIE:
CERT_FLAGS:
CERT_ISSUER:
CERT_KEYSIZE:
CERT_SECRETKEYS IZE:
CERT_SERIALNUMB ER:
CERT_SERVER_ISS UER:
CERT_SERVER_SUB JECT:
CERT_SUBJECT:
CONTENT_LENGTH: 0
CONTENT_TYPE:
GATEWAY_INTERFA CE: CGI/1.1
HTTPS: off
HTTPS_KEYSIZE:
HTTPS_SECRETKEY SIZE:
HTTPS_SERVER_IS SUER:
HTTPS_SERVER_SU BJECT:
INSTANCE_ID: 643
INSTANCE_META_P ATH: /LM/W3SVC/643
LOCAL_ADDR: 35.102.21.143
PATH_INFO: /WebResource.axd
PATH_TRANSLATED : c:\sites\single 23\webroot\webr esource.axd
QUERY_STRING: d=dxMMdK6eAGkmB YDPyRmCVA2& t=6331981056074 23965
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_SEC URE: 0
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Microsoft-IIS/6.0
URL: /WebResource.axd
HTTP_CONNECTION : Keep-alive
HTTP_ACCEPT: */*
HTTP_ACCEPT_ENC ODING: gzip
HTTP_FROM: googlebot(at)go oglebot.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 8435
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.R ijndaelManagedT ransform.Decryp tData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer,
Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
System.Security .Cryptography.R ijndaelManagedT ransform.Transf ormFinalBlock(B yte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security .Cryptography.C ryptoStream.Flu shFinalBlock()
at
System.Web.Conf iguration.Machi neKeySection.En cryptOrDecryptD ata(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean useValidationSy mAlgo)
at System.Web.UI.P age.DecryptStri ng(String s)
at
System.Web.Hand lers.AssemblyRe sourceLoader.Sy stem.Web.IHttpH andler.ProcessR equest(HttpCont ext
context)
at
System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpApplicat ion.IExecutionS tep.Execute()

at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)

--------Server Variables---------
APPL_MD_PATH: /LM/W3SVC/643/ROOT
APPL_PHYSICAL_P ATH: C:\Sites\Single 23\webroot\
AUTH_TYPE:
AUTH_USER:
AUTH_PASSWORD:
LOGON_USER:
REMOTE_USER:
CERT_COOKIE:
CERT_FLAGS:
CERT_ISSUER:
CERT_KEYSIZE:
CERT_SECRETKEYS IZE:
CERT_SERIALNUMB ER:
CERT_SERVER_ISS UER:
CERT_SERVER_SUB JECT:
CERT_SUBJECT:
CONTENT_LENGTH: 0
CONTENT_TYPE:
GATEWAY_INTERFA CE: CGI/1.1
HTTPS: off
HTTPS_KEYSIZE:
HTTPS_SECRETKEY SIZE:
HTTPS_SERVER_IS SUER:
HTTPS_SERVER_SU BJECT:
INSTANCE_ID: 643
INSTANCE_META_P ATH: /LM/W3SVC/643
LOCAL_ADDR: 35.102.21.143
PATH_INFO: /WebResource.axd
PATH_TRANSLATED : c:\sites\single 23\webroot\webr esource.axd
QUERY_STRING: d=dxMMdK6eAGkmB YDPyRmCVA2& t=6331981056074 23965
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_SEC URE: 0
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Microsoft-IIS/6.0
URL: /WebResource.axd
HTTP_CONNECTION : Keep-alive
HTTP_ACCEPT: */*
HTTP_ACCEPT_ENC ODING: gzip
HTTP_FROM: googlebot(at)go oglebot.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.Securit y.Cryptography. RijndaelManaged Transform.Decry ptData(Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]&
outputBuffer , Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at
System.Securit y.Cryptography. RijndaelManaged Transform.Trans formFinalBlock( Byte[]
inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security .Cryptography.C ryptoStream.Flu shFinalBlock()
at
System.Web.Con figuration.Mach ineKeySection.E ncryptOrDecrypt Data(Boolean
fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length,
Boolean useValidationSy mAlgo)
at System.Web.UI.P age.DecryptStri ng(String s)
at
System.Web.Han dlers.AssemblyR esourceLoader.S ystem.Web.IHttp Handler.Process Request(HttpCon text
context)
at
System.Web.Htt pApplication.Ca llHandlerExecut ionStep.System. Web.HttpApplica tion.IExecution Step.Execute()

at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)

--------Server Variables---------
APPL_MD_PATH : /LM/W3SVC/643/ROOT
APPL_PHYSICAL_ PATH: C:\Sites\Single 23\webroot\
AUTH_TYPE:
AUTH_USER:
AUTH_PASSWOR D:
LOGON_USER:
REMOTE_USER:
CERT_COOKIE:
CERT_FLAGS:
CERT_ISSUER:
CERT_KEYSIZE :
CERT_SECRETKEY SIZE:
CERT_SERIALNUM BER:
CERT_SERVER_IS SUER:
CERT_SERVER_SU BJECT:
CERT_SUBJECT :
CONTENT_LENGTH : 0
CONTENT_TYPE :
GATEWAY_INTERF ACE: CGI/1.1
HTTPS: off
HTTPS_KEYSIZ E:
HTTPS_SECRETKE YSIZE:
HTTPS_SERVER_I SSUER:
HTTPS_SERVER_S UBJECT:
INSTANCE_ID: 643
INSTANCE_META_ PATH: /LM/W3SVC/643
LOCAL_ADDR: 35.102.21.143
PATH_INFO: /WebResource.axd
PATH_TRANSLATE D: c:\sites\single 23\webroot\webr esource.axd
QUERY_STRING : d=dxMMdK6eAGkmB YDPyRmCVA2& t=6331981056074 23965
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_SE CURE: 0
SERVER_PROTOCO L: HTTP/1.1
SERVER_SOFTWAR E: Microsoft-IIS/6.0
URL: /WebResource.axd
HTTP_CONNECTIO N: Keep-alive
HTTP_ACCEPT: */*
HTTP_ACCEPT_EN CODING: gzip
HTTP_FROM: googlebot(at)go oglebot.com
HTTP_HOST: www.XXXXXXXXXXXXXXX.com
HTTP_USER_AGEN T: 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/296d5f89a750d96 0/
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.m icrosoft.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/296d5f89a750d96 0/
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
6599
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 StandardOut to traverse back over the network to the client. I want to encrypt this data and the code I have is below. However, occasionally during...
0
1476
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 issues. Please Help. ~rob Padding is invalid and cannot be removed. at
0
1294
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 error is http://www.mysitename.com/ScriptResource.axd?d= Here is a sample of what is returned: Error Message: Padding is invalid and cannot be...
2
6147
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 it set up to email me exceptions). Here is the error. I have gotten this error probably 100 times in the last 2 days. I have googled this error...
1
8571
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 is different between two load-balanced servers, but this application is running on just one server. The other odd thing is that the errors come in...
3
5812
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 invalid and cannot be removed" error raised when closing the cryptostream (or FlushFinalBlock-ing it). For what I have read, Padding errors are due...
0
3352
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 invocation. ---> System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at
2
2196
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 invocation. ---> System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at
9
2529
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 visit the site. The exception is trapped in the Application_Error event of global.asax and emailed to me. The only encryption in the app is the...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7681
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.