<?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: Visual Studio Won't Debug in ArcMap in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302342#M7857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a similar problem in 2010 Express. ArcMap has been reinstalled and is now in a new folder. When I build and run debugger, it says that it can't start debugger because it can't find ArcMap.exe.&lt;BR /&gt;&lt;BR /&gt;How do I tell Visual Studio where ArcMap.exe is?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Derek&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having the same issue. Were you able to solve it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 17:38:53 GMT</pubDate>
    <dc:creator>JakubSisak</dc:creator>
    <dc:date>2013-08-29T17:38:53Z</dc:date>
    <item>
      <title>Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302335#M7850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create a user form from which selections can be made in ArcMap. It's not the how of doing so, I can't even begin to debug the project. I keep getting the error &lt;/SPAN&gt;&lt;STRONG&gt;"A project with an Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did this (added a startup project and referenced it to my project), and the output window appears, saying it has run successfully but doesn't open ArcMap to test as it has done every other time I've attempted to debug an ArcObjects program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attempted several other fixes which I've found mainly in Window's User Forums, but needless to say, I'm still at a loss.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've opened a previously successful project and attempted to run it from Visual Studio and I received an error saying the ArcMap.exe was missing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 17:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302335#M7850</guid>
      <dc:creator>KevinLaughlin</dc:creator>
      <dc:date>2011-03-22T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302336#M7851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Open the project properties window and check whether the option "Start external program" selection has been chosen in the Start Action section, and that it points to ArcMap.exe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 17:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302336#M7851</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-03-22T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302337#M7852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seemed to do the trick, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 17:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302337#M7852</guid>
      <dc:creator>KevinLaughlin</dc:creator>
      <dc:date>2011-03-22T17:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302338#M7853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This of course will not apply to Visual Basic Express Edition&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 19:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302338#M7853</guid>
      <dc:creator>MichaelRobb</dc:creator>
      <dc:date>2011-03-22T19:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302339#M7854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a similar problem in 2010 Express. ArcMap has been reinstalled and is now in a new folder. When I build and run debugger, it says that it can't start debugger because it can't find ArcMap.exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I tell Visual Studio where ArcMap.exe is?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Derek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:04:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302339#M7854</guid>
      <dc:creator>DerekRyter</dc:creator>
      <dc:date>2013-03-08T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302340#M7855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a similar problem in 2010 Express. ArcMap has been reinstalled and is now in a new folder. When I build and run debugger, it says that it can't start debugger because it can't find ArcMap.exe.&lt;BR /&gt;&lt;BR /&gt;How do I tell Visual Studio where ArcMap.exe is?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Derek&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try opening the project's user file and adding the StartAction and StartProgram tags to the target you're trying to debug. It is much easier to do in non-Express versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyProject.csproj.user (C#)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyProject.vbproj.user (VB.NET)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; &amp;lt;PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartAction&amp;gt;Program&amp;lt;/StartAction&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartProgram&amp;gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\bin\ArcMap.exe&amp;lt;/StartProgram&amp;gt;
&amp;nbsp; &amp;lt;/PropertyGroup&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302340#M7855</guid>
      <dc:creator>JasonPike</dc:creator>
      <dc:date>2021-12-11T14:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302341#M7856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right Click on Your Solution and&amp;nbsp; go for Properties and In That Go for Application TAB, and in that change Output Type&amp;nbsp; combo Box Option to Windows Application, then Your Problem will resolved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 09:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302341#M7856</guid>
      <dc:creator>ChaitanyaPeddinty</dc:creator>
      <dc:date>2013-03-19T09:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302342#M7857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm having a similar problem in 2010 Express. ArcMap has been reinstalled and is now in a new folder. When I build and run debugger, it says that it can't start debugger because it can't find ArcMap.exe.&lt;BR /&gt;&lt;BR /&gt;How do I tell Visual Studio where ArcMap.exe is?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Derek&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having the same issue. Were you able to solve it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 17:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302342#M7857</guid>
      <dc:creator>JakubSisak</dc:creator>
      <dc:date>2013-08-29T17:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Won't Debug in ArcMap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302343#M7858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As stated by Jason Pyke above, this problem is more difficult to manage with Express versions of Visual Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can provide some more information with respect to using Visual Studio 2012 Express with ArcGIS 10.3.1 installed, and the relevant ArcGIS SDK, and programming in VB.NET. This could also be relevant to later versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a new Visual Studio project (lets call it "MyProject") is created using the ArcMap Add-in template, the MyProject.vbproj.user file will be created automatically. The MyProject.vbproj.user file is an xml file that contains information that tells Visual Studio to execute ArcMap when running in debug mode. If you have a Visual Studio project that you did not create using the ArcMap Add-in template, or you copied the project from another location, the MyProject.vbproj.user file may not exist, so you need to create it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned in some of the posts above, Visual Studio EXPRESS does not give you the option to configure a "Start external program" (which creates and updates a .vbproj.user file) in the project properties window, so you need to create the .vbproj.user file by other means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option is to open Visual Studio and create a brand new project (lets call it "NewProject") ensuring that you use the ArcMap Add-In template. If you take a look in the project directory you should find the .vbproj.user file. You should be able to simply copy/paste this file to your MyProject directory but rename it from NewProject.vbproj.user to MyProject.vbproj.user. Reopen the MyProject project (or the Visual Studio solution that contains this project), if everything has worked you should now be able to run your project in debug mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Another option (more difficult) is to manually create the MyProject.vbproj.user file using a text editor. It will look something like this below. You need to substitute the path of your ArcMap.exe file if it differs from this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Project ToolsVersion="4.0" xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.microsoft.com%2Fdeveloper%2Fmsbuild%2F2003" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/developer/msbuild/2003&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartAction&amp;gt;Program&amp;lt;/StartAction&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartProgram&amp;gt;C:\Program Files %28x86%29\ArcGIS\Desktop10.3\bin\ArcMap.exe&amp;lt;/StartProgram&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EnableUnmanagedDebugging&amp;gt;false&amp;lt;/EnableUnmanagedDebugging&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartWorkingDirectory&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StartWorkingDirectory&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartArguments&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StartArguments&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/PropertyGroup&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartAction&amp;gt;Program&amp;lt;/StartAction&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StartProgram&amp;gt;C:\Program Files %28x86%29\ArcGIS\Desktop10.3\bin\ArcMap.exe&amp;lt;/StartProgram&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/PropertyGroup&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;PropertyGroup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ProjectView&amp;gt;ProjectFiles&amp;lt;/ProjectView&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/PropertyGroup&amp;gt;&lt;BR /&gt;&amp;lt;/Project&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 23:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-won-t-debug-in-arcmap/m-p/302343#M7858</guid>
      <dc:creator>JohnAnderson1</dc:creator>
      <dc:date>2017-06-22T23:21:57Z</dc:date>
    </item>
  </channel>
</rss>

