Follow by Email

Saturday, April 13, 2013

configProtectionProvider is not allowed [Resolved]

How to resolve configProtectionProvider error in web.config file.

This Issue generally occurs after we encrypt our connectionstrings in the web.config using command Prompt of the visual Studio Tools.

To Encrypt Connectionstrings in the webconfig file we use this command :
aspnet_regiis.exe -pef "connnectionStrings" "Application Path" 

Whereas to decrypt we use :
aspnet_regiis.exe -pdf "connnectionStrings" "Application Path" 

to resolve this issue we will just mention xmlns="" in the configuration tag of the webconfig file. Thus it will resolve the issue.