Click here to Skip to main content
15,885,957 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anyone help me to set Windows Authentication true in IIS Virtual Directory using VB.NET.

I've tried the code below. But it's not working in IIS 6.0.

VB
Dim VD As System.DirectoryServices.DirectoryEntry = IISAdmin.Children.Add("Test", "IIsWebVirtualDir")

VD.Properties("AuthFlags").Value = 4



Any alternate option for the same?

Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900