Modifying IIS Metabase on remote server

  • Thread starter Thread starter Raith
  • Start date Start date
R

Raith

Hi,

I'm trying to write an application to modify certain IIS metabase
entries (AllowKeepAlive, ASPProcessorThreadMax etc.) on remote web
servers (Win2000 IIS5) over the network.

I'm confident using it to modify the metabase on my local machine and
it works great, however trying the same on a remote machine gives
access denied. Using the following...

DirectoryEntry W3SVC = new DirectoryEntry("IIS://someserver/w3svc",
usernameBox.Text, userpassBox.Text, AuthenticationTypes.Secure);

where the username and password are just the administrator account,
doesn't work. I thought it would just be as simple as that but
obviously not.

Options?

Thanks in advance.
 
| Hi,
|
| I'm trying to write an application to modify certain IIS metabase
| entries (AllowKeepAlive, ASPProcessorThreadMax etc.) on remote web
| servers (Win2000 IIS5) over the network.
|
| I'm confident using it to modify the metabase on my local machine and
| it works great, however trying the same on a remote machine gives
| access denied. Using the following...
|
| DirectoryEntry W3SVC = new DirectoryEntry("IIS://someserver/w3svc",
| usernameBox.Text, userpassBox.Text, AuthenticationTypes.Secure);
|
| where the username and password are just the administrator account,
| doesn't work. I thought it would just be as simple as that but
| obviously not.
|
| Options?
|
| Thanks in advance.
|

Not sure if it's the same for W2K, but IIS6 on W2K3 requires an encrypted
connection. Could you try using AuthenticationTypes.Encryption?

Willy.
 
Back
Top