"database has not been opened yet", as usual :)

Hello everyone!

The problem I encountered was discussed by probably every Lotus Developer, but it still exists. I am trying to open a database on another server and this results in an error “Database serverName!!names.nsf has not been opened yet”, or “Database open failed” if I try to make db.open.

My conditions: web agent, lotusscript or java, name of db is correct - I have tried several names and no one of them opens including names.nsf.

My agent WORKS CORRECT while launched through client.

Please, check your solutions, probably you have solved this before. I have tried session.getdb, dbdirectory, in both LS and Java… I dont know what can I do else. Domino 8.5.1.

Subject: Are you trying to access the local server, or a different one?

Subject: the solution

Erik, thank you for reply!

I am trying to access database located on a server different from the server that runs my agent, but server in my domain.

Probably you have guessed the reason: in server document I should add LocalDomainServers group to the “trusted servers” field.

server document → Security tab → trusted servers field.

Hope this will help other developers, I have seen this topic in many domino forums unanswered…