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

Question

Question

Laserfice API - ImportDocumentAsync

asked on November 19, 2023

Hi, I am using this command to upload a document, and in my UAT Environment it works, but since I have installed the API onto my Live server, I get this error.

 

Do I need to configure anything on the API for it work work?

 

This is the error I Get in Live

 

await client.EntriesClient.ImportDocumentAsync(RepoID, parentEntryId, fName, autoRename: true, electronicDocument: electronicDocument, request: request);

 

Many thanks

0 0

Answer

SELECTED ANSWER
replied on November 20, 2023

Did you set the value of "LaserficheServerName" in "appsettings.json"?

There are more configuration instructions here https://developer.laserfiche.com/api/server/index.html.

1 0

Replies

replied on November 20, 2023

Hi,

The error seems not showing in your question. Could you send it again?

0 0
replied on November 20, 2023

Hi, oops, it should say

 

'Error: Laserfiche Server name cannot be empty.'

 

 

0 0
SELECTED ANSWER
replied on November 20, 2023

Did you set the value of "LaserficheServerName" in "appsettings.json"?

There are more configuration instructions here https://developer.laserfiche.com/api/server/index.html.

1 0
replied on November 20, 2023

Thanks that was what was missing, school boy error

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

Sign in to reply to this post.