473,804 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when try to encrypt connectionstrin g using aspnet_regiis -pe

I followed this article,

http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx
My command is:
aspnet_regiis -pe "connectionStri ngs" -app "/myWebSiteName" -site
711831 -prov "RsaProtectedCo nfigurationProv ider"
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 10341
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 "connectionStri ngs" -app "/myWebSiteName" -site
711831 -prov "RsaProtectedCo nfigurationProv ider"

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.e xe /?

-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 "connectionStri ngs" -app "/myWebSiteName" -site
711831 -prov "RsaProtectedCo nfigurationProv ider"
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
1715
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 strange stuff). Sorry about the long subject, I didn't know how to explain it better... struct small { int num; };
1
1623
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 files (two images) across a remoting boundary. It does this by accessing an Access database for the filenames. If the two files actually exist, my program runs fine. However, if I remove or rename the files (so that the filename listed in the...
0
1222
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 encrypting web.config file but not app.config file. Any help will be appreciated _dino_
2
3183
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 know why? How to get a 64bit(8 bytes) encrypt result using DES class in the VS2005?
5
1829
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 SendTimout of 2 secs. Is it normal ? Thanks in advance and regards Navin
2
1744
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. Does anyone know what is going wrong and how I can fix it ? nReturn = mciSendString("save Voice1 " & m_sVoiceFile, "0", 0, 0)
1
1696
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 load '/usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: dlopen: /usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so: A file or directory in the path name does not exist. at...
1
1463
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 in php and getting an error message like this: "the image could not be displayed because it contains errors" or a broken image red box looking thingie then check this out. this code: <?php header('Content-type: image/jpeg'); include...
4
4037
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 called purchase_register_details, In sub form i have a unbound textfield called txt_Total_Amount where in i am calculating total amount for different items purchased by giving following code in control source. ContolSource: =Sum() In my main form i...
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10568
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.