Click here to Skip to main content
11,415,074 members (63,351 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 12-Jun-12 10:16am
Comments
Sergey Alexandrovich Kryukov at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,200
1 OriginalGriff 7,512
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web03 | 2.8.150427.4 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100