FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient, Version=0.0.0.0, Cult
This is the method giving the issue. Before I was using System.Data.SqlClient but it gave me an error so I switched to Microsoft.Data.SqlClient now im getting this issue. I downloaded the package and it exist so im not to sure why it keeps throwing an the exception in the title.
7 Replies
Unrelated to your issue, but still a very big part, please don't do this
$sqlinjection
Always parametrize queries!⠀
Do not concatenate the query, like in this example:
Instead, always parameterize your queries. Look up the documentation for your database library. If you are using
System.Data.SqlClient
, refer to this example.That's a very important point, please don't ignore that
Hm when I saw it on sparknotes I didnt see anyone disapproving
Alr thx
Ok so it appears to be compatiability issues.

Ok so if you encounter this issue future viewers, you are mostly likely using a sql connection package that is not compatible with your net project.
Unknown User•6d ago
Message Not Public
Sign In & Join Server To View