PC Review


Reply
 
 
Kevin Wincott
Guest
Posts: n/a
 
      16th Nov 2007
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
 
Reply With Quote
 
 
 
 
Alexander Vasilevsky
Guest
Posts: n/a
 
      16th Nov 2007
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" <(E-Mail Removed)> ???????/???????? ? ????????
?????????: news:fhkfbd$2c1k$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Kevin Wincott
Guest
Posts: n/a
 
      17th Nov 2007
all the permissions are OK, everything else works, I just can get c# to
enable to the tick box in IIS

Alexander Vasilevsky wrote:
> 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" <(E-Mail Removed)> ???????/???????? ? ????????
> ?????????: news:fhkfbd$2c1k$(E-Mail Removed)...
>> 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

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.