Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
The system cannot find the path specified
Charlie_Lee
I am using the Imanage.dll (vs 8.0.223.0), from a ASP.Net 2.0 web application.
I am using the following code:
'new guid
Dim id As Guid = Guid.NewGuid
'new worksite DMS
Dim wDMS As New IManage.ManDMS
'worksite session
Dim wSession As IManage.IManSession
'worksite document
Dim wsDoc As IManage.IManDocument
'open a new worksite session
wSession = wDMS.Sessions.Add(XXXXXXXX)
'login to the session
wSession.Login("XXXXXX", "XXXXXXXX")
'get the latest version of the document
wsDoc = wSession.Databases.ItemByName (XXXXXX).GetDocument(DocumentNo, 1).LatestVersion
'create a filename of the new document using the GUID, but remove the hyphens
newfilename = Text.StringFunctions.RemoveHyphens(id.ToString & "." & wsDoc.Extension.ToLower)
newfilename = OutputDirectory & "\" & newfilename
'get a copy of the WorkSite document into our new file location
wsDoc.GetCopy(newfilename, IManage.imGetCopyOptions.imNativeFormat)
'logout of the WorkSite session
wSession.Logout()
However this code fails at the GetCopy method call. The errror message returned from COM is:
[NRTDocument ][Document is readonly ]The system cannot find the path specified.
I would appreciate any help in debugging this issue as I cannot figure out how to solve this. I can access the documents fine through MailSite so it cannot be a WorkSite problem.
Find more posts tagged with
Comments
There are no comments yet