Windows error 0x80090005, -2146893819

Detailed Error Information

NTE_BAD_DATA[1]

MessageBad Data.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode9 (0x009)
NameFACILITY_SSPI[2][1]
DescriptionThe source of the error code is the Security API layer.[2][1]
Error Code5 (0x0005)

Questions

16votes
4answers

IIS Manager Bad Data. 0x80090005

When I tried to set Physical Path Credentials in the Advanced Settings, I've got an error message as follows: Internet Information Services (IIS) Manager Bad Data. (Exception from HRESULT: 0x80090005) And it prevents me to set specific user to access network shared folder. Strangely, I have another server with same [...] read more
security
iis-7
7votes
2answers

IIS 7.5, Encryption Keys, and HRESULT: 0x80090005

When trying to assign a domain account to an IIS 7.5 app pool I get the following error: Details: Bad Data. (Exception from HRESULT: 0x80090005) My research shows that this can happen when you copy an applicationhost.config file without importing the keys. The suggested resolutions I have seen is to [...] read more
iis-7
windows-server-2008-r2
keys
4votes
1answer

Setting up IIS 7.5 Shared Configuration (with encrypted values) on Windows Server 2008 R2 Core

Simple question: Is there a way in PowerShell or appcmd to create the ConfigEncryptedKey.key normally created through exporting Shared Configuration in IIS 7.5? Now, an explanation of why I want to do this... We are trying to use the Shared Configuration feature of IIS 7.5 on Windows Server 2008 R2 [...] read more
powershell
iis-7.5
windows-server-core
4votes
1answer

Why does Reporting Services fail to import an existing encryption key during a service account change?

I've changed the service account for SQL Server 2005 Reporting Services a number of times now, but yesterday was the first time I'd run into the dreaded 'The report server cannot decrypt the symmetric key used to access...' error. The environment is SQL Server 2005 Enterprise edition installed as a [...] read more
sql-server-2005
reporting
3votes
2answers

Creators Update Stops Cross Domain GPO Drive mapping working ('0x80090005 Bad Data)

We're testing out Windows 10 Creators Update (Build 15063) here. So far this is the only unsolvable issue we've encountered. This issue is exclusive to Creators: identical Users and GPO's work fine on Windows 10 Anniversary (Build 14393), and Windows 7 SP1, all with the latest windows updates run We [...] read more
group-policy
windows-10
mappeddrive
3votes
2answers

Decrypt C#-encrypted data in C++ using Windows AES crypto provider

I need to encrypt the data in C# using RijndaelManaged and decrypt in C++ code. C# encryption code: static string Encrypt(string plainText) { byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText); var keyBytes = new byte[] { /* ... 32 bytes of a key */}; byte[] iv = new byte[] { /* ... 16 [...] read more
c#
c++
encryption
aes
3votes
0answers

Why does my CryptDecrypt fail with error code 0x80090005 (NTE_BAD_DATA)?

I wrote this piece of code to decrypt a given cipher using a given key and iv. It works fine until CryptDecrypt which returns false and GetLastError() returns 0x80090005 (which should be NTE_BAD_DATA). #include <Windows.h> #include <wincrypt.h> struct AesKey { BLOBHEADER Header; DWORD dwKeyLength; BYTE cbKey[16]; AesKey() { ZeroMemory(this, sizeof(*this)); [...] read more
c++
windows
cryptoapi
2votes
1answer

How do I load an OpenSSL-generated RSA1024 plaintext public key with the CryptoAPI?

I generated a public key using OpenSSL with the following commands to create a 1024bit RSA key, and then export the public key, giving me the public key in a .pem file. > openssl genrsa -out private_key.pem 1024 > openssl rsa -pubout -in private_key.pem -out public_key.pem I'm using the private [...] read more
delphi
winapi
cryptography
cryptoapi
0votes
2answers

RunTime Error System.Security.Cryptography.CryptographicException: 'Bad Data. ' in vb.net when trying to import RSA parameters

Here's the code I am not sure if there's any hidden error but on runtime when trying to import the rsa parameters it pops up that error Function ModInverse(ByVal a As BigInteger, ByVal b As BigInteger) As BigInteger Dim b0 As BigInteger = b Dim t As BigInteger Dim q [...] read more
vb.net
cryptography
rsa
chinese-remainder-theorem
0votes
0answers

Virtual Directory Physical Path Credentials for Specific User Getting Bad Data Error as This Portal No Longer Window Authentication

I have this portal that contains applications that range from classic asp to asp.net 4x. The transition from WIA to Forms Authentication has been accomplished manually as this delicate monstrosity will not accept any other way. I have only one hurdle left and this is accessing the virtual directory that [...] read more
asp.net
iis-7
0votes
1answer

CAPI AES: Why does CryptSetKeyParam returns NTE_BAD_DATA (0x80090005)

I am trying to encrypt/decrypt data using AES 128 bit with zero padding. I can encrypt/decrypt fine if I don't attempt to futz with the padding mode (defaults to PKCS5_PADDING), so the following snippet of code is to show where things are breaking down: // sanity check -- is key [...] read more
winapi
encryption
aes
padding
cryptoapi
0votes
1answer

CryptDecrypt fails with NT_BAD_DATA (0x80090005)

The following code by Alejandro Magencio generate key pairs, encrypts and decrypts files with the Microsoft CryptoAPI works well, but only for files smaller than the key: http://blogs.msdn.com/b/alejacma/archive/2008/01/28/how-to-generate-key-pairs-encrypt-and-decrypt-data-with-cryptoapi.aspx I am trying to extend this code in order to encrypt and decrypt larger files. Here is the complete listing as far [...] read more
c
winapi
encryption
cryptoapi
0votes
1answer

The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database

I got the following error when trying to use SQL Server 2005 Reporting Services manager: The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. (rsReportServerDisabled) [...] read more
sql
reporting
0votes
0answers

Decrypting AES/ECB in Windows Store App

I'm trying to decrypt some data I'm receiving through HttpClient. The data is encrypted using AES/ECB with a single synchronous key and padded using PKCS#5. Currently i'm trying - function decryptBlob(blob) { var Crypto = Windows.Security.Cryptography; var key = "M02cnQ52Ji97wvT7"; var SAP = Crypto.Core.SymmetricKeyAlgorithmProvider.openAlgorithm("AES_ECB_PKCS7"); var bufferedKey = Crypto.CryptographicBuffer.convertStringToBinary(key, Crypto.BinaryStringEncoding.Utf8) var [...] read more
javascript
windows
encryption
cryptography
aes
0votes
1answer

Key decryption error when integrating with SharePoint 2010

I have a SQL Server 2012 reporting Services in native mode. The report server url is: http//hodentekwin7/ReportServer_Kailua This which works fine. I have SharePoint 2010 installed it is working fine, i.e. I can access Central administration. So far no problem. I have installed SQL Server 2008 R2 for SharePoint Integrated [...] read more
sharepoint-2010
reporting-services
-1votes
2answers

SSO Bad Data Error

I'm running BizTalk 2013r2 CU5 in Win2012r2 I noticed a file wasn't being collected from a receive location. The relevant host instance was running, so I checked the event log and found this: > SSO AUDIT Function: GetConfigInfo ({E182FB76-16B4-47D7-8178-4C66C9E3BA9D}) > Tracking ID: c4d0d0d1-0763-4ec5-99ea-fb2ac3bcc744 Client Computer: > BizTalkBuild01 (BTSNTSvc64.exe:7940) Client User: [...] read more
single-sign-on
biztalk
biztalk-2013r2

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0