System.MissingMethodException error when creating new document using C# VB2012
Options
I am trying to create new document using iManage extension library(iManExt.dll). It works in my local machine fine. But when I deploy that to other machine it doesn’t work even though all dll in there. I am getting following error from desksite
System.MissingMethodException: Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID(System.Guid)'.
Following is my c# code for creating new document.
private IManage.IManDocument NewDocumentProfile(IManage.IManFolder aFolder, String aFileName)
{
//IManage.NRTDocument NewDocument;
IManage.IManDocument NewDocument;
IMANEXTLib.ImportCmd MyCommand = new IMANEXTLib.ImportCmd();
IMANEXTLib.ContextItems MyContext = new IMANEXTLib.ContextItems();
MyContext.Add("ParentWindow", Helper.GetActiveWindow());
MyContext.Add("ImanDestinationObject", aFolder);
//Optional Fields
MyContext.Add("IManExt.Import.KeepCheckedOut", 0);
MyContext.Add("IManExt.Import.FileName", aFileName);
MyContext.Add("IManExt.CalledFromIntegration", false);
MyContext.Add("IManExt.OpenCmd.NoCmdUI", false);
MyCommand.Initialize(MyContext);
MyCommand.Update();
//if we have an OK status, display the new profile screen
if (MyCommand.Status == (int)IMANEXTLib.CommandStatus.nrActiveCommand)
{
MyCommand.Execute();
//get the new iManage document object
NewDocument = MyContext.Item("ImportedDocument");
//NewDocument.Security.DefaultSecurity = SecurityType.nrPrivate;
//NewDocument = GetiManDoc(MyContext);
}
else
{
NewDocument = null;
}
return NewDocument;
}
Please help me...
System.MissingMethodException: Method not found: 'System.Type System.Runtime.InteropServices.Marshal.GetTypeFromCLSID(System.Guid)'.
Following is my c# code for creating new document.
private IManage.IManDocument NewDocumentProfile(IManage.IManFolder aFolder, String aFileName)
{
//IManage.NRTDocument NewDocument;
IManage.IManDocument NewDocument;
IMANEXTLib.ImportCmd MyCommand = new IMANEXTLib.ImportCmd();
IMANEXTLib.ContextItems MyContext = new IMANEXTLib.ContextItems();
MyContext.Add("ParentWindow", Helper.GetActiveWindow());
MyContext.Add("ImanDestinationObject", aFolder);
//Optional Fields
MyContext.Add("IManExt.Import.KeepCheckedOut", 0);
MyContext.Add("IManExt.Import.FileName", aFileName);
MyContext.Add("IManExt.CalledFromIntegration", false);
MyContext.Add("IManExt.OpenCmd.NoCmdUI", false);
MyCommand.Initialize(MyContext);
MyCommand.Update();
//if we have an OK status, display the new profile screen
if (MyCommand.Status == (int)IMANEXTLib.CommandStatus.nrActiveCommand)
{
MyCommand.Execute();
//get the new iManage document object
NewDocument = MyContext.Item("ImportedDocument");
//NewDocument.Security.DefaultSecurity = SecurityType.nrPrivate;
//NewDocument = GetiManDoc(MyContext);
}
else
{
NewDocument = null;
}
return NewDocument;
}
Please help me...
0
Comments
-
Judging by the error it's a .Net issue, check the destination has the same version installed:
http://stackoverflow.com/questions/12655236/excel-interop-missingmethodexception
Hope this helps0
Categories
- All Categories
- 109 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
- 122 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.