<?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: .NET custom command not found when debugging in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8036600#M25778</link>
    <description>&lt;P&gt;The references are pointing to 2018 and Copy Local is set to False.&amp;nbsp; .NET framework is set to 4.6.1 (up from 4.6).&amp;nbsp; I didn't really make any changes that should account for this mystery.&amp;nbsp; I changed a directory path the app was searching and recompiled.&amp;nbsp; Prior to that change and recompile, the app was working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/506671iA003669DE6229C85/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;Imports System.Windows.Forms&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Public Class Class1&lt;/P&gt;&lt;P&gt;&amp;lt;CommandMethod("test1234")&amp;gt;&lt;BR /&gt;Public Sub test1234()&lt;BR /&gt;MsgBox("New command works.")&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;lt;CommandMethod("ip")&amp;gt;&lt;BR /&gt;Public Sub ip()&lt;BR /&gt;Dim compName As String, compAddr As String&lt;BR /&gt;compName = System.Net.Dns.GetHostName&lt;BR /&gt;compAddr = System.Net.Dns.GetHostByName(compName).AddressList(0).ToString()&lt;/P&gt;&lt;P&gt;MsgBox("Computer name: " &amp;amp; compName &amp;amp; vbCrLf &amp;amp; "Computer Address: " &amp;amp; compAddr)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 22:24:12 GMT</pubDate>
    <dc:creator>Prostang</dc:creator>
    <dc:date>2018-05-30T22:24:12Z</dc:date>
    <item>
      <title>.NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8033677#M25774</link>
      <description>&lt;P&gt;I went to make some minor changes to a DLL that was working previously.&amp;nbsp; Nothing has changed that I can identify, but when I debug via C3D, NETLOAD the DLL, the custom commands are not found in C3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified my resources/references are pointing to 2018.&amp;nbsp; When I NETLOAD an older build (last month-ish), it works perfectly.&amp;nbsp; Can anyone suggest where things may have gone south?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 21:37:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8033677#M25774</guid>
      <dc:creator>Prostang</dc:creator>
      <dc:date>2018-05-29T21:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8033691#M25775</link>
      <description>Are you using the Application Initialize method?  If there is an error in the method, then I dont think the command will be found.</description>
      <pubDate>Tue, 29 May 2018 21:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8033691#M25775</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2018-05-29T21:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8033696#M25776</link>
      <description>&lt;P&gt;&amp;lt;Autodesk.AutoCAD.Runtime.CommandMethod("ip")&amp;gt;&lt;BR /&gt;Public Sub ip()&lt;BR /&gt;Dim compName As String, compAddr As String&lt;BR /&gt;compName = System.Net.Dns.GetHostName&lt;BR /&gt;compAddr = System.Net.Dns.GetHostByName(compName).AddressList(0).ToString()&lt;/P&gt;&lt;P&gt;MsgBox("Computer name: " &amp;amp; compName &amp;amp; vbCrLf &amp;amp; "Computer Address: " &amp;amp; compAddr)&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 21:49:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8033696#M25776</guid>
      <dc:creator>Prostang</dc:creator>
      <dc:date>2018-05-29T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8034249#M25777</link>
      <description>&lt;P&gt;Be sure that your project is referencing the correct framework version for the AutoCAD version you're using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there were an exception being raised when your DLL is NETLOADed, the debugger should break on the exception. You might also check to ensure that your references have their CopyLocal property set to false, and if all else fails, try placing your DLL and PDB files in AutoCAD root folder (where acad.exe is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1048327"&gt;@Prostang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I went to make some minor changes to a DLL that was working previously.&amp;nbsp; Nothing has changed that I can identify, but when I debug via C3D, NETLOAD the DLL, the custom commands are not found in C3D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified my resources/references are pointing to 2018.&amp;nbsp; When I NETLOAD an older build (last month-ish), it works perfectly.&amp;nbsp; Can anyone suggest where things may have gone south?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 05:11:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8034249#M25777</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-05-30T05:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8036600#M25778</link>
      <description>&lt;P&gt;The references are pointing to 2018 and Copy Local is set to False.&amp;nbsp; .NET framework is set to 4.6.1 (up from 4.6).&amp;nbsp; I didn't really make any changes that should account for this mystery.&amp;nbsp; I changed a directory path the app was searching and recompiled.&amp;nbsp; Prior to that change and recompile, the app was working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/506671iA003669DE6229C85/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;Imports System.Windows.Forms&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Public Class Class1&lt;/P&gt;&lt;P&gt;&amp;lt;CommandMethod("test1234")&amp;gt;&lt;BR /&gt;Public Sub test1234()&lt;BR /&gt;MsgBox("New command works.")&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;lt;CommandMethod("ip")&amp;gt;&lt;BR /&gt;Public Sub ip()&lt;BR /&gt;Dim compName As String, compAddr As String&lt;BR /&gt;compName = System.Net.Dns.GetHostName&lt;BR /&gt;compAddr = System.Net.Dns.GetHostByName(compName).AddressList(0).ToString()&lt;/P&gt;&lt;P&gt;MsgBox("Computer name: " &amp;amp; compName &amp;amp; vbCrLf &amp;amp; "Computer Address: " &amp;amp; compAddr)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 22:24:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8036600#M25778</guid>
      <dc:creator>Prostang</dc:creator>
      <dc:date>2018-05-30T22:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8036737#M25779</link>
      <description>&lt;P&gt;Two questions you didn't answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, does your assembly have a class that implements IExtensionApplication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second. What happens when you load the assembly outside of a debug session, as it would normally be loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1048327"&gt;@Prostang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The references are pointing to 2018 and Copy Local is set to False.&amp;nbsp; .NET framework is set to 4.6.1 (up from 4.6).&amp;nbsp; I didn't really make any changes that should account for this mystery.&amp;nbsp; I changed a directory path the app was searching and recompiled.&amp;nbsp; Prior to that change and recompile, the app was working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/506671iA003669DE6229C85/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;Imports System.Windows.Forms&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Public Class Class1&lt;/P&gt;&lt;P&gt;&amp;lt;CommandMethod("test1234")&amp;gt;&lt;BR /&gt;Public Sub test1234()&lt;BR /&gt;MsgBox("New command works.")&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;lt;CommandMethod("ip")&amp;gt;&lt;BR /&gt;Public Sub ip()&lt;BR /&gt;Dim compName As String, compAddr As String&lt;BR /&gt;compName = System.Net.Dns.GetHostName&lt;BR /&gt;compAddr = System.Net.Dns.GetHostByName(compName).AddressList(0).ToString()&lt;/P&gt;&lt;P&gt;MsgBox("Computer name: " &amp;amp; compName &amp;amp; vbCrLf &amp;amp; "Computer Address: " &amp;amp; compAddr)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 00:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8036737#M25779</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-05-31T00:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8037976#M25780</link>
      <description>&lt;P&gt;In the same assembly (your DLL project), do you have a class decorated with "CommandClass" attribute, but the other class (the class with CommandMethod not being recognized) is without "CommandClass" flagged? In the same assembly, if a class is flagged as "CommandClass", all other classes that has "CommandMethod" need to be flagged as "CommandClass". Or, you do not use "CommandClass" attribute at all.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:00:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8037976#M25780</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2018-05-31T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8038360#M25781</link>
      <description>&lt;P&gt;My apologies.&amp;nbsp; There are no instances of&amp;nbsp;&lt;SPAN&gt;IExtensionApplication.&lt;BR /&gt;When I load it outside of debug, I get the same behavior.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This project was a copy of another with some changes.&amp;nbsp; When I load the original project, it works in debug.&amp;nbsp; The only thing changed was all of the paths to various file calls.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:52:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8038360#M25781</guid>
      <dc:creator>Prostang</dc:creator>
      <dc:date>2018-05-31T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: .NET custom command not found when debugging</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8038367#M25782</link>
      <description>&lt;P&gt;I searched the entire project and did not find CommandClass.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:54:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-custom-command-not-found-when-debugging/m-p/8038367#M25782</guid>
      <dc:creator>Prostang</dc:creator>
      <dc:date>2018-05-31T14:54:42Z</dc:date>
    </item>
  </channel>
</rss>

