473,406 Members | 2,345 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,406 software developers and data experts.

MachineKeys in web.config and app.config "Unable to validate data"

I wrote a small c# winform app to migrate some user info from one DB to another. The application works jsut fine but when I use the web application now it bombs trying to read the users password with "Unable to validate data". This is from the Membership class.

In the exe's aspp.config I have the same machinekey as the web applications web.config so their shouldn't be an encryption issue. Does anyone have any suggestions?

StackTrace:

at System.Web.Configuration.MachineKeySection.Encrypt OrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
at System.Web.Security.MembershipAdapter.EncryptOrDec ryptData(Boolean encrypt, Byte[] buffer, Boolean useLegacyMode)
at System.Web.Security.MembershipProvider.DecryptPass word(Byte[] encodedPassword)
at Egen.EgenMembershipProvider.UnEncodePassword(Strin g pass, Int32 passwordFormat)
at Egen.EgenMembershipProvider.GetPassword(String username, String passwordAnswer)

App.Config:

<system.web>
<machineKey validation="SHA1" validationKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps" decryptionKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps" />
...

Web.config:

<system.web>
<machineKey validation="SHA1" validationKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps" decryptionKey="B03F5F7F11D50A3AB03F5F7F11D50A3A123 F5F7F11D50A3AB03F5F7F11D50A3C,IsolateApps"/>
...
Oct 20 '10 #1
0 1651

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steven K | last post by:
Hello, I am using an asp page (upload.asp) to gather information and to upload files to the web server using SoftArtisans SAUpload Tool. In the first page (upload.asp), I have a form for...
6
by: alederer | last post by:
Hallo! I have a table tstest(ts char(13) for bit data constraint a unique). This column is filled in a trigger with generate_unique(). In a application (CLI), I have the values of this...
8
by: Jerry | last post by:
I have an off-the-shelf app that uses an Access database as its backend. One of the tables contains a field with an "OLE Object" datatype. I'm writing some reports against this database, and I...
0
by: Peter O'Reilly | last post by:
I receive the following error when I post a webpage: "Unable to validate error" - System.Web.HTTPException. The web page is an ASP WebForm page. I have a few controls on the page that when...
0
by: Victor Alcazar | last post by:
Our ASP.NET (VB) is generating sporadic "Unable to validate data" and "Invalid length for a Base-64 char array" errors. The production environment is two Windows 2000 Advanced Servers in a web...
2
by: Harrie Verveer | last post by:
Hi, I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost the application runs fine. For publishing we use 2 hosting providers at the moment (let's call those 'A' and 'B')....
1
by: Stimp | last post by:
I have an asp.net page with a form and several <INPUT type=fileinput fields so that I can upload images via the form. I also have about 30 other standard dropdownlists and text boxes as part of...
4
by: vunet.us | last post by:
Hi all, I am converting my app to AJAX-based. I have a form that submits some data including images. When I use AJAX XmlHttpRequest I am unable to submit the form with...
0
by: Fresno Bob | last post by:
I get the following very intermittant error. System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData The form encoding type is for...
3
by: tvnaidu | last post by:
I need to bringup xterm of remote machine on local machine, I did login to remote and set "export DISPLAY=ip_local:0.0", then I issued "xhost +" command, so that I would like to launch GUI window of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.