How to run aspnet_regiis.exe with on site other than w3svc/1?

S

slolife

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.
 
G

Guest

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.

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/"
 
S

slolife

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top