473,819 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error Using DPAPI (User Store) from ASP.NET with Enterprise Services

I'm following the MSDN Article here:

<link>
http://msdn.microsoft.com/library/de...SecNetHT08.asp
</link>

All works fine until I try an decrypt the string. I get this error:

<error>
Exception: Exception decrypting.Exce ption decrypting. Decryption
failed. Unable to update the password. The value provided for the new
password does not meet the length, complexity, or history requirement
of the domain.
</error>

If anyone can shed some light on this it will be much appreciated.

Thanks.

Nov 22 '05 #1
2 2112
The issue may be the accounts that are encrypting/decrypting the data. In
order to use the user store the user's profile needs to be loaded. If you
are using service accounts for the encryption/decryption they will not by
default have a profile. This would cause the password/entropy value to be
null. This will cause an error when attempting to decrypt. I'm not sure if
it would have any effect on the encryption. I would recommend the machine
store for ASP.Net applications even though it is not as secure.

IHTH

Jon

"HardBap" <ha*****@gmail. com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
I'm following the MSDN Article here:

<link>
http://msdn.microsoft.com/library/de...SecNetHT08.asp
</link>

All works fine until I try an decrypt the string. I get this error:

<error>
Exception: Exception decrypting.Exce ption decrypting. Decryption
failed. Unable to update the password. The value provided for the new
password does not meet the length, complexity, or history requirement
of the domain.
</error>

If anyone can shed some light on this it will be much appreciated.

Thanks.

Nov 22 '05 #2
The issue may be the accounts that are encrypting/decrypting the data. In
order to use the user store the user's profile needs to be loaded. If you
are using service accounts for the encryption/decryption they will not by
default have a profile. This would cause the password/entropy value to be
null. This will cause an error when attempting to decrypt. I'm not sure if
it would have any effect on the encryption. I would recommend the machine
store for ASP.Net applications even though it is not as secure.

IHTH

Jon

"HardBap" <ha*****@gmail. com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
I'm following the MSDN Article here:

<link>
http://msdn.microsoft.com/library/de...SecNetHT08.asp
</link>

All works fine until I try an decrypt the string. I get this error:

<error>
Exception: Exception decrypting.Exce ption decrypting. Decryption
failed. Unable to update the password. The value provided for the new
password does not meet the length, complexity, or history requirement
of the domain.
</error>

If anyone can shed some light on this it will be much appreciated.

Thanks.

Nov 22 '05 #3

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

Similar topics

1
5043
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I double-checked the path to my error log. It is in /var/www/logs/php_error_log Thanks. :) -Wayne Stevenson
1
1596
by: Nicholas Then | last post by:
I have just written a COM object which ties into a roaming user profile so that I may use DPAPI on many machines and have the same encryption and decryption. When I install it on 2 of my servers it works great one server can decrypt the other server's data. That tells me that the roaming profile is being used properly. Now if I put the same profile on my development machine (XP SP2) I cannot decrypt data coming from the servers and the...
1
412
by: HardBap | last post by:
I'm following the MSDN Article here: <link> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT08.asp </link> All works fine until I try an decrypt the string. I get this error: <error> Exception: Exception decrypting.Exception decrypting. Decryption
2
4197
by: Dave Bailey | last post by:
I have developed a web app using DPAPI to encrypt a connection string in the web.config file. The application works perfectly on the development machine but when deployed to the server when opening the app the following wrror is generated: Exception decrypting. Decryption failed. Key not valid for use in specified state. Description: An unhandled exception occurred during the execution of the current web request. Please review the
8
2750
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any access to the network made through the application would be seen as 'C# application user' and not 'Bob'. What I want to accomplish is to create an encrypted folder on a server where files within the folder can be accessed through the application,...
12
3477
by: Charlie | last post by:
Hi: My host will not allow me use a trusted connection or make registry setting, so I'm stuck trying find a way to hide connection string which will be stored in web.config file. If I encrypt string externally, can it be used in it's encrypted form to connect to SQL Server? If I decrypt back to string for use in connection string during runtime, I have to supply a key. If I do that, hacker could use key to break encryption. How do I...
0
2649
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
1
8997
by: BigLuzer | last post by:
hi i am using the following setup: - .net 1.1 - 2 load-balanced iis servers - DPAPI machine store. - C# - i encrypted the connection string separately, one on each machine. the error i get is: - Exception decrypting. Decryption failed. Key not
2
1765
by: srinivasan.shanmugapillai | last post by:
Hi, I'm running a VB.NET windows applicatrion that is using the enterprise services transactions. While running this application without enterprise services support, a connection is established and data is retrieved sucessfully. when the class is configured to run inside enterprise services, it fails without proper error description.
1
2400
by: =?Utf-8?B?QnJpYW4gTmllbHNlbg==?= | last post by:
Hi I'm trying to use the Cryptography application block within a web application and have encountered a problem that I hope you can help resolve. 1. When I create a key file through "Enterprise Library Configuration", I select e.g the 3DES provider and goes through the wizard of creating a key. A part of the wizard wants to further enhance security by encrypting the key either in "User mode" or "Machine mode", using the currently...
0
9752
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
10708
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...
1
10461
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,...
1
7702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6910
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5590
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5725
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4381
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
3
3048
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.