You are viewing limited content. For full access, please sign in.

Question

Question

Can't retrieve existing repository from laserfiche server (C#)

SDK
asked on August 27, 2018

When I trying to retrieve repositories with following code, I get only one default repository, but actually I have four.

var myServer = new Server("serverName");
var repositories = myServer.GetRepositories();

When I trying to login into existing repository with following code, I get exception
"The repository is not recognized as a valid repository in this Laserfiche instance. [9046]"

RepositoryRegistration repository = new RepositoryRegistration(serverName, repoName);

                using (Session session = new Session())
                {
                    session.LogIn(username, password, repository);
                }

When I trying to login through website, everything works fine.

 

Can anybody help me? Thanks!

0 0

Replies

replied on August 27, 2018

I don't see anything wrong with the code you've posted.  Are you sure you are connecting to the right server?  You can check in the web client configuration page to see what server it's finding those repositories it, it might just be a dev/test/prod issue.  In general, there's no reason for LFS to return that error to some clients while allowing others to connect to the repository.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.