<?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: System.Data.SQLClient - Autocad 2025 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12670624#M4852</link>
    <description>&lt;P&gt;From&amp;nbsp;&lt;SPAN&gt;Dario Bellinazzi&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;I had the same problem, you need to specify both target framework and runtime platform in the .proj file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TargetFramework&amp;gt;net8.0-windows&amp;lt;/TargetFramework&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;RuntimeIdentifier&amp;gt;win-x64&amp;lt;/RuntimeIdentifier&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without &amp;lt;RuntimeIdentifier&amp;gt; dotnet builder doesn't know which type of SqlClient implementation (or others ex. .net Framework converted to NuGet namespaces) is expected to be used from .NET8 in the AutoCAD Environment from the various given by NuGet Package for different platforms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;//---&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Do you find System.Data.SqlClient.dll in your output path folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not add &amp;lt;CopyLocalLockFileAssemblies&amp;gt;true&amp;lt;/CopyLocalLockFileAssemblies&amp;gt;. .NET8 doesn't automatically copy referenced packages without this setting, so it could be that the assembly resolver is not finding the referenced library because is not present.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I understand this issue was still being addressed.&lt;BR /&gt;&lt;BR /&gt;perhaps&amp;nbsp;&lt;SPAN&gt;Madhukar Moogala (&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895" target="_blank"&gt;@moogalm&lt;/A&gt;&amp;nbsp;) can help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untried.&lt;BR /&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 21:34:10 GMT</pubDate>
    <dc:creator>kerry_w_brown</dc:creator>
    <dc:date>2024-03-27T21:34:10Z</dc:date>
    <item>
      <title>System.Data.SQLClient - Autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12667498#M4849</link>
      <description>&lt;P&gt;Loading an app (DLL created in VB.NET using .NET Framework 4.6) in Autocad 2025 returns the following error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Erro.png" style="width: 388px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1342151i20971D2E958025FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Erro.png" alt="Erro.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This app try to connect to a Microsft SQL Server using System. Data.SQLClient.&lt;/P&gt;&lt;P&gt;Running the same app in Autocad 2018 and 2024 it works perfectly.&lt;/P&gt;&lt;P&gt;Rebuild using .NET Framework 4.8 the same error is returned.&lt;/P&gt;&lt;P&gt;When SQL Server is not accessed this app runs in Autocad 2025 successfully (using .NET Framework 4.6 or 4.8).&lt;/P&gt;&lt;P&gt;Why is this occurring only in Autocad 2025?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 20:46:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12667498#M4849</guid>
      <dc:creator>tmfieker</dc:creator>
      <dc:date>2024-03-26T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: System.Data.SQLClient - Autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12667519#M4850</link>
      <description>&lt;P&gt;In 2025, Autocad is using .NET instead of the 4.8 framework. In .NET I believe it it was changed to Microsoft.Data instead of System.Data&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 20:57:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12667519#M4850</guid>
      <dc:creator>matt.worland</dc:creator>
      <dc:date>2024-03-26T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: System.Data.SQLClient - Autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12670450#M4851</link>
      <description>&lt;P&gt;Matt, thanks for the answer, but replacing System.Data. SQLClient by Microsoft.Data.SQLClient also does not work and generates other errors.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 19:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12670450#M4851</guid>
      <dc:creator>tmfieker</dc:creator>
      <dc:date>2024-03-27T19:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: System.Data.SQLClient - Autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12670624#M4852</link>
      <description>&lt;P&gt;From&amp;nbsp;&lt;SPAN&gt;Dario Bellinazzi&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;I had the same problem, you need to specify both target framework and runtime platform in the .proj file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TargetFramework&amp;gt;net8.0-windows&amp;lt;/TargetFramework&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;RuntimeIdentifier&amp;gt;win-x64&amp;lt;/RuntimeIdentifier&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without &amp;lt;RuntimeIdentifier&amp;gt; dotnet builder doesn't know which type of SqlClient implementation (or others ex. .net Framework converted to NuGet namespaces) is expected to be used from .NET8 in the AutoCAD Environment from the various given by NuGet Package for different platforms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;//---&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Do you find System.Data.SqlClient.dll in your output path folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not add &amp;lt;CopyLocalLockFileAssemblies&amp;gt;true&amp;lt;/CopyLocalLockFileAssemblies&amp;gt;. .NET8 doesn't automatically copy referenced packages without this setting, so it could be that the assembly resolver is not finding the referenced library because is not present.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I understand this issue was still being addressed.&lt;BR /&gt;&lt;BR /&gt;perhaps&amp;nbsp;&lt;SPAN&gt;Madhukar Moogala (&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1937895" target="_blank"&gt;@moogalm&lt;/A&gt;&amp;nbsp;) can help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untried.&lt;BR /&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 21:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12670624#M4852</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-03-27T21:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: System.Data.SQLClient - Autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12672249#M4853</link>
      <description>&lt;P&gt;Thanks, I´ll send an email to Madhu.&lt;/P&gt;&lt;P&gt;I will test your sugestion too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 14:37:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12672249#M4853</guid>
      <dc:creator>tmfieker</dc:creator>
      <dc:date>2024-03-28T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: System.Data.SQLClient - Autocad 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12710425#M4854</link>
      <description>&lt;P&gt;Is is necessary to follow the Migration Guide written by Gilles Chanteau:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://info.quuxsoft.com/ftp/Migration_NET_Core%20English.pdf" target="_blank"&gt;https://info.quuxsoft.com/ftp/Migration_NET_Core%20English.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 20:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/system-data-sqlclient-autocad-2025/m-p/12710425#M4854</guid>
      <dc:creator>tmfieker</dc:creator>
      <dc:date>2024-04-15T20:28:49Z</dc:date>
    </item>
  </channel>
</rss>

