asp.net - Active Directory not working after hosting to IIS 7 -
active directory not working after hosting iis 7, waiting helps.
my code snippets.
string connection = configurationmanager.connectionstrings["adconnection"].tostring(); directorysearcher dssearch = new directorysearcher(connection); dssearch.filter = "(samaccountname=" + txtusername.text + ")"; searchresult sresult = dssearch.findone(); directoryentry dsresult = sresult.getdirectoryentry(); lblfname.text = dsresult.properties["givenname"][0].tostring(); lbllname.text = dsresult.properties["sn"][0].tostring(); lblemail.text = dsresult.properties["mail"][0].tostring();
- in internet information services (iis) manager, expand , sites, , default web site in connections pane. click select virtual directory , click features view @ bottom of workspace pane list configurable features virtual directory. double-click authentication feature in workspace pane list authentication methods enabled virtual directory. click select authentication method enable or disable , click either disable or enable in actions pane of iis manager
Comments
Post a Comment