<?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 load dependency error in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10673584#M15041</link>
    <description>&lt;P&gt;We created the file in house so it wasn't downloaded from the internet and was working on all machines. The problem was with the AutoCAD shortcut. Apparently under windows 10 checking the box "Run this program as an administrator" was blocking the access to a network drive. Once that was unchecked the dll loaded fine and the error was gone. Thanks all for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 16:00:30 GMT</pubDate>
    <dc:creator>karl.sch1983</dc:creator>
    <dc:date>2021-10-07T16:00:30Z</dc:date>
    <item>
      <title>dll load dependency error</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10653635#M15038</link>
      <description>&lt;P&gt;We have a dll which loads fine on 199 of the 200 workstations. One workstation gets the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Command: NETLOAD Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'file:///L:\LISP\Check.dll' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
File name: 'file:///L:\LISP\Check.dll' ---&amp;gt; System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp;amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp;amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark&amp;amp; stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
   at loadmgd()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The configuration is exactly same on all machines:&lt;/P&gt;&lt;P&gt;Windows 10 64 bit OS&lt;/P&gt;&lt;P&gt;AutoCAD 2018&lt;/P&gt;&lt;P&gt;dll built with VS 2017 Community Edition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I said we have flawless netload on all machines except one. I reduced the dll down to bare bones (Check.dll) to print only a "Hello world" message to command prompt, in case there was something wrong with user code. But it still won't load. Any help is very much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:10:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10653635#M15038</guid>
      <dc:creator>karl.sch1983</dc:creator>
      <dc:date>2021-09-28T22:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: dll load dependency error</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10653682#M15039</link>
      <description>Update: Checked this link from Microsoft &lt;A href="https://stackoverflow.com/questions/14871449/exception-from-hresult-0x80070057-e-invalidarg" target="_blank"&gt;https://stackoverflow.com/questions/14871449/exception-from-hresult-0x80070057-e-invalidarg&lt;/A&gt; in case the network drive was causing issues. So copied the dll to C drive and NETLOAD, still the exact same error</description>
      <pubDate>Tue, 28 Sep 2021 22:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10653682#M15039</guid>
      <dc:creator>karl.sch1983</dc:creator>
      <dc:date>2021-09-28T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: dll load dependency error</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10654249#M15040</link>
      <description>&lt;P&gt;Check dll file is unblock: &lt;A href="https://thirtysix.zendesk.com/hc/en-us/articles/202921675-How-to-Unblock-a-File-Downloaded-from-an-Email-or-the-Internet" target="_blank"&gt;https://thirtysix.zendesk.com/hc/en-us/articles/202921675-How-to-Unblock-a-File-Downloaded-from-an-Email-or-the-Internet&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 06:32:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10654249#M15040</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2021-09-29T06:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: dll load dependency error</title>
      <link>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10673584#M15041</link>
      <description>&lt;P&gt;We created the file in house so it wasn't downloaded from the internet and was working on all machines. The problem was with the AutoCAD shortcut. Apparently under windows 10 checking the box "Run this program as an administrator" was blocking the access to a network drive. Once that was unchecked the dll loaded fine and the error was gone. Thanks all for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 16:00:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dll-load-dependency-error/m-p/10673584#M15041</guid>
      <dc:creator>karl.sch1983</dc:creator>
      <dc:date>2021-10-07T16:00:30Z</dc:date>
    </item>
  </channel>
</rss>

