Unable to find the requested .Net Framework Data Provider. It may not be installed

前端 未结 5 1556
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 15:39

After completing the ASP.NET MVC 3 (find here), I tried to publish the app online. I contacted the hosting company to be sure if it\'s possible to host MVC 3 apps. But I had

5条回答
  •  旧时难觅i
    2021-01-05 15:47

    From my experience, that error means that the value of the providerName attribute on the connection string in your web.config is either incorrect, or the provider literally is not installed. If your providerName is set to System.Data.SqlServerCe.4.0 (SQL Server Compact), which is not uncommon in development, I can guarantee you that it's not installed on your web host; it's only used inside Visual Studio for development. You probably just need to change it to a the real SQL Server provider: System.Data.SqlClient.

提交回复
热议问题