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

Question

Question

Repository Access - Get server property returning blank string

asked on February 9, 2015

I am going to upgrade LF version from 9.0 to 9.2, and in my test environment with LFS 9.2, i want to get the server property company, and TotalRetrievalLicenses, but it is returning a blank string. Some properties are fine and some others show a blank string of Server object.

 

//Get laserfiche server
Server lfserver = new Server("localhost");

//Show property
MessageBox.Show(lfserver.Company);

 

I have read this question but refreshing not solve my problem (

https://answers.laserfiche.com/questions/48695/SDK--C--Repository-Access--Get-Server-Version-returning-blank-string).

 

Any help will be appreciated.

 

0 0

Replies

replied on February 9, 2015

Try this

//Get laserfiche server
Server lfserver = new Server("localhost");
lfserver.Refresh();
//Show property
MessageBox.Show(lfserver.Company);

 

0 0
replied on February 9, 2015

Thank you for your answer, but it does not work. I can see the Server properties in the Admin console but for an unknown reason, i can't see some properties using SDK.

0 0
replied on February 9, 2015

Which properties? Bert's code works fine.

0 0
replied on February 9, 2015 Show version history

Specifically:  Company = "", TotalFullFeaturedLicenses = 0, TotalRetrievalLicenses = 0, DefaultRepository = "" and Support = "".

 

When I changed FlexibleLicensing = True using Admin Console, in the Server property it was equal false after a LFServer.Refresh().

0 0
replied on February 9, 2015 Show version history

I see what you mean.  In VB, before I call lfserver.Refresh, lfserver.Company = Nothing and after lfserver.Company = ""

Interesting and not sure what to tell you.  Hopefully someone from LF can supply an answer.

Edit: Here is screenshot of debug info:

Also note that my project is using RA9.0 and my server is 9.2.0.343. Also, VS is NOT on the same machine as LF Server.

0 0
replied on February 9, 2015

Yes, I want to know if my problem can be solved. Thanks for your comments.

0 0
replied on February 9, 2015

And you have configured a Default Repository and your name Company is visible in the Admin Console? I am using RA9.0 to create Server object from LF Server 9.2.0.472.

0 0
replied on February 9, 2015

Once I installed SDK9.2 and changed my project to use RA9.2, then the server info refreshed as expected.

0 0
replied on February 9, 2015

This is actually a known issue with RA 9.0 against 9.2 servers because of enhancements to security added for 9.2. Updating your project to use RA 9.2 should get it working again.

0 0
replied on February 9, 2015

OK. But referencing RA 9.2 into my project does not solve my issue. That's funny! It should work. I just referenced Repository Access assembly in my project but that's not solve it.

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

Sign in to reply to this post.