2018/11/30 11:34:03,0,App,System.InvalidCastException: 无法将类型为“CoilData”的对象强制转换为类型“System.UInt16[]”。 在 FLY.Modbus.ModbusMapper.SetModbusData(PLCAddressArea dataarea, Int32 addr, Object value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.ModbusMapper\FLY.ModbusMapper\ModbusMapper.cs:行号 709 在 FLY.Modbus.ModbusMapper_Client.Do_03_callback(UInt16[] regs, Object obj) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.ModbusMapper\FLY.ModbusMapper\ModbusMapper_Client.cs:行号 205 在 FLY.Modbus.ClientTCP.<>c__DisplayClass25_0.b__0(Pack_Proto p) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 280 在 FLY.Modbus.ClientTCP.ParsePacket(TCPConn conn, Pack_Proto p) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 153 在 FLY.Modbus.ClientTCP.ParsePacketInClient(TCPConn conn, Byte[] inBuf) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 127 在 TCPManager.TCPConn.OnPoll() 在 TCPManager.TCPCConn.OnPoll() 在 TCPManager.TCPCConn.<.ctor>b__0() 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\heimei_V0.1.0.7_20181130\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main() 2018/12/5 15:23:17,0,App,System.IO.FileLoadException: 未能加载文件或程序集“Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) 文件名:“Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed” 在 FLY.OBJComponents.Server.OBJProxy.Buffer_OBJProxy`1.Buffer_PropertyChanged(Object sender, PropertyChangedEventArgs e) 在 FLY.OBJComponents.Server.Buffer`1.<>OnPropertyChanged(PropertyChangedEventArgs eventArgs) 在 FLY.OBJComponents.Server.Buffer`1.set_Count(Int32 value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\Buffer.cs:行号 24 在 FLY.OBJComponents.Server.Buffer`1.Add(T t) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\Buffer.cs:行号 63 在 FLY.OBJComponents.Server.WarningSystem.Add(Byte errcode, String description, ERR_STATE state) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\WarningSystem.cs:行号 80 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_3() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 92 在 Misc.BindingOperations.SetBinding(INotifyPropertyChanged src, String srcPropertyName, Action func) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 62 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 83 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main() === 预绑定状态信息 === 日志: DisplayName = Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (Fully-specified) 日志: Appbase = file:///D:/研发/fly/项目/xxxxxxxx_测厚仪程序/window/项目集.和美吹膜/hemei_V0.2.0.2_20181204/Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug/ 日志: 初始 PrivatePath = NULL 调用程序集: FLY.OBJComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null。 === 日志: 此绑定从 default 加载上下文开始。 日志: 正在使用应用程序配置文件: D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC.UI.Server\bin\Debug\FLY.IBC.UI.Server.exe.Config 日志: 使用主机配置文件: 日志: 使用 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config 的计算机配置文件。 日志: 策略后引用: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed 日志: 尝试下载新的 URL file:///D:/研发/fly/项目/xxxxxxxx_测厚仪程序/window/项目集.和美吹膜/hemei_V0.2.0.2_20181204/Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug/Newtonsoft.Json.DLL。 警告: 比较程序集名称时发生不匹配: 主版本 错误: 未能完成程序集的安装(hr = 0x80131040)。探测终止。 2018/12/5 16:51:29,0,App,System.IO.FileLoadException: 未能加载文件或程序集“Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) 文件名:“Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed” 在 FLY.OBJComponents.Server.OBJProxy.Buffer_OBJProxy`1.Buffer_PropertyChanged(Object sender, PropertyChangedEventArgs e) 在 FLY.OBJComponents.Server.Buffer`1.<>OnPropertyChanged(PropertyChangedEventArgs eventArgs) 在 FLY.OBJComponents.Server.Buffer`1.set_Count(Int32 value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\Buffer.cs:行号 24 在 FLY.OBJComponents.Server.Buffer`1.Add(T t) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\Buffer.cs:行号 63 在 FLY.OBJComponents.Server.WarningSystem.Add(Byte errcode, String description, ERR_STATE state) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\WarningSystem.cs:行号 80 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_3() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 92 在 Misc.BindingOperations.SetBinding(INotifyPropertyChanged src, String srcPropertyName, Action func) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 62 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 83 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main() === 预绑定状态信息 === 日志: DisplayName = Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (Fully-specified) 日志: Appbase = file:///D:/研发/fly/项目/xxxxxxxx_测厚仪程序/window/项目集.和美吹膜/hemei_V0.2.0.2_20181204/Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug/ 日志: 初始 PrivatePath = NULL 调用程序集: FLY.OBJComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null。 === 日志: 此绑定从 default 加载上下文开始。 日志: 正在使用应用程序配置文件: D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC.UI.Server\bin\Debug\FLY.IBC.UI.Server.exe.Config 日志: 使用主机配置文件: 日志: 使用 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config 的计算机配置文件。 日志: 策略后引用: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed 日志: 尝试下载新的 URL file:///D:/研发/fly/项目/xxxxxxxx_测厚仪程序/window/项目集.和美吹膜/hemei_V0.2.0.2_20181204/Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug/Newtonsoft.Json.DLL。 警告: 比较程序集名称时发生不匹配: 主版本 错误: 未能完成程序集的安装(hr = 0x80131040)。探测终止。 2018/12/5 16:52:16,0,App,System.IO.FileLoadException: 未能加载文件或程序集“Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) 文件名:“Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed” 在 FLY.OBJComponents.Server.OBJProxy.Buffer_OBJProxy`1.Buffer_PropertyChanged(Object sender, PropertyChangedEventArgs e) 在 FLY.OBJComponents.Server.Buffer`1.<>OnPropertyChanged(PropertyChangedEventArgs eventArgs) 在 FLY.OBJComponents.Server.Buffer`1.set_Count(Int32 value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\Buffer.cs:行号 24 在 FLY.OBJComponents.Server.Buffer`1.Add(T t) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\Buffer.cs:行号 63 在 FLY.OBJComponents.Server.WarningSystem.Add(Byte errcode, String description, ERR_STATE state) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.OBJComponents\OBJComponents\Server\WarningSystem.cs:行号 80 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_3() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 92 在 Misc.BindingOperations.SetBinding(INotifyPropertyChanged src, String srcPropertyName, Action func) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 62 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 83 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181203\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main() === 预绑定状态信息 === 日志: DisplayName = Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (Fully-specified) 日志: Appbase = file:///D:/研发/fly/项目/xxxxxxxx_测厚仪程序/window/项目集.和美吹膜/hemei_V0.2.0.2_20181204/Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug/ 日志: 初始 PrivatePath = NULL 调用程序集: FLY.OBJComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null。 === 日志: 此绑定从 default 加载上下文开始。 日志: 正在使用应用程序配置文件: D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.2.0.2_20181204\Project.FLY.IBC\FLY.IBC.UI.Server\bin\Debug\FLY.IBC.UI.Server.exe.Config 日志: 使用主机配置文件: 日志: 使用 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config 的计算机配置文件。 日志: 策略后引用: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed 日志: 尝试下载新的 URL file:///D:/研发/fly/项目/xxxxxxxx_测厚仪程序/window/项目集.和美吹膜/hemei_V0.2.0.2_20181204/Project.FLY.IBC/FLY.IBC.UI.Server/bin/Debug/Newtonsoft.Json.DLL。 警告: 比较程序集名称时发生不匹配: 主版本 错误: 未能完成程序集的安装(hr = 0x80131040)。探测终止。 2018/12/6 10:44:37,0,App,System.Collections.Generic.KeyNotFoundException: 给定关键字不在字典中。 在 System.ThrowHelper.ThrowKeyNotFoundException() 在 System.Collections.Generic.Dictionary`2.get_Item(TKey key) 在 FLY.OBJComponents.Server.PLCProxySystem.<>c__DisplayClass19_1.b__1(DataToRegs _dr) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 128 在 System.Collections.Generic.List`1.Find(Predicate`1 match) 在 FLY.OBJComponents.Server.PLCProxySystem.SetPlan(String objname, IEnumerable`1 propertynames, Int64 planID) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 128 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_1() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 106 在 Misc.BindingOperations.<>c__DisplayClass3_0.b__0(Object s, PropertyChangedEventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 67 在 System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e) 在 FLY.OBJComponents.Server.PLCProxySystem.<>OnPropertyChanged(PropertyChangedEventArgs eventArgs) 在 FLY.OBJComponents.Server.PLCProxySystem.set_IsConnectedWithPLC(Boolean value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 39 在 FLY.OBJComponents.Server.PLCProxySystem.b__15_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 58 在 Misc.BindingOperations.<>c__DisplayClass3_0.b__0(Object s, PropertyChangedEventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 67 在 System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e) 在 FLY.Modbus.ClientTCP.NotifyPropertyChanged(String propertyname) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 612 在 FLY.Modbus.ClientTCP.mTCPCConn_ConnectEvent(TCPConn obj) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 91 在 TCPManager.TCPConn.set_IsConnected(Boolean value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\TCPManager\TCPConn.cs:行号 238 在 TCPManager.TCPCConn.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\TCPManager\TCPCConn.cs:行号 101 在 TCPManager.TCPCConn.<.ctor>b__8_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\TCPManager\TCPCConn.cs:行号 47 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main() 2018/12/6 10:53:24,0,App,System.Collections.Generic.KeyNotFoundException: 给定关键字不在字典中。 在 System.ThrowHelper.ThrowKeyNotFoundException() 在 System.Collections.Generic.Dictionary`2.get_Item(TKey key) 在 FLY.OBJComponents.Server.PLCProxySystem.<>c__DisplayClass19_1.b__1(DataToRegs _dr) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 128 在 System.Collections.Generic.List`1.Find(Predicate`1 match) 在 FLY.OBJComponents.Server.PLCProxySystem.SetPlan(String objname, IEnumerable`1 propertynames, Int64 planID) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 128 在 FLY.IBC.Server.IBCSystem.<.ctor>b__16_1() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.IBC\FLY.IBC\Server\IBCSystem.cs:行号 106 在 Misc.BindingOperations.<>c__DisplayClass3_0.b__0(Object s, PropertyChangedEventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 67 在 System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e) 在 FLY.OBJComponents.Server.PLCProxySystem.<>OnPropertyChanged(PropertyChangedEventArgs eventArgs) 在 FLY.OBJComponents.Server.PLCProxySystem.set_IsConnectedWithPLC(Boolean value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 39 在 FLY.OBJComponents.Server.PLCProxySystem.b__15_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 58 在 Misc.BindingOperations.<>c__DisplayClass3_0.b__0(Object s, PropertyChangedEventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.Misc\MISC\PropertyBinding.cs:行号 67 在 System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e) 在 FLY.Modbus.ClientTCP.NotifyPropertyChanged(String propertyname) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 612 在 FLY.Modbus.ClientTCP.mTCPCConn_ConnectEvent(TCPConn obj) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.ModbusMapper\FLY.ModbusMapper\ClientTCP.cs:行号 91 在 TCPManager.TCPConn.set_IsConnected(Boolean value) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\TCPManager\TCPConn.cs:行号 238 在 TCPManager.TCPCConn.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\TCPManager\TCPCConn.cs:行号 101 在 TCPManager.TCPCConn.<.ctor>b__8_0() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\TCPManager\TCPCConn.cs:行号 47 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main() 2018/12/6 12:22:30,0,App,System.InvalidOperationException: 集合已修改;可能无法执行枚举操作。 在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) 在 System.Collections.Generic.List`1.Enumerator.MoveNextRare() 在 System.Linq.Enumerable.WhereListIterator`1.MoveNext() 在 FLY.OBJComponents.Server.PLCProxySystem.OnPoll_plans() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181206\Project.FLY.OBJComponents\OBJComponents\Server\PLCProxySystem.cs:行号 185 在 FObjBase.PollModule.OnPoll() 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 195 在 FObjBase.PollModule.<.ctor>b__14_0(Object s, EventArgs e) 位置 D:\研发\fly\项目\xxxxxxxx_测厚仪程序\window\项目集.和美吹膜\hemei_V0.5.0.0_20181205\Project.FLY.FObjSys\FObjSys\PollModule.cs:行号 235 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 FLY.IBC.UI.Server.App.Main()