<?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: DLL in Plugin Bundle Fail to be Autoloaded in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351138#M24520</link>
    <description>&lt;P&gt;I cannot see anything wrong with your PackageContents.xml file but I'm pretty sure it has nothing to do with any "publisher-ID", I don't have one and I can extensively use bundles.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 18:51:56 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2018-10-22T18:51:56Z</dc:date>
    <item>
      <title>DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8344111#M24515</link>
      <description>&lt;P&gt;I have developed a plugin in a form of a DLL written in C# .NET.&amp;nbsp; Let call it MyLib.dll.&amp;nbsp; It has several commands available for our users.&amp;nbsp; The commands work fine when I manually load the DLL using NETLOAD.&amp;nbsp; I want the DLL to be autoloaded.&amp;nbsp; I follow a "known good" sample program to create a bundle folder for the plugin.&amp;nbsp; I have also created a cuix file to add the plugin to the Ribbon.&amp;nbsp; The cuix works fine.&amp;nbsp; Unfortunately, the DLL somehow is not autoloaded.&amp;nbsp;&amp;nbsp;Please help me to find out what goes wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bundle folder structure is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;C:\ProgramData\Autodesk\ApplicationPlugins\MyLib.bundle&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;|--&amp;gt; PackageContents.xml&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;|--&amp;gt; Contents&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|--&amp;gt; MyLib.dll&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;|--&amp;gt; MyLib.cuix&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And the PackageContents.xml file is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;ApplicationPackage&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;SchemaVersion="1.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;AppVersion="1.0.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;Name="MyLib"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;Description="My library of programs"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;ProductCode="{...GUID...}"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;CompanyDetails Name="XYZ Company" /&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Components&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;RuntimeRequirements SupportPath="./Contents"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OS="Win64"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Platform="AutoCAD*"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SeriesMin="R19.0" /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ComponentEntry AppName="MyLib"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AppDescription="My Library"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModuleName="./Contents/MyLib.dll"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LoadOnAutoCADStartup="True" /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ComponentEntry AppName="MyLib"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AppDescription="My Library"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModuleName="./Contents/MyLib.cuix" /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/Components&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/ApplicationPackage&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no error message during startup.&amp;nbsp; But the commands doesn't work (because the DLL is not loaded).&amp;nbsp; And I also find that the DLL is not registered in the registry.&amp;nbsp; I am under the impression that the Autoloader in AutoCAD will automatically load the DLL and register the DLL for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried replacing the LoadOnAutoCADStartup option with&amp;nbsp;&lt;SPAN&gt;LoadOnCommandInvocation.&amp;nbsp; But that doesn't work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to see any hidden warning message or error message from AutoCAD startup process to show me what AutoCAD doesn't autoload the DLL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone give me a suggestion as of why this plugin bundle cannot be autoloaded into AuotCAD?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8344111#M24515</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-18T18:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8344151#M24516</link>
      <description>&lt;P&gt;I also create another plugin bundle that has a LSP file instead of a DLL file.&amp;nbsp; Unfortunately, the LSP file is also NOT autoloaded.&amp;nbsp; This means the problem has nothing to do with the DLL.&amp;nbsp; I am also sure that the autoloader in my AutoCAD (AutoCAD 2018) should work because the plug-in bundle of the "known good" sample program can be autoloaded.&amp;nbsp; This means there must be something in my plug-in bundle that is causing the problem.&amp;nbsp; But I cannot tell where the problem is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 19:02:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8344151#M24516</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-18T19:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8349905#M24517</link>
      <description>&lt;P&gt;Seem like the problem may have to do with the fact that I don't have a publisher ID and the DLL is not signed.&amp;nbsp; Not sure.&amp;nbsp; The easiest way out is to place a LISP file in Startup Suite in AutoCAD, and add a (command "_netload" ...) statement in the LISP file to load the DLL.&amp;nbsp;&amp;nbsp;This is not really a solution to this problem.&amp;nbsp; This is just a workaround.&amp;nbsp; Actually I still cannot be sure if missing publisher ID is really the cause of this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC_BL&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 11:36:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8349905#M24517</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-22T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8350744#M24518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should set the ProductCode attribute value with a GUID (from Visual Studio, Tools &amp;gt; Create GUID) and add an UpgradeCode attribute with a different GUID.&lt;/P&gt;
&lt;P&gt;You shoud also have a look at the&amp;nbsp; &lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-33E75B9A-93AC-4FBF-B941-0F99A6AC3617-htm.html" target="_blank"&gt;APPAUTOLOAD&lt;/A&gt; system variable.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 16:22:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8350744#M24518</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-22T16:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8350810#M24519</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; The APPAUTOLOAD system variable is already set at 2 (that is to load the plugin during Startup).&amp;nbsp; The PackageContents.xml file already has a ProductCode.&amp;nbsp; And I have tried adding a UpgradeCode to PackageContents.xml file.&amp;nbsp; But that doesn't make any difference.&amp;nbsp; Based on the documentation on PackageContents.xml, UpgradeCode is optional for in-house application (that is what I am working on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of now, I believe the problem has to do with the fact that I don't have a publisher-ID.&amp;nbsp; Currently I get around with the problem by using the Startup Suite mechanism.&amp;nbsp; Not perfect.&amp;nbsp; But is acceptable for an in-house application.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 16:48:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8350810#M24519</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-22T16:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351138#M24520</link>
      <description>&lt;P&gt;I cannot see anything wrong with your PackageContents.xml file but I'm pretty sure it has nothing to do with any "publisher-ID", I don't have one and I can extensively use bundles.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 18:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351138#M24520</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-22T18:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351154#M24521</link>
      <description>&lt;P&gt;I am glad that you share your experience.&amp;nbsp; This means publisher-ID is not always required.&amp;nbsp; Having said this, I cannot totally rule out the publisher-ID may be the "trigger" of this problem.&amp;nbsp; Although missing publisher-ID may not "cause" of the problem, this may "trigger" the problem.&amp;nbsp; What I mean is that the network security in where I work may have a setting that says that a plugin must have a valid publisher-ID.&amp;nbsp; On the other hand, in another network, it may not have turned ON that security setting, and a plugin will never encounter this problem.&amp;nbsp; I will need to ask the network administrator to see if he knows anything about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 19:01:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351154#M24521</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-22T19:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351558#M24522</link>
      <description>&lt;P&gt;Stupid question time: are you getting hoisted by your AutoCAD Trusted Path/security settings?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:12:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8351558#M24522</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2018-10-22T22:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8352532#M24523</link>
      <description>&lt;P&gt;Could you please take a look at your system variable: APPAUTOLOAD&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-33E75B9A-93AC-4FBF-B941-0F99A6AC3617-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-33E75B9A-93AC-4FBF-B941-0F99A6AC3617-htm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And try:&amp;nbsp; APPAUTOLOADER&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-CD3386C1-9E69-4C88-8BE6-046C081AEB41-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-Core/files/GUID-CD3386C1-9E69-4C88-8BE6-046C081AEB41-htm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 09:41:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8352532#M24523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T09:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8352823#M24524</link>
      <description>&lt;P&gt;All the plugin bundle (including mine and another sample program) are stored under C:\ProgramData\Autodesk\ApplicationPlugnis folder, and that folder is in the list of Trusted Location in AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is still a good question.&amp;nbsp; The reason is that when I manually NETLOAD my DLL (for the first time) from that location, somehow I still get a warning message about the location is not in a trusted location (it also complains that the DLL is not from a valid a publisher).&amp;nbsp; Therefore, I still have a question in the back of my head wondering if that "Trusted Location" setting is really working or not.&amp;nbsp; By the way, I answer the warning message and ask it to "Always Load" the DLL, and that prevents the warning message from popping up -- that is until I rebuild the DLL.&amp;nbsp; Anyway I doubt this has anything to do with this problem because I have already asked it to "Always Load"; therefore, this should not prevent the DLL from being autoloaded.&amp;nbsp; Something else is causing the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 11:48:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8352823#M24524</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-23T11:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8352830#M24525</link>
      <description>&lt;P&gt;Hello przemek_2000, as mentioned in one of my previous message, the APPAUTOLOAD system variable is already set at 2 (that is to autoload at startup).&amp;nbsp; Therefore, this is not what causes the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 11:50:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8352830#M24525</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-23T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8353108#M24526</link>
      <description>&lt;P&gt;I asked our network administrator about this.&amp;nbsp; The answer is a "may be".&amp;nbsp; Their is Group Policy that says that we should only allow running EXE/DLL that is third party certified or our own certified.&amp;nbsp; But we have many in-house applications (EXE/DLL) that runs fine for many years and they are not certified in any way.&amp;nbsp; Therefore, we have one policy that says one thing, and we have real life experience that says a different thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, this thing is outside my domain.&amp;nbsp; I will have to move on to other tasks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:26:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8353108#M24526</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-23T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8354009#M24527</link>
      <description>&lt;P&gt;What if you download and install &lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=8051485828049059617&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_blank"&gt;some plugin&lt;/A&gt; on the app store?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 18:27:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8354009#M24527</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-23T18:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8354137#M24528</link>
      <description>&lt;P&gt;That plugin "Incerment" that I downloaded from App Store works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice that it installs itself in C:\Users\...\AppData\Roaming\Autodesk\ApplicationPlugins folder.&amp;nbsp; On the other hand, I installed mine in C:\ProgramData\Autodesk\ApplicationPlugins folder.&amp;nbsp; I tried installing mine in C:\Users\...\AppData\Roaming\Autodesk\ApplicationPlugins folder.&amp;nbsp; Unfortunately this doesn't make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also notice that it comes with an installation program (.msi file).&amp;nbsp; The installation program adds a registry entry to autoload itself (HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R22.0\ACAD-1001:409\Applications\Increment).&amp;nbsp; And this is probably the reason why AutoCAD has no problem autoloading this plugin.&amp;nbsp; If I use this plugin as the guide, the trick to autoload a plugin seems to be to write&amp;nbsp;an installation program to add a bundle folder and to&amp;nbsp;register the plugin.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 19:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8354137#M24528</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-23T19:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8354368#M24529</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1216280"&gt;@JC_BL&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;I also notice that it comes with an installation program (.msi file).&amp;nbsp; The installation program adds a registry entry to autoload itself (HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R22.0\ACAD-1001:409\Applications\Increment).&amp;nbsp; And this is probably the reason why AutoCAD has no problem autoloading this plugin.&amp;nbsp; If I use this plugin as the guide, the trick to autoload a plugin seems to be to write&amp;nbsp;an installation program to add a bundle folder and to&amp;nbsp;register the plugin.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The installer does not create the registry entry, it only deploy the bundle folder in %appdata%\Autodesk\ApplicationPlugins. This is the autoloader mechanism which creates the registry entry the first time the application is (auto)loaded.&lt;/P&gt;
&lt;P&gt;I often build installers which use this mechanism without doing anything than deploying the bundle folder. I also often directy paste a bundle into an autoloader folder.&lt;/P&gt;
&lt;P&gt;Maybe you can get some inspiration from the Increment PackageContents.xml file and try again with a new ProductCode GUID.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 21:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8354368#M24529</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-23T21:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8356673#M24530</link>
      <description>&lt;P&gt;Thanks for the additional details of the .msi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just tried using InstallShield Limited Edition for Visual Studio to create a .msi to deploy the plugin bundle.&amp;nbsp; The .msi can copy the bundle to C:\Program Files\Autodesk\ApplicationPlugins folder.&amp;nbsp; Unfortunately, AutoCAD still cannot autoload the plugin bundle from that location, and AutoCAD doesn't register the plugin either.&amp;nbsp; Seems to me that the problem has nothing to do with the use of .msi or not.&amp;nbsp; And I have no idea why AutoCAD cannot autoload my plugin.&amp;nbsp; I will have to stick with loading the plugin through a LISP file in Startup Suite in AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really hope that the autoloading plugin bundle mechanism will work because this not only will autoload the DLL, but also the mechanism will load&amp;nbsp;the CUIX into the ribbon.&amp;nbsp; As of now, users not only need to&amp;nbsp;use the Startup Suite to get around with this problem, they also need to load the CUIX into ribbon.&amp;nbsp; This is "OK".&amp;nbsp; Still...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very strange.&amp;nbsp; To install a sample plugin (called FabricationSample for CADmep), all I need to do is to copy the bundle folder to C:\ProgramData\Autodesk\ApplicationPlugins and AutoCAD will automatically load it, register it, and load the CUIX into ribbon.&amp;nbsp; On the other hand, AutoCAD cannot do any of those things for my bundle.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 16:55:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8356673#M24530</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-24T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8356781#M24531</link>
      <description>&lt;P&gt;This is what I tried to explain you (with my poor English).&lt;/P&gt;
&lt;P&gt;When you put your bundle in one of the Autodesk\ApplicationPlugins, are you able to NETLOAD it from the bundle and run it in AutoCAD ?&lt;/P&gt;
&lt;P&gt;If not, the problem probably come from the DLL in this folder.&lt;/P&gt;
&lt;P&gt;If yes, the problem probably come from the PackageContents.xml file.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 17:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8356781#M24531</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-24T17:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8356910#M24532</link>
      <description>&lt;P&gt;Yes, I have no problem using NETLOAD to load the DLL from my plugin bundle from C:\ProgramData\Autodesk\ApplicationPlugins folder.&amp;nbsp; After loading it, the commands from the DLL in the plugin are readily available, and they run fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is the PackageContents.xml file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;ApplicationPackage SchemaVersion="1.0"
                    AppVersion="1.0.0"
                    Author="JC_BL"
                    Name="MyLib"
                    Description="My library"
                    ProductCode="{6F82B046-BFA0-4E41-A388-DA023EC29DFF}"
                    AutodeskProduct="AutoCAD" ProductType="Application"&amp;gt;

   &amp;lt;CompanyDetails Name="XYZ Company" /&amp;gt;
   &amp;lt;Components&amp;gt;
      &amp;lt;RuntimeRequirements SupportPath="./Contents" OS="Win64" Platform="AutoCAD*" SeriesMin="R19.0" /&amp;gt;
		&amp;lt;ComponentEntry AppName="MyLib"
		                AppDescription="My Program Library"
		                ModuleName="./Contents/MyLib.dll"
                      LoadOnAutoCADStartup="True" /&amp;gt;
   &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/PRE&gt;&lt;P&gt;This is how I create the plugin:&lt;/P&gt;&lt;P&gt;Run Visual Studio 2010, and use a new-project wizard called "AutoCAD 2015 CSharp plug-in" to create a skeleton project called MyLib.&amp;nbsp; The skeleton project should have a program file myCommands.cs in it.&amp;nbsp; The file has a class called "MyCommands".&amp;nbsp; Add a simply "command" in it, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[CommandMethod("MyCommandForTest")]
public void MyCommandForTest()
   {
   Document doc = Application.DocumentManager.MdiActiveDocument;
   Editor ed;
   if (doc != null)
      {
      ed = doc.Editor;
      ed.WriteMessage("This is just a test");
      }
   }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because my project is targeted at .NET Framework 4.5.2, I need to adjust the references to point to ObjectARX-2017 to match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build the DLL to make sure it has no error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually issue the NETLOAD command to load the DLL from the Debug/bin folder.&amp;nbsp; AutoCAD complains about "The publisher of this executable file could not be verified and the file is not located in a trusted folder."&amp;nbsp; I choose "Always Load" to by pass this message.&amp;nbsp; Enter MYCOMMANDFORTEST, and it shows up in the command line.&amp;nbsp; Run MYCOMMANDFORTEST, and it shows "This is just a test".&amp;nbsp; So far so good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually create the plugin bundle.&amp;nbsp; Use the PackageContents.xml file shown above.&amp;nbsp; Create a folder called "Contents" under the MyLib.bundle folder.&amp;nbsp; And copy the MyLib.dll into the "Contents" folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Copy the entire MyLib.bundle folder into C:\ProgramData\Autodesk\ApplicationPlugins.&amp;nbsp; Launch AutoCAD and hope for the best.&amp;nbsp; Unfortunately, AutoCAD doesn't autoload MyLib.dll.&amp;nbsp; There is no error message; but none of the "My..." commands shows up in the command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use NETLOAD to manually load the DLL from MyLib.bundle folder in C:\ProgramData\....&amp;nbsp; It shows the same warning message as before.&amp;nbsp; I understand the part of the message about the DLL doesn't have a verified publisher ID.&amp;nbsp; But I don't understand why it complains that the DLL is not in a trusted location.&amp;nbsp; The fact is that C:\ProgramData\Autodesk\ApplicationPlugins and all its sub folders are trusted location.&amp;nbsp; I choose "Always Load" just like the last time.&amp;nbsp; And the DLL is loaded without any problem.&amp;nbsp; And I can see all the My* commands showing up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot spot where the cause of the "not autoload" problem is, other than the fact that I don't have a verified publisher ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to spot where the cause of the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 18:25:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8356910#M24532</guid>
      <dc:creator>JC_BL</dc:creator>
      <dc:date>2018-10-24T18:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8357127#M24533</link>
      <description>&lt;P&gt;Try with the following code (simply copy/paste it as is), it's based on the minimal PackageContents.xml file i use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;ApplicationPackage
  SchemaVersion="1.0"
  AppVersion="1.0.0"
  Author="JC_BL"
  ProductCode="{98E0DDE2-7450-4F87-A06F-012DC03B6FA7}"
  UpgradeCode="{96360609-B605-48E3-84E8-318008E53D7D}"
  Name="MyLib"
  Description="My library"
  AutodeskProduct="AutoCAD"
  ProductType="Application"&amp;gt;
  &amp;lt;CompanyDetails
    Name="XYZ Company" /&amp;gt;
  &amp;lt;Components&amp;gt;
    &amp;lt;RuntimeRequirements
      OS="Win32|Win64"
      Platform="AutoCAD*"
      SeriesMin="R19.0"
      SeriesMax="R23.0" /&amp;gt;
    &amp;lt;ComponentEntry
      AppName="MyLib"
      Version="1.0.0"
      ModuleName="./Contents/MyLib.dll"
      AppDescription="My Program Library"
      LoadOnAutoCADStartup="True"&amp;gt;
    &amp;lt;/ComponentEntry&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Oct 2018 19:53:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8357127#M24533</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-10-24T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: DLL in Plugin Bundle Fail to be Autoloaded</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8357585#M24534</link>
      <description>&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;This is how I create the plugin:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;Run &lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#333399"&gt;Visual Studio 2010&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;, and use a new-project wizard called "AutoCAD 2015 CSharp plug-in" to create a skeleton project called MyLib.&amp;nbsp; ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I haven't read the complete thread, but please confirm the Visual Studio version you used ..&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:30:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-in-plugin-bundle-fail-to-be-autoloaded/m-p/8357585#M24534</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2018-10-25T00:30:15Z</dc:date>
    </item>
  </channel>
</rss>

