Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS.Win32.Penimc.UnsafeNativeMethods Visual Studio 2015 and Sql Server Management Studio 2012

I am getting the following error after patch KB3186497 was installed on my machine. enter image description here

like image 876
Niederee Avatar asked Jun 21 '17 15:06

Niederee


2 Answers

Microsoft Forums

This worked for me:

Visual Studio 2015

  1. Find the devenv.exe.config file. It is located in the folder <VS Install Location>\Common7\IDE.
  2. Copy devenv.exe.config to a non-protected folder, for example your Documents folder, and then create a backup copy of devenv.exe.config.
  3. Open devenv.exe.config, and modify the <AppContextSwitchOverrides> element to add Switch.System.Windows.Input.Stylus.DisableStylusAndTouchSupport=true

SSMS 2012

  1. Find the Ssms.exe.config file. It is located in the folder <SSMS Install Location>\Tools\Binn\ManagementStudio\.
  2. Copy Ssms.exe.config to a non-protected folder, for example your Documents folder, and then create a backup copy of Ssms.exe.config.
  3. Open Ssms.exe.config, and add the element <AppContextSwitchOverrides value="Switch.System.Windows.Input.Stylus.DisableStylusAndTouchSupport=true" /> above the element <assemblyBinding> in <runtime>
like image 147
Niederee Avatar answered Sep 18 '22 13:09

Niederee


I faced a similar issue and the culprit was Microsoft .Net 4.7 Framework. I had to uninstall 4.7 and then installed 4.6 version. Now it works fine.

like image 37
anonuser3440 Avatar answered Sep 17 '22 13:09

anonuser3440