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

Question

Question

Access denied. [9013] - Client Automation Toolbar (GetDatabaseInfo)

SDK
asked on August 20, 2018

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)

......

0 0

Replies

replied on August 20, 2018

The GetDatabaseInfo method returns information about the SQL database (not the LF repository) and is restricted information. It looks like you don't need that in your log message since the repository name is probably enough information for debugging purposes.

0 0
replied on August 20, 2018

Thanks Robert.  I am trying to get the DB name so I can create a connection string to provide other information using in the solution.  

 

Within the client environment it won't return the DB name, when run locally I runs fine.  Most like due to that fact that locally I'm listed as a Server Manager.

 

So any other options to get the DB name back?  I guess I may have to add the mapping in my .NET settings.

0 0
replied on August 20, 2018

Hi Byron,

I believe it's actually the Configure Repository Settings privilege that controls whether you can access that information. 

Could you provide more information on what you are trying to do with the information? That might help with suggesting other approaches. 

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

Sign in to reply to this post.