Re: Couldn;t load assembly



hi,

type names are case sensitive

RSAProtectedConfigurationProvider --> RsaProtectedConfigurationProvider

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Hi,

I have created a custom key called "TestKey". Gave acess to NT
Authority\network.
Added code in web config...
<configProtectedData>
<providers>
<add keyContainerName="TestKey"
useMachineContainer="true"
description="Uses RSACryptoServiceProvider to encrypt and
decrypt"
type="system.configuration.RSAProtectedConfigurationProvider"
name="CustomProvider"
/>
</providers>
</configProtectedData>
Trying to run following code to encrypt config file...

config = WebConfigurationManager.OpenWebConfiguration("~")

section = config.GetSection("appSettings")

section.SectionInformation.ProtectSection("CustomProvider")

Getting Error...

Error: 429 - Could not load type
'system.configuration.RSAProtectedConfigurationProvider' from assembly
'System.Configuration, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'..

Not sure what I am doing wrong.

Thanks in advance.

- Reena



.



Relevant Pages

  • Re: Help Encrypting Connection String
    ... the tool you are referring to is called aspnet_setreg - it uses DPAPI to encrypt the section and places it into web.config - the config file then refers to the reg key. ... You can also use the Ent Lib cryptography block to encrypt and decrypt arbitrary strings, so that will certainly work for what you want to do. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Encrypt values for a key in appsettings
    ... Actually i need to encrypt only the password fields and decrypt the ... TripleDESCryptoServiceProvider to encrypt the password. ... Key can be placed in config file. ... You don't have to decrypt the data when using the ProtectSection ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Web.config encryption in shared hosting scenario
    ... Open the config using WebConfigurationManager, get the section using GetSection, and call Protect() on the SectionInformation you get back. ... database via SQL authentication rather than Windows authentication, ... best practice dictates that I encrypt the web.config file ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Save passwords in scripts
    ... I was using a the ConfigParser module to store other info in a config ... characters) and cleared the entries in the config file. ... Rotor module to encrypt the string, UUencoded the result and stored the ... UUencoded result in a special config entry. ...
    (comp.lang.python)
  • Re: Windows App .NET 2.0: Encryption of Connection Strings
    ... no special privileges are needed, besides write access to the config file ... CryptProtectData and CryptUnProtectData Windows APIs to encrypt and decrypt" ... > 3) I guess that I protect all kinds of configuration sections? ... >> Hello Henrik, ...
    (microsoft.public.dotnet.security)