473,387 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error when try to encrypt connectionstring using aspnet_regiis -pe

I followed this article,

http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx
My command is:
aspnet_regiis -pe "connectionStrings" -app "/myWebSiteName" -site
711831 -prov "RsaProtectedConfigurationProvider"
The error message is: A configuration file cannot be created for the
requested configuration object.
Failed!
ASPNET user is under administrators group
my website is not a virtual directory under default website, that's
why I need to specify the site no.
OS is Windows 2003 server
Am I missing anything?
Thanks in advance
-rockdale
Dec 20 '07 #1
2 10301
On Dec 20, 4:46 pm, rockdale <rockdale.gr...@gmail.comwrote:
I followed this article,

http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx

My command is:
aspnet_regiis -pe "connectionStrings" -app "/myWebSiteName" -site
711831 -prov "RsaProtectedConfigurationProvider"

The error message is: A configuration file cannot be created for the
requested configuration object.
Failed!

ASPNET user is under administrators group
my website is not a virtual directory under default website, that's
why I need to specify the site no.
OS is Windows 2003 server

Am I missing anything?

Thanks in advance
-rockdale
Try to use -location instead of -app -site. App exprected a virtual
path.

aspnet_regiis.exe /?

-pe section Encrypt the configuration section. Optional
arguments:
[-prov provider] Use this provider to encrypt.
[-app virtual-path] Encrypt at this virtual path.
Virtual
path must begin with a forward slash. If it is
'/', then it
refers to the root of the site. If -app is not
specified,
the root web.config will be encrypted.
[-site site-name-or-ID] The site of the virtual
path
specified in -app. If not specified, the default
web site
will be used.
[-location sub-path] Location sub path.
[-pkm] Encrypt/decrypt the machine.config instead
of
web.config.
Dec 20 '07 #2
Did you try doing a aspnet_regiis -pef instead of -pe? You can then reference
the config file's physical path and avoid the hassle. I've always used that
anyways. To me it seems more precise and less blackboxish.

--
Mohamad Elarabi
Lead Developer. MCTS, MCPD.
"rockdale" wrote:
I followed this article,

http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx
My command is:
aspnet_regiis -pe "connectionStrings" -app "/myWebSiteName" -site
711831 -prov "RsaProtectedConfigurationProvider"
The error message is: A configuration file cannot be created for the
requested configuration object.
Failed!
ASPNET user is under administrators group
my website is not a virtual directory under default website, that's
why I need to specify the site no.
OS is Windows 2003 server
Am I missing anything?
Thanks in advance
-rockdale
Dec 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: elmafiacs | last post by:
I need some help with an error I'm getting... Sorry if this is basic stuff, but I'm still a newbie on C programming (working up, though). Also, I'm using gcc as my compiler ('gcc t.c -o t', no...
1
by: Tim Shih | last post by:
Hi, I am encountering a really subtle error which I have been trying to isolate for a while and I am still not able to find it. The problem boils down to this: I have a button which marshals two...
0
by: Dino Buljubasic | last post by:
How to encrypt connectionString values in EL DAAB 2.0 ? Info I am finding in documetation of EL 2.0 does not talk about this. Info I am finding in documetation of .NET 2.0 talks about...
2
by: fineman | last post by:
Hi all, I want to get a 64bit(8 bytes) Encrypt result use DES class in the VS2005. Though I encrypt data is 64bit(8 bytes), but DES return encrypt result that always is 128bit(16 bytes), I don't...
5
by: Navin Mishra | last post by:
Hi, In load test of our .NET 2.0 socket application on Win2003 server, we are seeing sometimes WSEWOULDBLOCK error when sending data to clients. We are using synchronoous scokets with...
2
by: BigC | last post by:
I am using the following line of code to save a voice file (.wav) to disk and it works fine when the filename contains no spaces. However the file doesn't get saved when its name contains a space....
1
by: bhavanirayala | last post by:
Hello, I am using XML::Parsar in my perl file. but when I run the perl file, getting the following erro even I have the parser.pm and Dynaloader.pm files in the lib path. The error is: Can't...
1
n8kindt
by: n8kindt | last post by:
i just spent nearly 3hrs trying to debug this problem so i figured i would post this just in case someone else has the same problem in the future. if you're trying to output binary data as an image...
4
by: sumit kale | last post by:
Hi, Can somebody help me resolve my problem ? I am getting error when calculating total using unbound textfiled in subform. I have a main form called purchase_register_master and a subform...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.