473,624 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebResource CryptographicEx ception

Our .Net 2 web apps recently started getting CryptographicEx ceptions 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.C ryptographicExc eption:
Padding is invalid and cannot be removed.

Thanks

Brad
Aug 29 '06 #1
1 1596
Hello Brad,

Regarding on the CryptographicEx ception 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(hashe d 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.
Aug 30 '06 #2

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

Similar topics

8
2515
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs file (present under the Properties folder of the project) 3. Now I created a file called test.js on the root folder of the project,
7
11012
by: awyl | last post by:
I tried to use validation in asp.net 2.0 with the following code. <%@ Page Language="c#" %> <html> <body> <form runat="server"> <asp:TextBox ID="abc" runat="server"> </asp:TextBox> <asp:RequiredFieldValidator ControlToValidate="abc" runat="server"></asp:RequiredFieldValidator>
6
13840
by: PJ | last post by:
I'm getting an error in the event viewer as well as a script error in the browser when a page references WebResource.axd. The application is running on W2k3 server and does not occurr on my local xp development machine. Has anyone encountered this? Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309
4
1877
by: Graham | last post by:
I have a newly released web site that is throwing a few errors regarding the WebResource.asxd handler. I am not using this in any way for my own purposes, it is just getting included int eh page via ASP.NET form validation scripts. I have error reporting setup for this web site and have been recieving alot of errors regarding this file. The first one is:
4
4281
by: Alan Silver | last post by:
Hello, I have an error logging system on one of my sites, so that if an unexpected exception occurs, I get an e-mail sent. The e-mail includes the name of the page on which the exception occurred, so I can track it down. I have been getting a lot of e-mails recently showing the source of the exception as being WebResource.axd, and I'm not sure what's happening. I wonder if anyone here has any ideas.
8
8453
by: Mark Rae | last post by:
Hi, I'm developing an intranet for a client. On my development machine, I have created a virtual directory called, fairly unimaginatively, intranet. However, the client wants to deploy the app into its own site, rather than into a virtual directory, on the production server. Problem now is that the production site can't find WebResource.axd.
2
808
by: Håkan | last post by:
I have a problem with WebResource.axd Most of the requests to this site work just fine but every now and then I recive described below: Date: 2007-02-13 15:20 RawUrl=/WebResource.axd?d=2X-p-JOqLnRCeGYyigKrMg2&t=632988382868932500 Exception Type: System.Web.HttpException
1
2553
by: =?Utf-8?B?TWF5?= | last post by:
We are getting WebForm_DoPostBackWithOptions is not defined and other Java script errors related to WebResource.axd file. I narrowed down the problem and found out the cause but can't come up with a solution based on our application setup. Here is is how our web sites configured on IIS. Multiple web sites points to the same IP address and some of these web sites has sub-virtual directories, for example mystore.com is a web site that has...
2
6151
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 to no avail. My program is not doing any decrypting, I am not on a web farm, I have reset the web...
0
8236
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8679
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
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
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.