Tag: .net 4.7

WPF触摸应用程序(部分)在.NET Framework 4.7上冻结

更新 微软承认这个问题 : Gepost door Microsoft op 13/10/2017 om 11:38 感谢您报告此事。 我们已经意识到这个问题,并且正在将其修复到.NET的未来版本中。 还有一个相关问题正在服务修复中发布,这将大大降低遇到此问题的可能性。 这将很快得到服务。 问题 我们的WPF应用程序正在使用触摸(没有手写笔)的平板电脑上使用,我们在安装.NET Framework 4.7后遇到问题。 使用应用程序一段时间后可能会出现两种情况:应用程序完全冻结并且必须重新启动,或者禁用Popup或Window元素中的所有触摸function。 两者之间有很大的不同,但我相信原因是一样的。 场景1:完全冻结 应用程序完全没有响应,必须使用任务管理器关闭应用程序 可以使用触摸或鼠标 有时在应用程序挂起之前会抛出以下错误: 指数数组的边界之外。 这是堆栈跟踪: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Windows.Input.StylusWisp.WispLogic.CoalesceAndQueueStylusEvent(RawStylusInputReport inputReport) at System.Windows.Input.StylusWisp.WispLogic.ProcessSystemEvent(PenContext penContext, Int32 tabletDeviceId, Int32 stylusDeviceId, Int32 timestamp, SystemGesture systemGesture, Int32 gestureX, Int32 gestureY, Int32 buttonState, PresentationSource inputSource) […]

KB4344167安全更新中断了TLS代码

希望有人可以帮助解决这个问题。 最近我们的机器更新了KB4344167 ,其中包括.NET 4.7.1的安全更新。 不幸的是,此更新破坏了我们的Webrequest代码。 当我们运行下面的代码时,我们收到此错误: 请求已中止:无法创建SSL / TLS安全通道。 // Create a request for the URL. WebRequest request = WebRequest.Create(url); //specify to use TLS 1.2 as default connection ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; request.Timeout = int.Parse(configmanager.GetSetting(“Webtimeout”)); // Set proxy request.Proxy = WebRequest.DefaultWebProxy; request.Proxy.Credentials = CredentialCache.DefaultCredentials; // Define a cache policy for this request […]

WPF COMException在启动时崩溃应用程序(今天开始)

我刚刚开始在应用程序启动时看到这个Exception,其中一个应用程序已经投入生产3年了。 System.TypeInitializationException: The type initializer for ‘MS.Win32.Penimc.UnsafeNativeMethods’ threw an exception. —> System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) at MS.Win32.Penimc.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at MS.Win32.Penimc.UnsafeNativeMethods.CreatePimcManager() at MS.Win32.Penimc.UnsafeNativeMethods..cctor() — End of inner exception stack trace — at MS.Win32.Penimc.UnsafeNativeMethods.CreateResetEvent(IntPtr& handle) at System.Windows.Input.PenThreadWorker..ctor() at System.Windows.Input.PenThreadPool.GetPenThreadForPenContextHelper(PenContext penContext) at System.Windows.Input.PenThreadPool.GetPenThreadForPenContext(PenContext penContext) at System.Windows.Input.StylusWisp.WispTabletDeviceCollection.UpdateTabletsImpl() at […]