.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connect to SQL database with .net 8.0

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
CBennett34F8SS
822 Views, 2 Replies

Connect to SQL database with .net 8.0

I have a command that will pull data from a SQL database and import it into a title block.  This worked fine in .net framework.  I recently migrated to 2025 and .net 8.0 and I am getting the following error: System.PlatformNotSupportedException: 'Microsoft.Data.SqlClient is not supported on this platform.'

 

I created a test console app in .net 8.0 and I am able to pull data from that database that way.  Has anyone else run into this issue?

2 REPLIES 2
Message 2 of 3

nevermind I found it,  for some reason Microsoft.Data.SqlClient is not choosing the correct runtime .dll to load.  I specified it in my project file with <RuntimeIdentifier>win-x64</RuntimeIdentifier>  and it is now working again.

Message 3 of 3
kdub_nz
in reply to: CBennett34F8SS

For anyone else :
I noticed this today

https://adndevblog.typepad.com/autocad/2024/05/connecting-to-sql-server-from-autocad-2025.html

 

Perhaps this article by Madhukar Moogala  @moogalm will help those with an SQL issue.
Regards,


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta