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)
SDK 8.0 IManage.IManWorkspace.Update() errored [Folder ][Update ]Access is denied.
System
Could anyone help me find out what cause this error: [Folder ][Update ]Access is denied.
System.Runtime.InteropServices.COMException (0xC0000005): [Folder
][Update ]Access is denied.
at IManage.IManWorkspace.Update()
at IWOVWEBService.FMWorkspace.createNewWorkspace
My code IWOVWEBService.FMWorkspace.createNewWorkspace is as follows:
IManWorkspace oWorkspace = oDatabase.CreateWorkspace();
oFMSecurity.alterSecurity(oWorkspace, oMessage, oFMSecurityConfig);
oFMProfile.addBasicAttributes(oWorkspace,oMessage);
string filepath = Path.GetTempFileName();
IManProfileUpdateResult updateresult = oWorkspace.UpdateAllWithResults(filepath);
File.Delete(filepath);
oFMProfile.addCustomAttributes(oWorkspace, oMessage, oFMSecurityConfig);
oWorkspace.Update();
IManDocumentFolder fldr = addDocFolder(oWorkspace,FMConfig.getValue("JOURNAL_ENTRY_FOLDER_NAME"), oMessage.JournalEntry, oMessage, oFMSecurityConfig);
oFMProfile.setFolderProfile(oWorkspace, fldr, oMessage, oFMSecurityConfig);
oWorkspace.Update();
oWorkspace.AddToRecentWorkspaces();
sReturn = parseWorkspaceID(oWorkspace.ID);
Regards.
BP
Find more posts tagged with
Comments
dabird
Double check how you are setting security in oFMSecurity.alterSecurity(). The user under which you are running needs full access to the workspace to make changes to the profile and add the folder.