Hi All,
Its killing my time I have been freaking with it, for some time I was a using a computer in which I didn't have this problem. Now my company gave me new computer I started getting this problem. Since two days I am just dieing to run my application. Without running my application what can I do? I just don't want any encryption and decryption on my machine, if they want to do it on the Server let them do it. If I want to say I don't want to play with any encryption or decryption where can I say that. Why the heck isn't simple to say that I don't want it. I have been researching, but every one is explaining how to encrypt or decrypt but no one is saying how just get out of it. I don't want it that's it.
I have an asp.net application, I don't want to encrypt or decrypt my web config file, but still I am getting the following error. How can I say that I want neither encryption nor decryption for my application on my machine.
I went into Machine.Config file and commented the RSA Encryption section as below
<!--<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider,System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="NetFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false"/>
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider,System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Uses CryptProtectData and CryptUnProtectData Windows APIs to encrypt and decrypt" useMachineProtection="true" keyEntropy=""/>
</providers>
</configProtectedData>-->
And my Web config doesn't have any encrypt or decrypt functionality defined as below.
<add key="SqlServerConnectionString" value="data source=xxxxSQLTEST\Prod;initial catalog=xxxx;password=xxxxxxxxxxx;persist security info=True;user id=xxxxxx"/>
<add key="OracleConnectionString" value="data source=xxxx;password=incnpdev;user id=xxxxx"/>
<add key="OleDbConnectionString" value="data source=(local);initial catalog=xxxxxx;password=xxxxxx;persist security info=True;user id=xxxxx"/>
Here is the following Error I am getting.
Server Error in'/apps/cnpweb/zzfdpsource/ORFdpProd' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: The protection provider 'RsaProtectedConfigurationProvider' was not found.
Source Error:
[No relevant source lines]
Source File: C:\inetpub\localinternet\webcon.config Line: 0
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067
But if I keep the RSA section in the machine config file I am getting the following error. Why MS creates things like this. I don't even understand what is wrong. I the old machine I was not having this error, but when I got new machine to work on I am getting the following error. The same settings are there on every other developers machine they are not getting any error. This is making me nervous. Is my machine is incorrect what is wrong?
Server Error in'/apps/cnpweb/zzfdpsource/ORFdpProd' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: Bad Data.
Source Error:
Line 2: <!-- External Connection Strings from Microsoft: http:Line 3: <connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
Line 4: <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
Line 5: xmlns="http://www.w3.org/2001/04/xmlenc#">
Line 6: <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
Source File: C:\inetpub\localinternet\webcon.config Line: 4
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067
When I am trying other thing I am getting the following error.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>aspnet_regiis -pa "NetFrameworkConfigurationKey""ASPNET"
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Adding ACL for access to the RSA Key container...
No mapping between account names and security IDs was done. (Exception from HRESULT: 0x80070534)
Failed!
With all these error messages if someone can give me any idea or link or any sort of help. I will be very very thankful. I don't know what to do? I am researching heavily but no clue till now. Please help me, thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA