I tried using below code from Laserfiche SDK 9.0 help file but not working. Am I missing any line of code?
To create a connection using Windows authentication, do not specify a user name or password when calling the LogIn() function. In the following example, we attempt to log into a repository using Windows authentication.
RA [C#]
// Using the Server object to retrieve list of repositories Server myServ = new Server("MyServerName"); RepositoryRegistrationCollection repoRegColl = myServ.GetRepositories(); RepositoryRegistration myRepoReg = repoRegColl["MyRepositoryName"]; Session mySess = new Session(); mySess.LogIn(myRepoReg); // Use current thread's Windows credentials.