iMan COM Exception - Access is denied
Options
Hi there,
I am getting COM exceptions when calling the iManage COM API. For example:
- COMException occurred during search: System.Runtime.InteropServices.COMException (0xC0000005): [NRTSession ][SearchDocuments ]Access is denied.
or
- COMException occurred during search: System.Runtime.InteropServices.COMException (0xC0000005): [NRTDMS ][CreateDateRange ]Access is denied.
It appears that these errors appear randomly. Sometimes the API calls work fine, but sometimes they throw these errors and any further API calls fail.
The code looks something like this:
// Login looks something like this
IManDMS _ManDMS = new ManDMS();
IManSession _ManSession = _ManDMS.Sessions.Add(Configuration.Server);
_ManSession.Login(Configuration.Username, Configuration.Password);
IManDatabase _ManDatabase = _ManSession.Databases.ItemByName(Configuration.Database);
// search code looks something like this
IManProfileSearchParameters searchParameters = _ManDMSSearch.CreateProfileSearchParameters();
IManDateRange dateRange = _ManDMSSearch.CreateDateRange();
dateRange.DateRangeType = imDateRangeType.imAbsoluteDateRangeType;
dateRange.AbsoluteStartDate.Value = start;
dateRange.AbsoluteEndDate.Value = end;
searchParameters.Add(imProfileAttributeID.imProfileEditDate, dateRange.Value);
IManDocuments documents = _ManDatabaseSearch.SearchDocuments(searchParameters, true) as IManDocuments;
for (int i = 1; i <= documents.Count; i++)
{
// process documents
}
I've yet to see login fail, and also note that the search code is in its own thread.
Any help would be much appreciated.
I am getting COM exceptions when calling the iManage COM API. For example:
- COMException occurred during search: System.Runtime.InteropServices.COMException (0xC0000005): [NRTSession ][SearchDocuments ]Access is denied.
or
- COMException occurred during search: System.Runtime.InteropServices.COMException (0xC0000005): [NRTDMS ][CreateDateRange ]Access is denied.
It appears that these errors appear randomly. Sometimes the API calls work fine, but sometimes they throw these errors and any further API calls fail.
The code looks something like this:
// Login looks something like this
IManDMS _ManDMS = new ManDMS();
IManSession _ManSession = _ManDMS.Sessions.Add(Configuration.Server);
_ManSession.Login(Configuration.Username, Configuration.Password);
IManDatabase _ManDatabase = _ManSession.Databases.ItemByName(Configuration.Database);
// search code looks something like this
IManProfileSearchParameters searchParameters = _ManDMSSearch.CreateProfileSearchParameters();
IManDateRange dateRange = _ManDMSSearch.CreateDateRange();
dateRange.DateRangeType = imDateRangeType.imAbsoluteDateRangeType;
dateRange.AbsoluteStartDate.Value = start;
dateRange.AbsoluteEndDate.Value = end;
searchParameters.Add(imProfileAttributeID.imProfileEditDate, dateRange.Value);
IManDocuments documents = _ManDatabaseSearch.SearchDocuments(searchParameters, true) as IManDocuments;
for (int i = 1; i <= documents.Count; i++)
{
// process documents
}
I've yet to see login fail, and also note that the search code is in its own thread.
Any help would be much appreciated.
0
Comments
Categories
- All Categories
- 108 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.