关键字不支持使用ASP.净MVC



我有一个mvc web项目。当我运行它时,我得到了那个错误。关键字不支持:compatible参数名称:Keyword。我看了看网页。配置和appconfig。但我看不出有任何错误。对于这个错误我该怎么做?

我的web配置连接字符串

add name="Entities" connectionString="metadata=res://*/DataModel.Model.csdl|res://*/DataModel.Model.ssdl|res://*/DataModel.Model.msl;provider=Npgsql;provider connection string="port=5432;timeout=15;pooling=True;minpoolsize=1;maxpoolsize=500;commandtimeout=30;compatible=2.2.3.0;host=localhost;database=toki;user id=postgres;password=master;sslmode=Disable;connectionlifetime=100;enlist=True;preloadreader=True"" providerName="System.Data.EntityClient"

我的应用配置连接字符串

add name="Entities" connectionString="metadata=res://*/DataModel.Model.csdl|res://*/DataModel.Model.ssdl|res://*/DataModel.Model.msl;provider=Npgsql;provider connection string="port=5432;timeout=15;pooling=True;minpoolsize=1;maxpoolsize=500;commandtimeout=30;compatible=2.2.3.0;host=localhost;database=toki;user id=postgres;password=master;sslmode=Disable;connectionlifetime=100;enlist=True;preloadreader=True"" providerName="System.Data.EntityClient"

尝试从两个连接字符串中删除compatible=2.2.3.0;

最新更新