<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging your SOE on Windows 8 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625514#M24046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is also true if you are running the SOE services on a server operating system.&amp;nbsp; Thanks to this post I was able to find the AppIDFlags, confirm that they were set to 0x00000028 and change it to 0x00000008 for debugging on the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW -- we are running Windows Server 2008 R2 Enterprise.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 15:20:32 GMT</pubDate>
    <dc:creator>MichaelEber</dc:creator>
    <dc:date>2014-01-13T15:20:32Z</dc:date>
    <item>
      <title>Debugging your SOE on Windows 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625512#M24044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been working on getting my SOE running in 10.1 on Windows 8 using Visual Studio 2012.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the things that I have found very helpful is to have the following code in my SOE constructor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If we are running with the code compiled using the Debug configuration then launch the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Comment this line out if you do not wish to debug within the context of the SOC process.&amp;nbsp; The&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // best way to do this is to configure the map service to only launch a single instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debugger.Launch();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has worked well for me on Windows 7 and XP.&amp;nbsp; When this code is invoked then the Visual Studio Just-In-Time debugging dialog is displayed which allows you to, or not to, start debugging at the line of code which called Launch.&amp;nbsp; Unfortunately, this does not work in Windows 8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I spent some time debugging this and finally worked it out with Microsoft support.&amp;nbsp; I share the solution with all of you here as a community service.&amp;nbsp; All I ask in return is that if this helps you then mark this post as helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The secret lies in changing the registry key for the Visual Studio JIT debugger via the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;reg add "HKCR\AppID\{E62A7A31-6025-408E-87F6-81AEB0DC9347}" /v AppIDFlags /t REG_DWORD /d 8 /f&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before making this change the value on my machine was 0x28.&amp;nbsp; The above changes it to 0x8.&amp;nbsp; In essence it removes the 0x20 flag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you search the Microsoft include files (WTypesbase.h) then you find the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY 0x20&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you make this change then the JIT debugging window is displayed again.&amp;nbsp; I believe that all of this relates to various session 0 security changes made by Microsoft.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy debugging!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 20:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625512#M24044</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-10-24T20:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging your SOE on Windows 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625513#M24045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for info&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 07:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625513#M24045</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-10-25T07:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging your SOE on Windows 8</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625514#M24046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is also true if you are running the SOE services on a server operating system.&amp;nbsp; Thanks to this post I was able to find the AppIDFlags, confirm that they were set to 0x00000028 and change it to 0x00000008 for debugging on the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW -- we are running Windows Server 2008 R2 Enterprise.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 15:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/debugging-your-soe-on-windows-8/m-p/625514#M24046</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2014-01-13T15:20:32Z</dc:date>
    </item>
  </channel>
</rss>

