The type initializer for 'Microsoft.Data.SqlClient.SqlAuthenticationProviderManager' threw an exception.

Sagar Lugade 0 Reputation points
2024-06-12T10:32:54.79+00:00

Getting error while connecting db with .net core Application

Azure SQL Database
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,325 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,166 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 59,966 Reputation points
    2024-06-13T18:19:07.06+00:00

    we need the exception message to help more. typically the connection string references a library that can not be loaded.

    0 comments No comments

  2. 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.

    0 comments No comments