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)
Create workspace error (object is not a valid page) in asp.net project
sabeena_12
Hi,
I'm using visual studio 2005 to create a 'simple' web application which can create workspaces on the fly. I've added the imanage.dll reference and everything seems to work fine until I get to the "objWorkspace.Update()" method. At this point I receive the following error:
"[Folder][Update]Object is not a valid page"
This is the code I've been using:
IManWorkspace objWorkspace;
ManDMS objDMS = new ManDMS();
ManStrings objManStrings = new ManStrings();
IManSession objSession = objDMS.Sessions.Add(strDMS);
objSession.Login(strUser, strPassword);
IManDatabase objDB = objSession.Databases.ItemByName(strDB);
objWorkspace = objDB.CreateWorkspace();
objWorkspace.Owner = objDB.GetUser("SMITHJ");
objWorkspace.Name = "zzz - Workspace";
objWorkspace.Description = "Workspace";
objWorkspace.Security.DefaultVisibility = imSecurityType.imView;
objWorkspace.Security.UserACLs.Add("SMITHJ", imAccessRight.imRightAll);
objWorkspace.SubType = "WORK";
string strFilePath = Path.GetTempFileName();
objWorkspace.Update(); [ERROR HAPPENS HERE!!]
objSession.Logout();
I'm hoping there's a really simple resolution to this, but as I've been trying to figure it out for ages now and haven't got anywhere, thought it best to ask for help!
Any ideas would be greatly appreciated.
Thanks,
Find more posts tagged with
Comments
There are no comments yet