<?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: Autocad Oracle in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289130#M982</link>
    <description>&lt;P&gt;Open *.csproj file, see if you have the 2 lines of red-circled configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normanyuan_0-1738181434948.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460637iE08EF4AE0B13A7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="normanyuan_0-1738181434948.png" alt="normanyuan_0-1738181434948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can also look at the plugin DLL folder to verify whether at least the 2 dependency DLLs exist:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oracle.ManagedDataAccess.dll&lt;/P&gt;
&lt;P&gt;System.DirectoryServices.Protocols.dll&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 20:14:00 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2025-01-29T20:14:00Z</dc:date>
    <item>
      <title>Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13288979#M981</link>
      <description>&lt;P&gt;I want to use Oracle from AC 2025. I installed&amp;nbsp;"Oracle.ManagedDataAccess.Core 23.7.0"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghwels_1-1738178007476.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460600i4BB365746EB0A4EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghwels_1-1738178007476.png" alt="ghwels_1-1738178007476.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but when i want to connect to the database, i get an error&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="ghwels_0-1738177969207.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460599iA29D874A8402E1F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghwels_0-1738177969207.png" alt="ghwels_0-1738177969207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13288979#M981</guid>
      <dc:creator>ghwels</dc:creator>
      <dc:date>2025-01-29T19:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289130#M982</link>
      <description>&lt;P&gt;Open *.csproj file, see if you have the 2 lines of red-circled configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="normanyuan_0-1738181434948.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460637iE08EF4AE0B13A7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="normanyuan_0-1738181434948.png" alt="normanyuan_0-1738181434948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can also look at the plugin DLL folder to verify whether at least the 2 dependency DLLs exist:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oracle.ManagedDataAccess.dll&lt;/P&gt;
&lt;P&gt;System.DirectoryServices.Protocols.dll&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 20:14:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289130#M982</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-01-29T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289373#M983</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghwels_0-1738188238868.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460683i1C17E49A166B06A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghwels_0-1738188238868.png" alt="ghwels_0-1738188238868.png" /&gt;&lt;/span&gt;&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="ghwels_1-1738188261086.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460684i0EF3F95B56D8DE8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghwels_1-1738188261086.png" alt="ghwels_1-1738188261086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 22:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289373#M983</guid>
      <dc:creator>ghwels</dc:creator>
      <dc:date>2025-01-29T22:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289539#M984</link>
      <description>&lt;P&gt;You want also make sure this is included:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&amp;lt;RuntimeIdentifier&amp;gt;win-x64&amp;lt;/RuntimeIdentifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 23:41:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289539#M984</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-01-29T23:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289859#M985</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ghwels_0-1738216413464.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460788i20086099E0BB2E09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ghwels_0-1738216413464.png" alt="ghwels_0-1738216413464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 05:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13289859#M985</guid>
      <dc:creator>ghwels</dc:creator>
      <dc:date>2025-01-30T05:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13291073#M986</link>
      <description>&lt;P&gt;OK, I did a quick code test, shown below:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public class OracleDbUtils
    {
        public static bool IsConnected()
        {
            try
            {
                using (var conn=new Oracle.ManagedDataAccess.Client.OracleConnection())
                {
                    conn.ConnectionString = "xxxxxxxxxxxxxxxxxxxxxx";
                }

                return true;
            }
            catch
            {
                return false;
            }
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;Since I do not have access to a Oracle database server, as you can see, I only wrote extremely simple code: as long as the execution passes the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;var conn = new OracleConnection()&lt;/P&gt;&lt;P&gt;then it means the Oracle DLLs are loaded successful. Here is the CommandMethod to call it:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("TestDbConnection")]
        public static void RunDocumentCommand()
        {
            var dwg = CadApp.DocumentManager.MdiActiveDocument;
            var ed = dwg.Editor;

            var connected = OracleDbUtils.IsConnected();
            ed.WriteMessage(
                $"Is AutoCAD connected to the database: {connected.ToString()}");
        }&lt;/LI-CODE&gt;&lt;P&gt;The code runs OK, meaning the Oracle DLLs from the NuGet Package is loaded into my AutoCAD 2025 successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it seems that there could be other things being the source of the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might be because of you somehow targeting Windows 10/Window SDK (Not sure if WinRT.runtime.dll even be compatible with AutoCAD)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest you create a pure Acad2025 plugin project and add the Oracle Nuget package (as I did) and verify the Oracle DLLs can be loaded. Then you gradually add other references.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13291073#M986</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-01-30T16:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13291434#M987</link>
      <description>[cid:image001.png@01DB7352.C4838DF0]&lt;BR /&gt;&lt;BR /&gt;Thank you for your help. Unfortunately, the result is the same.&lt;BR /&gt;&lt;BR /&gt;I usually program in Vb.net, but I deliberately created the program in C# this time.&lt;BR /&gt;&lt;BR /&gt;I installed the package "Oracle.ManagedDataAccess.Core 23.7" via nuget and the autocad "accoremgd, AcCui, Acgbmgd, acmgd".&lt;BR /&gt;&lt;BR /&gt;Operating system Windows 11 up to date.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I test the same code not as a DLL but as a form application on the same computer, the database is opened correctly.&lt;BR /&gt;&lt;BR /&gt;If I start the DLL on another computer, the same error occurs!&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2025 19:16:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13291434#M987</guid>
      <dc:creator>ghwels</dc:creator>
      <dc:date>2025-01-30T19:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13291506#M988</link>
      <description>&lt;P&gt;Sorry, can't help more since the Oracle DLLs loaded with my Acad2025 plugin Ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 19:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13291506#M988</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-01-30T19:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13299184#M989</link>
      <description>&lt;P&gt;Unfortunately, I still can't access the data from Autocad via Oracle.&lt;/P&gt;&lt;P&gt;This is probably because we are still running version Ora 21c on our server, but Net8 already requires version 23.&lt;BR /&gt;Nevertheless, many thanks from Austria.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:20:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13299184#M989</guid>
      <dc:creator>ghwels</dc:creator>
      <dc:date>2025-02-04T15:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad Oracle</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13299262#M990</link>
      <description>&lt;P&gt;Maybe it is time to catch up the technology trend to expose the data vis HTTP services, so AutoCAD does not need to know what the database server is and only need a HTTP client to access the serviced data. These days, most database server administrators do not want/do not allow a user client app to have direct access to the database server. The last time I wrote a CAD app that reached a database server directly was more than 15 years ago&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:57:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-oracle/m-p/13299262#M990</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-02-04T15:57:50Z</dc:date>
    </item>
  </channel>
</rss>

