【问题标题】:MS.Win32.Penimc.UnsafeNativeMethods Visual Studio 2015 and Sql Server Management Studio 2012MS.Win32.Penimc.UnsafeNativeMethods Visual Studio 2015 和 Sql Server Management Studio 2012
【发布时间】:2017-11-24 14:31:47
【问题描述】:

在我的机器上安装补丁 KB3186497 后出现以下错误。

【问题讨论】:

    标签: windows windows-update


    【解决方案1】:

    Microsoft Forums

    这对我有用:

    Visual Studio 2015

    1. 找到 devenv.exe.config 文件。它位于文件夹<VS Install Location>\Common7\IDE
    2. 将 devenv.exe.config 复制到一个不受保护的文件夹,例如您的 Documents 文件夹,然后创建一个备份副本 devenv.exe.config。
    3. 打开devenv.exe.config,修改<AppContextSwitchOverrides>元素添加Switch.System.Windows.Input.Stylus.DisableStylusAndTouchSupport=true

    SSMS 2012

    1. 找到 Ssms.exe.config 文件。它位于文件夹<SSMS Install Location>\Tools\Binn\ManagementStudio\
    2. 将 Ssms.exe.config 复制到一个不受保护的文件夹,例如您的 Documents 文件夹,然后创建一个备份副本 Ssms.exe.config。
    3. 打开Ssms.exe.config,在<runtime>中的元素<assemblyBinding>上方添加元素<AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.DisableStylusAndTouchSupport=true" />

    【讨论】:

    • 巨大的帮助!修复了 .NET 框架更新 KB3186497 后我们在工作中遇到的问题。
    • 这是一个救命稻草。我更新到 Windows 10 并且这个问题开始了。您的解决方案已解决。
    【解决方案2】:

    我遇到了类似的问题,罪魁祸首是 Microsoft .Net 4.7 Framework。我不得不卸载 4.7,然后安装 4.6 版本。现在它工作正常。

    【讨论】:

    • 我认为这是解决这个问题的正确方法。当您在 VS 中禁用笔时,您将无法运行安装程序(因为您将无法修改它的设置文件)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-15
    • 1970-01-01
    相关资源
    最近更新 更多