<?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: Common Language Runtime detected an invalid program. in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/9858317#M8487</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why then, in documentation for 2021, said that it can be used in .net standalone app?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-71554E76-8FD5-4853-82CD-3587764CBCAC" target="_blank"&gt;https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-71554E76-8FD5-4853-82CD-3587764CBCAC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either documentation is wrong, or is incomplete - missing instructions how to do it.&lt;/P&gt;&lt;P&gt;Btw, I have similar problem, trying to read .cuix file (to customize UI) from standalone .net app.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 11:00:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-10T11:00:34Z</dc:date>
    <item>
      <title>Common Language Runtime detected an invalid program.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6975048#M8483</link>
      <description>&lt;P&gt;I got error when I read file dwg using C#:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Database db = new Database(false, true)&lt;/P&gt;&lt;P&gt;db.ReadDwgFile(filename, FileOpenMode.OpenForReadAndAllShare, false, null);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'System.InvalidProgramException' occurred in ReadCADFile.exe&lt;BR /&gt;&lt;BR /&gt;Additional information: Common Language Runtime detected an invalid program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to resolve this problem ?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 09:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6975048#M8483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-27T09:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Common Language Runtime detected an invalid program.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6975085#M8484</link>
      <description>&lt;P&gt;@Anonymous&lt;/P&gt;
&lt;P&gt;1. Wrong forum selected for this question. Right forum is&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/net/bd-p/152" target="_blank"&gt;https://forums.autodesk.com/t5/net/bd-p/152&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. You can not use AutoCAD .NET API with external exe-application. It can be used only in inproc dll addin, which loaded in AutoCAD with NETLOAD command.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 10:05:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6975085#M8484</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-03-27T10:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Common Language Runtime detected an invalid program.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6977357#M8485</link>
      <description>&lt;P&gt;Dear &lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027" target="_self"&gt;&lt;SPAN&gt;Alexander.Rivilis,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;You mean : I' LL build DLL then add them to AutoCad and use NetLoad Command to call them ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 01:36:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6977357#M8485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T01:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Common Language Runtime detected an invalid program.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6977470#M8486</link>
      <description>NETLOAD command is using not for call dll, but for load it into AutoCAD.</description>
      <pubDate>Tue, 28 Mar 2017 04:48:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/6977470#M8486</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-03-28T04:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Common Language Runtime detected an invalid program.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/9858317#M8487</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why then, in documentation for 2021, said that it can be used in .net standalone app?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-71554E76-8FD5-4853-82CD-3587764CBCAC" target="_blank"&gt;https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-71554E76-8FD5-4853-82CD-3587764CBCAC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either documentation is wrong, or is incomplete - missing instructions how to do it.&lt;/P&gt;&lt;P&gt;Btw, I have similar problem, trying to read .cuix file (to customize UI) from standalone .net app.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 11:00:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/9858317#M8487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-10T11:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Common Language Runtime detected an invalid program.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/9859389#M8488</link>
      <description>Using the .NET API in a standalone program requires the RealDWG SDK which is a licensed product and not free.</description>
      <pubDate>Tue, 10 Nov 2020 17:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/common-language-runtime-detected-an-invalid-program/m-p/9859389#M8488</guid>
      <dc:creator>artc2</dc:creator>
      <dc:date>2020-11-10T17:00:12Z</dc:date>
    </item>
  </channel>
</rss>

