Re: Couldn;t load assembly
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 14:55:59 -0800
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
.
- Follow-Ups:
- Re: Couldn;t load assembly
- From: Reena
- Re: Couldn;t load assembly
- Prev by Date: Re: deploying a group policy to grant signed assemblies FULLTRUST
- Next by Date: Re: Couldn;t load assembly
- Previous by thread: Using caspol to import a strong name codegroup
- Next by thread: Re: Couldn;t load assembly
- Index(es):
Relevant Pages
|