Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I have encrypted connection string in web.config and i need to decrypt it from the command line.

i gave the below command in the commandprompt

aspnet_regiis -pdf "connectionstrings" c:\temp\web.config

but i am getting this error " the configuration for the physical path 'c:\temp\web.config' cannot be opnend?failed"

Please let me know if i am following the correct syntax or not to decrypt

Thanks,
Priya.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jun-12 14:30pm    
Please stop re-posting. You need to work on the same page where you put your original question: comment answer, use "Improve question", etc.
--SA

1 solution

You are using wrong syntax. Consult this article: http://chiragrdarji.wordpress.com/2008/08/11/how-to-encrypt-connection-string-in-webconfig/[^]
As you have an IIS based application, you need the
aspnet_regiis.exe -pd “connectionStrings” -app “/DemoApplication”
syntax.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900