Solved

decrypting web.config

Posted on 2011-03-01
2
1,318 Views
Last Modified: 2012-05-11
My web server is Windows2008 x86
I am trying to decrypt web.config file on my IIS server with following command line.
________________________________________________________________________
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pdf "connectionStrings" -app c:\inetpub\wwwroot\MyApp
_________________________________________________________________________

I am getting following error on the command prompt.  What's wrong here ?
webconfig-decrypt-error.GIF
0
Comment
Question by:vu3lmg
2 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 35013539
Hi,

To decrypt the connectionStrings section specifying a physical path to your application's configuration file, use the -
pdf switch as shown here.

aspnet_regiis -pdf "connectionStrings" c:\inetpub\wwwroot\MyApp

The -app switch specifies your Web application's virtual path; for example, "/site/MyApp".

Cheers,
Hades666
0
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 35014668
IH

aspnet_regiis -pd "connectionStrings" -app "/MyApplication"

aspnet_regiis -pd "system.web/machineKey" -app "/MyApplication"


example
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pd "connectionStrings" "C:\Projects\<project name>"


More info
http://msdn.microsoft.com/en-us/library/dtkwfdky.aspx
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question