I have a Client Automation Tools (CAT) solution deployed to a number of client and I've modified it by adding DB lookups. I'm getting this "Access denied. [9013]" Error when running the following line.
CurrentDBName = MySess.Repository.GetServer.GetDatabaseInfo(Res.RepositoryName).DatabaseName
Some context....
Dim Res As RepositoryConnection = docwindow.GetCurrentRepository()
Res.GetConnectionString()
Dim MySess As Session = Session.CreateFromSerializedLFConnection(Res.GetSerializedConnection())
CurrentDBName = MySess.Repository.GetServer.GetDatabaseInfo(Res.RepositoryName).DatabaseName
Dim EI As RepositoryAccess.EntryInfo = Entry.GetEntryInfo(docwindow.GetDocumentId, MySess)
If EI.EntryType = EntryType.Document Then
If IsEntryLockedByMe(EI) Then
SaveDocViewer(docwindow)
End If
EI.Refresh(True)
docwindow.Refresh()
EI.Unlock()
logger.log("Consult Stamp - DB Details: " & CurrentDBName & " Repos Name: " & Res.RepositoryName & " EntryID: " & EI.Id, My.Settings.EnableLogging)
......