Click here to Skip to main content
15,887,262 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: mvc 4 Ajax.BeginForm with Web API? Pin
Rob Achmann19-Feb-14 3:33
Rob Achmann19-Feb-14 3:33 
QuestionBuild API in ASP.NET Web Form Pin
Hy Chanhan15-Feb-14 5:14
professionalHy Chanhan15-Feb-14 5:14 
AnswerRe: Build API in ASP.NET Web Form Pin
Rob Achmann16-Feb-14 1:51
Rob Achmann16-Feb-14 1:51 
AnswerRe: Build API in ASP.NET Web Form Pin
ZurdoDev18-Feb-14 15:26
professionalZurdoDev18-Feb-14 15:26 
Questionsource code Pin
punith Kumar Raj15-Feb-14 0:28
punith Kumar Raj15-Feb-14 0:28 
AnswerRe: source code Pin
Tom Marvolo Riddle15-Feb-14 0:43
professionalTom Marvolo Riddle15-Feb-14 0:43 
AnswerRe: source code Pin
Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)15-Feb-14 1:43
protectorTadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)15-Feb-14 1:43 
QuestionI am getting RSAProtection Error, please help me Pin
indian14314-Feb-14 7:16
indian14314-Feb-14 7:16 
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://msdn.microsoft.com/en-us/library/ms254494(VS.80).aspx -->
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


modified 14-Feb-14 19:30pm.

QuestionSelect multiple row of gridview using Shift+select functionality without using checkboxes. Pin
maheshakamudli14-Feb-14 3:12
maheshakamudli14-Feb-14 3:12 
AnswerRe: Select multiple row of gridview using Shift+select functionality without using checkboxes. Pin
Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)14-Feb-14 19:13
protectorTadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)14-Feb-14 19:13 
QuestionAbout gate way Pin
punith Kumar Raj14-Feb-14 2:39
punith Kumar Raj14-Feb-14 2:39 
AnswerRe: About gate way Pin
Richard Andrew x6414-Feb-14 19:15
professionalRichard Andrew x6414-Feb-14 19:15 
AnswerRe: About gate way Pin
Tom Marvolo Riddle14-Feb-14 19:23
professionalTom Marvolo Riddle14-Feb-14 19:23 
QuestionHow to insert a .swf file in a ASP.Net page Pin
Kandepu Rajesh13-Feb-14 19:04
Kandepu Rajesh13-Feb-14 19:04 
AnswerRe: How to insert a .swf file in a ASP.Net page Pin
thatraja13-Feb-14 20:28
professionalthatraja13-Feb-14 20:28 
GeneralRe: How to insert a .swf file in a ASP.Net page Pin
Kandepu Rajesh13-Feb-14 20:50
Kandepu Rajesh13-Feb-14 20:50 
GeneralRe: How to insert a .swf file in a ASP.Net page Pin
thatraja13-Feb-14 20:55
professionalthatraja13-Feb-14 20:55 
Questionweb api - basic authentication (principal error) Pin
miss78613-Feb-14 0:06
miss78613-Feb-14 0:06 
AnswerRe: web api - basic authentication (principal error) Pin
Richard Deeming13-Feb-14 1:20
mveRichard Deeming13-Feb-14 1:20 
GeneralRe: web api - basic authentication (principal error) Pin
miss78614-Feb-14 2:07
miss78614-Feb-14 2:07 
GeneralRe: web api - basic authentication (principal error) Pin
Richard Deeming14-Feb-14 3:00
mveRichard Deeming14-Feb-14 3:00 
GeneralRe: web api - basic authentication (principal error) Pin
miss78627-Feb-14 4:27
miss78627-Feb-14 4:27 
GeneralRe: web api - basic authentication (principal error) Pin
Richard Deeming27-Feb-14 4:38
mveRichard Deeming27-Feb-14 4:38 
GeneralRe: web api - basic authentication (principal error) Pin
miss78627-Feb-14 6:31
miss78627-Feb-14 6:31 
QuestionThis Control is invalid -Error Pin
Member 799271612-Feb-14 21:43
Member 799271612-Feb-14 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.