Time: 5/4/2016 11:13:59 AM Source: mscorlib Message: COM object that has been separated from its underlying RCW cannot be used. Stack Trace: at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease) at Microsoft.Office.Interop.Word.DocumentClass.Close(Object& SaveChanges, Object& OriginalFormat, Object& RouteDocument) at ZEKSProClient_UAT.WordDocumentGeneration.AddSpecificationPage(Application wrdApp, DataTable dtItem, DataTable dtOptEquipMapping, DataTable dtOptEquip, String strSpecification) at ZEKSProClient_UAT.Quotation.GenerateQuotationDocument(String sl_QuotationXML) Time: 5/4/2016 11:15:01 AM Source: mscorlib Message: The process cannot access the file '12.xps' because it is being used by another process. Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.Delete() at ZEKSProClient_UAT.Quotation.Window_Closed(Object sender, EventArgs e) Time: 5/4/2016 11:15:41 AM Source: mscorlib Message: COM object that has been separated from its underlying RCW cannot be used. Stack Trace: at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease) at Microsoft.Office.Interop.Word.DocumentClass.Close(Object& SaveChanges, Object& OriginalFormat, Object& RouteDocument) at ZEKSProClient_UAT.WordDocumentGeneration.AddSpecificationPage(Application wrdApp, DataTable dtItem, DataTable dtOptEquipMapping, DataTable dtOptEquip, String strSpecification) at ZEKSProClient_UAT.Quotation.GenerateQuotationDocument(String sl_QuotationXML)