Groups | Blog | Home
all groups > asp.net security > june 2007 >

asp.net security : How to run aspnet_regiis.exe with on site other than w3svc/1?


slolife
6/20/2007 6:37:11 PM
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe /lk
W3SVC/ 1.1.4322.2300
W3SVC/1029688701/root/ 1.1.4322.2300
W3SVC/1156445961/root/ 1.1.4322.2300
W3SVC/1283203219/root/ 1.1.4322.2300
W3SVC/1444110353/root/ 2.0.50727.0

The app that I am trying to encrypt is on W3SVC/1444110353/root/
I want to run the following:

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -prov
"DataProtectionConfigurationProvider" -pe "Credentials"

But it appears that it tries to do that on W3SVC/. I tried:

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -prov
"DataProtectionConfigurationProvider" -pe "Credentials" -app "W3SVC/
1444110353/root/"

But that doesn't work because -app only looks for the virtual dir on
w3svc.

Anyone have any ideas?

I can't use the -pef parameter because it cannot find the config
section handler that other posts have touched on.
Alexey Smirnov
6/23/2007 10:17:11 PM
[quoted text, click to view]

When I try ...-app "W3SVC/1444110353/root/" it returns me an error
"The value used in the -app parameter must begin with a forward
slash". Can you try to add a slash?

"/W3SVC/1444110353/root/"
slolife
6/26/2007 4:43:10 PM
That doesn't work because it thinks that /W3SVC/1444110353/root/ is a
virtual dir, not a site. I just noticed (don't know why I didn't see
it before) that there is a -site flag. I'll try that.


[quoted text, click to view]

AddThis Social Bookmark Button