-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't load assembly System.Data.SqlClient: System.AppDomain conflict in assemblies #1472
Comments
I am also having this issue. |
I got this error while using a net standard 2.0 lib inside a project. I finally discovered a bad format error. Made sure the project platform matched in my case x64. |
@eschneider999 I don't think it's a configuration issue. If you start with a blank project and try to connect to SQL, you will get this error. Pretty serious in my opinion. |
@fabiocav - you probably need to look at this. This is also probably the wrong repo. |
I am also encountering this issue. |
This issue is more of loading the wrong assembly version. Packages reference During runtime, the application is loading |
If there could be any further insight, I also noticed the binding to Newtonsoft being version specific too. |
I just started a new project and ran into the same error as @justin-lovell, forcing x64 didn't make any difference. I had to downgrade the System.Data.SqlClient nuget package to version 4.4.0 (4.4.1 & 4.4.2 have this problem). |
@TheDruidsKeeper downgrading to 4.4.0 worked for me as well. Thanks! |
Downgrading System.Data.SqlClient to 4.4.0 resolved the issue for me as well. |
I also had the same problem, and the downgrade made it go away for me too. |
Version 4.6.0 raises similar exception: Thanks to @TheDruidsKeeper, downgrading to 4.4.0 solved the problem. |
Downgraded to 4.50 solved it for me |
Same issue here with 4.6.0, downgrade to 4.5.1 solved the problem. |
@BrodaUa @HeinBehrensRR @mike1880 ; the original issue here is quite old and doesn't apply to the current production versions of the runtime. Would you mind opening a new issue with the details requested in the template and error details so we can investigate? |
I'm trying to use System.Data.SqlClient to work with Azure SQL, but I get exception during local testing.
Repro steps
Expected behavior
Function fires without errors
Actual behavior
I get exception during function execution:
Known workarounds
No any workaround for me
Related information
Provide any related information
The text was updated successfully, but these errors were encountered: