Solved

decrypting web.config

Posted on 2011-03-01
2
1,314 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do see the validation errors on ASP.NET MVC 4 37
Re-position sub-options beneath the TAB 7 77
What .NET URL re-routing tool did I use? 2 37
Entity Framework 7 32
This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now