The provider did not return a ProviderManifestToken string error

后端 未结 8 870
失恋的感觉
失恋的感觉 2021-02-12 20:54

I am trying to create a web app using ASP.Net MVC3, Entity Framework and MySQL.

I have added the following code to my Web.Config file.



        
8条回答
  •  执念已碎
    2021-02-12 21:51

    May be the error is in your connection string. Have you tried to connect to your DB instance using the above log in. try changing the connection string

    connectionString="Data Source=.;Initial Catalog=contacts;Integrated Security=True uid=root;pwd=password;" providerName="MySql.Data.MySqlClient"/>
    

    use above if you are using sql server, else if you are using sql express use below one

     connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=contacts;Integrated Security=True uid=root;pwd=password;" providerName="MySql.Data.MySqlClient"/>
    

提交回复
热议问题