how to solve Keyword not supported: 'data source'

此生再无相见时 提交于 2019-12-13 02:52:16

问题


I uploaded my website( that is programmed with asp.net mvc and entity framework 5) yesterday and wrote this connection string in the web.config file of the host root ( control panel is plesk onyx)

I tried changing it to SqlCLient,Removing some tags, and so many other things but no change it return error:

keyword not supported: 'data source'

when I remove data source it return keyword not supported 'initial catalog' and so on thanks for your attention

<add name="ShopDBEntities" connectionString="Data Source=some source;initial catalog=MainDB;User ID=admin;Password=pass;integrated security=True;App=EntityFramework" providerName="System.Data.EntityClient" />

来源:https://stackoverflow.com/questions/57286577/how-to-use-connection-string-in-c-sharp-codes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!