Solved

decrypting web.config

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

760 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

20 Experts available now in Live!

Get 1:1 Help Now