With SDK , I use the following in a ComboBox DropDown event to populate the list with available repositories attached to a server:
Try
If String.IsNullOrEmpty(sLFServer) Then
MessageBox.Show("Please provide a Laserfiche server name or IP.")
Else
Using svr As New Server(sLFServer)
Dim AllRepositories As RepositoryRegistrationCollection = svr.GetRepositories()
For Each Repo As RepositoryRegistration In AllRepositories
If Not cmbLFRepository.Items.Contains(Repo.Name) Then
cmbLFRepository.Items.Add(Repo.Name)
End If
Next
End Using
End If
Catch ex As Exception
The problem that I am running into is if the server is set to use SSL and port 80 is not available my code throws error :
Laserfiche.RepositoryAccess.AccessDeniedException = {"The user account name or password is incorrect. [9010]"}
I have only tried with RA9.2 and LFS 9.2.1.
I have also tried to add
svr.IsConnectionSecure = True
before calling the .GetRepositories but that did not help either. How do I get the available repositories?