<?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: Unable to load dll via netload in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906212#M17912</link>
    <description>&lt;P&gt;Oh Great! Thanks for the tip. Now I dont have to do it every time I create a project...&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 07:29:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-01T07:29:46Z</dc:date>
    <item>
      <title>Unable to load dll via netload</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9880357#M17908</link>
      <description>&lt;P&gt;Hi, I'm new to Autocad C# API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the beginner's video tutorial, I tried the code to load my dll into AutoCAD, through NETLOAD. But it isnt loading... The error is "Unable to load &amp;lt;dll path.dll&amp;gt; assmebly" what should I do in this case? please help me...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Project type:&lt;/P&gt;
&lt;P&gt;Class Library (c#|Windows)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.EditorInput;

namespace ClassLibrary1_Test3
{
public class Class1
{

[CommandMethod("mycommandinputtest")]
public void MyTestCommandCodeMethod()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;

ed.WriteMessage("\nThis is a test message that myTestCommand is working!!!");


}

}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Softwares:&lt;/P&gt;
&lt;P&gt;Autocad 2020&lt;/P&gt;
&lt;P&gt;Visual Studio Community 2019&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps Followed:&lt;/P&gt;
&lt;P&gt;1. Installed ObjectARX files, referenced them, set copy local to "FALSE"&lt;/P&gt;
&lt;P&gt;2. Tried running them both as Administrators.&lt;/P&gt;
&lt;P&gt;3. Set target .Net Framework to version 4.7 (as given in release notes of AutoCAD 2020)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really dont know what am I doing wrong here...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really need your help..thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sibe R.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:49:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9880357#M17908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-02T13:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load dll via netload</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9905535#M17909</link>
      <description>&lt;P&gt;maybe shooting in the dark, but can you right click on DLL and see if there is an option to "unblock" it?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.limilabs.com/blog/unblock-dll-file" target="_blank"&gt;https://www.limilabs.com/blog/unblock-dll-file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 22:45:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9905535#M17909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-30T22:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load dll via netload</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906158#M17910</link>
      <description>&lt;P&gt;Hi, thanks for the reply. I've found solution to this problem couple of days back. Forgot to update here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is, I had to make the solution - bin - debug folder as trusted folder in autocad settings. Dont know why it asks like this, never encountered such problem before. but once I added that repos/solution/bin/debug folder to trusted folder list, I was able to add this dll into my Autocad Application.&amp;nbsp; - Screenshot attached..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon research, I found out that the solution you have provided is also valid... but specifically when the dll being created from another source, transferred to some other machine, windows will ask for that block/unblock procedure in properties.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:44:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906158#M17910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T06:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load dll via netload</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906185#M17911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm glad to know you find the solution by yourself.&lt;/P&gt;
&lt;P&gt;FYI, you can set repos/... as trusted folder so that any DLL in this folder and its sub directorues will be trusted.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:05:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906185#M17911</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-12-01T07:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load dll via netload</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906212#M17912</link>
      <description>&lt;P&gt;Oh Great! Thanks for the tip. Now I dont have to do it every time I create a project...&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:29:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-dll-via-netload/m-p/9906212#M17912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T07:29:46Z</dc:date>
    </item>
  </channel>
</rss>

