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="http://schemas.microsoft.com/.NetConfiguration/v2.0" in the configuration tag of the webconfig file. Thus it will resolve the issue.
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="http://schemas.microsoft.com/.NetConfiguration/v2.0" in the configuration tag of the webconfig file. Thus it will resolve the issue.
Hello I've experienced same this when I changed to v.2.0 then my application did not run.
ReplyDelete