we need the exception message to help more. typically the connection string references a library that can not be loaded.
The type initializer for 'Microsoft.Data.SqlClient.SqlAuthenticationProviderManager' threw an exception.
Sagar Lugade
0
Reputation points
Getting error while connecting db with .net core Application
2 answers
Sort by: Most helpful
-
-
ShaktiSingh-MSFT 14,201 Reputation points Microsoft Employee
2024-06-17T03:36:53.0633333+00:00 Hi Sagar Lugade •,,
We have not heard back from you with the required details.
However, from the provided information of the error we can suggest you to check your app.config file for any malformed or missing elements.
Check your <configSections> tag, ensure any tag is not empty example <appSettings>.
Let us know if this helps or you resolved your issue before.
If the issue is solved, we request you to share the solution adopted here on the Q&A forum so that others facing similar issue could be benefitted from the same.
Thank you.