Time: 8/16/2016 3:20:39 PM
Source: mscorlib
Message: Creating an instance of the COM component with CLSID {00020906-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010001 Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)).
Stack Trace: 
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at ZEKSProClient.WordDocumentGeneration.AddCoverPage(Application wrdApp, DataTable dtMasterData, DataTable dtItem, DataTable dtSettings, DataSet dsCustomer, String strCoverPage, String strNetSet)
   at ZEKSProClient.Quotation.GenerateQuotationDocument(String sl_QuotationXML)


Time: 8/16/2016 3:21:40 PM
Source: mscorlib
Message: The file 'C:\ZEKSPro\Quotes\RE0816201601GM.zks' already exists.
Stack Trace: 
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at System.IO.File.Copy(String sourceFileName, String destFileName)
   at ZEKSProClient.Quotation.butSaveAs_Click(Object sender, RoutedEventArgs e)


Time: 8/16/2016 3:30:18 PM
Source: System.Drawing
Message: C:\Users\atlsalessup2\Documents\My Documents\B&P\Forms\BP_EMBOSSED_LOGO.jpg
Stack Trace: 
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at System.Drawing.Image.FromFile(String filename)
   at ZEKSProClient.WordDocumentGeneration.GetImage(String path, Int32 intWidth, Int32 intHeight)


Time: 8/16/2016 3:33:03 PM
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.WordDocumentGeneration.AddSpecificationPage(Application wrdApp, DataTable dtItem, DataTable dtOptEquipMapping, DataTable dtOptEquip, String strSpecification)
   at ZEKSProClient.Quotation.GenerateQuotationDocument(String sl_QuotationXML)


Time: 8/16/2016 4:27:39 PM
Source: PresentationFramework
Message: Cannot set Visibility to Visible or call Show, ShowDialog, Close, or WindowInteropHelper.EnsureHandle while a Window is closing.
Stack Trace: 
   at System.Windows.Window.VerifyNotClosing()
   at System.Windows.Window.CoerceVisibility(DependencyObject d, Object value)
   at System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.UIElement.set_Visibility(Visibility value)
   at ZEKSProClient.Quotation.Window_Closed(Object sender, EventArgs e)


Time: 8/16/2016 4:47:41 PM
Source: mscorlib
Message: The process cannot access the file 'C:\ZEKSPro\Quotes\RE0816201601GM.doc' because it is being used by another process.
Stack Trace: 
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at ZEKSProClient.Quotation.GenerateQuotationDocument(String sl_QuotationXML)


Time: 8/16/2016 5:23:56 PM
Source: System.Drawing
Message: C:\Users\atlsalessup2\Documents\My Documents\B&P\Forms\BP_EMBOSSED_LOGO.jpg
Stack Trace: 
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at System.Drawing.Image.FromFile(String filename)
   at ZEKSProClient.WordDocumentGeneration.GetImage(String path, Int32 intWidth, Int32 intHeight)


Time: 8/16/2016 5:26:45 PM
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.WordDocumentGeneration.AddSpecificationPage(Application wrdApp, DataTable dtItem, DataTable dtOptEquipMapping, DataTable dtOptEquip, String strSpecification)
   at ZEKSProClient.Quotation.GenerateQuotationDocument(String sl_QuotationXML)


Time: 8/16/2016 5:34:03 PM
Source: System.DirectoryServices.AccountManagement
Message: The server could not be contacted.
Stack Trace: 
   at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties)
   at System.DirectoryServices.AccountManagement.PrincipalContext.DoServerVerifyAndPropRetrieval()
   at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name, String container, ContextOptions options, String userName, String password)
   at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType)
   at ZEKSProClient.MainWindow.GetLoggedInUserName()