Message 1 of 6
Regarding System.Runtime.Interopservices.COMException

Not applicable
09-26-2018
12:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
public void PackAndGoSample() { PackAndGoComponent packAndGoComp = new PackAndGoComponent(); PackAndGo packAndGo = packAndGoComp.CreatePackAndGo("C:\\Temp\\Source\\Assembly1.iam", "C:\\Temp\\Destination"); // Set the design project. This defaults to the current active project. packAndGo.ProjectFile = "C:\\Temp\\Source\\Test.ipj"; string[] refFiles = new string[] { }; object refMissFiles = new object(); // Set the options packAndGo.IsSkippingLibraries = true; packAndGo.IsSkippingStyles = true; packAndGo.IsSkippingTemplates = true; packAndGo.IsCollectingWorkgroups = false; packAndGo.IsKeepingFolderHierarchy = true; packAndGo.IncludeLinkedFiles = true; // Get the referenced files packAndGo.SearchForReferencedFiles(out refFiles, out refMissFiles); // Add the referenced files for package packAndGo.AddFilesToPackage(refFiles); // Start the pack and go to create the package packAndGo.CreatePackage(); }
Above is the code which I am using and for the line
PackAndGoComponent packAndGoComp = new PackAndGoComponent(); I am getting an System.Runtime.Interoservices.COMException error
Please help me in resolving this issue.
Thank you.