Click here to Skip to main content
13,089,433 members (61,142 online)
Rate this:
Please Sign up or sign in to 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

Posted 12-Jun-12 9:16am
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.

1 solution

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

Solution 1

You are using wrong syntax. Consult this article:[^]
As you have an IIS based application, you need the
aspnet_regiis.exe -pd “connectionStrings” -app “/DemoApplication”

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2017
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