Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3879344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:42:56+00:00 2026-05-19T22:42:56+00:00

I am encrypying my .NET config file using this command and it works just

  • 0

I am encrypying my .NET config file using this command and it works just fine:

aspnet_regiis -pe "connectionStrings" -app "/SampleApplication" 

For this to work though I have to have a virtual directory called SampleApplication pointing to the folder my web.config file is under.

Is there a way to just specify the path to the file and not have to have a virtual dir?

I tried with

aspnet_regiis -pe "connectionStrings" -location "c:\FoldercontainingWebConfigFile"

but i get the error: ” path attribute must be a relative virtual path”. And cannot contain any of “:” “\” etc…

I am looking here:
http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.80%29.aspx

Is there any way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:42:57+00:00Added an answer on May 19, 2026 at 10:42 pm

    I got it with!

    -pef “sectionName” “full path to directory containing web.config file”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to encrypt the whole app.config file rather than encrypting any particular
Currently, my application automatically encrypts its own App.config file the first time the application
Duplicate of Encrypting config files for deployment .NET and Encrypting config files for deployment
This question discusses encrypting data on the iPhone using the crypt() function. As an
When I am encrypting 23 using MD5 encryption I am getting 37693cfc748049e45d87b8c7d8b9aacd this 32-character
I am using PHP Crypt_RSA ( http://pear.php.net/package/Crypt_RSA ) for encrypting and decrypting the contents.
I'm using VB.Net's RijndaelManaged (RM) to encrypt files, using the RM.GenerateKey and RM.GenerateIV methods
I have cruisecontrol.net building a asp.net web deployment project. This is working great until
I'm encrypting a text (just a string) using OpenSSL's CMS library. I've implemented a
I am trying to encrypt the system.web.membership element within the Web.Config of our .Net

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.