AnsweredAssumed Answered

Windows 2012 add-in debugging problem

Question asked by MCederholm on Dec 6, 2017
Latest reply on Jan 5, 2018 by MCederholm

I'm migrating my ArcGIS 10.2.1 / VS2010 development environment from Windows 2008 R2 to 2012 R2, and have run into a problem with debugging a .NET add-in.  I matched my VS and project debug settings, also ArcMap.exe.config, and am running as Administrator, but I still can't hit my breakpoints unless I manually attach my project to an existing ArcMap process. Any ideas?




The problem seems to be that Windows 2012 is ignoring* the "supportedRuntime" entry in ArcMap.exe.config.  In Win2008, ArcMap runs as v4.0.30319 as expected, but in Win2012, ArcMap runs as v2.0.50727.  I tried two different syntaxes:


<supportedRuntime version="v4.0.30319"/>


<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />


and neither are working.


*when ArcMap is launched from VS2010.  When ArcMap is run separately, it runs as both v2.0 and v4.0.