<?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: Can't debug anymore with VS2010 or VS2012 and Acad 2009 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748572#M51740</link>
    <description>&lt;P&gt;6. Directory bin\Debug must not contain files acmgd.dll acdbmgd.dll accoremgd.dll&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it contain those files - delete them.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2013 21:49:29 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2013-01-08T21:49:29Z</dc:date>
    <item>
      <title>Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3747821#M51738</link>
      <description>&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have problems with debugging my .NET application which I use in Autocad Electrical 2009. Here is the problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. A few weeks ago, I created a .dll file, written in C# in VS2010 (Visual Studio). Everything worked, also debugging (Debug options -&amp;gt; Start external program -&amp;gt; acad.exe).&lt;/P&gt;&lt;P&gt;2. Now, I want to add some code to this .dll file, so I opened the project in VS2012. I added the code and I want to debug. But, when I 'netload' my .dll file in autocad and type my command (defined in my code with 'CommandMethod'), Autocad says "Uknown command".&lt;/P&gt;&lt;P&gt;3. Then I tried another way. I started Autocad the 'normal' way (not from visual studio), netload my .dll file and typed the command and..: It works!!. After that, I attached my VS project to the acad.exe process, typed my command and.. Autocad froze. So, that isn't working either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like my .dll file is working, but not when I attach VS to Autocad or when I start Autocad through VS.&lt;/P&gt;&lt;P&gt;So, after that, I created a very small program in VS2010 (new project) which only shows a messagebox that says: "Hello Autocad". I started up Autocad the normal way, typed the method and it works. Debugging, not working. The same story when I create the same little program in VS2012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read about changing the "acad.exe.config", changing the debugger type and so on, but nothing helps. Can anyone tell me why I can't debug anymore and how to solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the problem is already solved in this &lt;A href="https://forums.autodesk.com/t5/NET/Debug-problems-with-Visual-Studio-2010-and-AutoCAD-2009/td-p/2860254#.UOqImPJVXIc" target="_self"&gt;discussion&lt;/A&gt; by JamieVJohnson2, but what does he mean with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"What I would do...&amp;nbsp; I would run ACAD normally, and then force load the dll manually (NETLOAD command).&amp;nbsp; If that is working ok, then I would check the registry entry to see if it is properly mapped for the CURRENT user.&amp;nbsp; Yep it can be different for every user.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you didn't make it past the first idea, then possibly the dll, is trying to copy to source the acad dlls (bad mojo), and that causes the Netloading process to abort."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2013 07:11:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3747821#M51738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T07:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748543#M51739</link>
      <description>&lt;P&gt;Which version of&amp;nbsp;.NET framework your VS2012 project is set to target? For Acad2009, it must be .NET2.0/3.x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have Acad2009 installed, along with Acad2012. I have no problem to create a simple "Hello AutoCAD" project in VS2012, targeting .NET 3.5 and do debugging run from VS2012, that is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Press F5 in VS2012 to start external app (acad.exe);&lt;/P&gt;&lt;P&gt;2. Netload the DLL;&lt;/P&gt;&lt;P&gt;3. enter command;&lt;/P&gt;&lt;P&gt;4. Beak point set in VS2012 is hit;&lt;/P&gt;&lt;P&gt;5, Step through as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, make sure you target your VS2012 to correct .NET version (2.0/3.x, no 4.x!); and also make sure "Copy Local" to false with the references acad assemblies&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:16:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748543#M51739</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2013-01-08T21:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748572#M51740</link>
      <description>&lt;P&gt;6. Directory bin\Debug must not contain files acmgd.dll acdbmgd.dll accoremgd.dll&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it contain those files - delete them.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748572#M51740</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-01-08T21:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748821#M51741</link>
      <description>&lt;P&gt;The project is set to framework 3.5. It's so weird, everything worked a few weeks ago and now it doesn't work anymore and I changed nothing as far as I know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Copy local" was set to "true" for every acad assembly and as I said, a few weeks ago with VS2010 it worked. (AcDbMgd, AcMgd and the interop and interop.common references). Now I've changed it back to "false" and acad recognized my command, but my breakpoints won't hit. So it doesn't work completely yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought the AcDbMgd and AcMgd references must be copied to local? I've seen that in a video of Acad where they explain how to convert a VB program to a C# .dll.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 09:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748821#M51741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-09T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748854#M51742</link>
      <description>&lt;P&gt;Update: Debugging is working with VS2010&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 10:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748854#M51742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-09T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748877#M51743</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;I thought the AcDbMgd and AcMgd references must be copied to local?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No!!! Copy Local == False is an &lt;SPAN&gt;&lt;SPAN class="hps"&gt;indispensable condition&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of normal&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;operation&lt;/SPAN&gt;&lt;SPAN&gt; and debugging.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 11:47:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748877#M51743</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-01-09T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't debug anymore with VS2010 or VS2012 and Acad 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748960#M51744</link>
      <description>&lt;P&gt;I would say first, create a brand new solution and a project of the same type you're having problems with debug.&lt;/P&gt;&lt;P&gt;Now try with some basic code and see if breakpoints will be hit with that new solution or other solutions you may have. If breakpoints are not hit then it's probably debugging option that is messing with you.&lt;/P&gt;&lt;P&gt;I had this problem and while trying to fix it I rendered my dev computer useless bc it didnt have any other framework but 4.0 and it wouldn't let you install 3.5 or below because the OS would say it's already installed. Weird stuff!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: About your last question in the firest post, it might have to do with plugin keys at&lt;/P&gt;&lt;P&gt;HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.0\ACAD-8001:409\Applications&lt;/P&gt;&lt;P&gt;which is where your plugins should be registered, but if you haven't done it manually, it shouldn't even be registered there for load, automatic or otherwise. Not sure what he meant either.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:25:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-debug-anymore-with-vs2010-or-vs2012-and-acad-2009/m-p/3748960#M51744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-09T13:25:54Z</dc:date>
    </item>
  </channel>
</rss>

