could not load System.ComponentModel.AsyncCompleteEventArgs

Question: How do you resolve "could not load System.ComponentModel.AsyncCompleteEventArgs" in Asp.Net Core 3.1 after publishing?

Answer: This error is normally thrown by SQL.Client DLL (Library). In order to resolve this, you will need to publish your project with a "Trim unused assemblies (in preview). The reason why the error happened is that you might have updated all the Nuget Packages and then when publishing the app, Visual Studio 2019 trimmed the updates from the Library.

Even when other Developers did not really come up with a solution to solving any specific error, the cause might be the same or related.

References:

GitHub.com


Edit this Article
could not load System.ComponentModel.AsyncCompleteEventArgs asp.net core publish docker asp.net core Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue

© 2021 - ErnesTech - Privacy