Modifying IIS Metabase on remote server

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

Willy Denoyette [MVP]

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

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

Top