Closed SoftCircuits closed 1 year ago
Please try to upgrade the Microsoft.Data.SqlClient
to its latest version, or, if you are using assembly trimming, try to disable it and see if the issue is gone.
@odinserj Yes! It was the Trim unused code option. I unchecked that and now it's working. Many thanks!
My console app is working fine on my local machine. But when I upload it to the server, I get an exception.
Can anyone see what might be happening, or assist me in troubleshooting?
Here's my setup. The exception appears to be happening on the line that calls
host.Run()
.I'm building a Windows Service, but the exception happens when I just run the app directly.