The connection string ‘Connect’ in the application’s configuration file does not contain the required providerName attribute.\

<connectionStrings>
    <clear/>
    <add name="ApplicationServices" connectionString="Data Source=PC-X;Initial Catalog=MYdb;Integrated Security=True"/>
  </connectionStrings>


 

Solution:-

 

You’re missing the following piece of code after the connectionString attribute (assuming that you’re using SQL):

providerName="System.Data.SqlClient"

 

Change to

<connectionStrings>
    <clear/>
    <add name="ApplicationServices" connectionString="Data Source=PC-X;Initial Catalog=MYdb;Integrated Security=True" providerName="System.Data.SqlClient" />
  </connectionStrings>

Add Comment