C# and IIS

  • Thread starter Thread starter Kevin Wincott
  • Start date Start date
K

Kevin Wincott

Hi

I have created a script that creates a website in IIS6 and sets it up OK
but the code im using to enable the "anonymous access" doesnt seem to
work, when I complile it there are no errors, the code is:

w3svc.Properties["AuthFlags"].Value = 1;
w3svc.Properties["AnonymousUserName"].Value = "username";
w3svc.Properties["AnonymousUserPass"].Value = "password";

does this look correct? im using IIS 6 and Visual C# 2005

Thank you in advance
 
all the permissions are OK, everything else works, I just can get c# to
enable to the tick box in IIS

Alexander said:
May be the user who is running IIS is not enough privileges.

http://www.alvas.net - Audio tools for C# and VB.Net developers


Kevin Wincott said:
Hi

I have created a script that creates a website in IIS6 and sets it up OK
but the code im using to enable the "anonymous access" doesnt seem to
work, when I complile it there are no errors, the code is:

w3svc.Properties["AuthFlags"].Value = 1;
w3svc.Properties["AnonymousUserName"].Value = "username";
w3svc.Properties["AnonymousUserPass"].Value = "password";

does this look correct? im using IIS 6 and Visual C# 2005

Thank you in advance
 

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

Back
Top