Hi,
We get the following exception at "cmd.Execute" line
ERROR:
System.Runtime.InteropServices.COMException was caught
Message="The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
Source="Interop.IMANEXT2Lib"
ErrorCode=-2147417851
StackTrace:
at IMANEXT2Lib.IManBrowseCmdClass.Execute()
at _Default.Page_Load(Object sender, EventArgs e) in SharePointIntegration\Default.aspx.cs:line 50
Code snippet:
IManDMS dms = new ManDMSClass();
IManSession sess = dms.Sessions.Add("XXXXX");
sess.Login("XX", "XXXX");
NRTSession[] saSess = new NRTSession[1];
saSess[0] = (NRTSession)sess;
IManBrowseCmd cmd = new IManBrowseCmdClass();
ContextItems context = new ContextItemsClass();
imObjectType[] saSelectableItems = new imObjectType[5];
saSelectableItems[0] = imObjectType.imTypeDocument;
saSelectableItems[1] = imObjectType.imTypeDocumentFolder;
saSelectableItems[2] = imObjectType.imTypeFavoritesFolder;
saSelectableItems[3] = imObjectType.imTypeSubscriptionFolder;
saSelectableItems[4] = imObjectType.imTypeWorkspace;
// Required
context.Add("NRTDMS", dms);
context.Add("SelectedNRTSessions", saSess);
context.Add("IMANEXT2.BrowseCmd.SelectableObjectTypes", saSelectableItems);
// The types of Worksite Objects the end-user is restricted
// to select from the Worksite browse dialog.
// context.Add("ParentWindow", this.Handle.ToInt32());
cmd.Initialize(context);
cmd.Update();
try
{
if (cmd.Status == (int)CommandStatus.nrActiveCommand)
{
// Invoke an instance of the IManBrowseCmd Object
cmd.Execute();
Help appreciated!!!!
EDIT

lease note the exact same code works well in my Laptop (XP + SDK + .Net Framework) but throws an exception when run on the Win 2003 64 bit server.