实体框架和asp.net MVC在复制和粘贴连接字符串后仍然抛出异常

时间:2013-05-08 01:23:33

标签: asp.net-mvc entity-framework razor

我无法理解为什么即使在我从实体框架项目中复制并粘贴连接字符串后,我的mvc项目仍然抛出异常

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.


  <connectionStrings>
    <add name="DBEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(local);initial catalog=theDatabase;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>

任何想法?

0 个答案:

没有答案