Author: nick5454 | Posted on: 3/25/2010 1:06:16 PM | Views : 1095

i have this line of code
WindowsIdentity wi2 = new WindowsIdentity("test1");


test1 is in the ActiveDirectory on the DomainController


when running the code I get an IncorrectFunction error
at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn)
   at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
   at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
   at Hisco.Intranet.LoginForm.OnInit(EventArgs e) in F:\Hisco\DCS\WebEventsManager\HiscoDCS\DCS\LoginForm.aspx.cs:line 17
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


I have windows auth for the website and outside users will logon that are not in the network and I ...

Go to the complete details ...