我无法理解为什么即使在我从实体框架项目中复制并粘贴连接字符串后,我的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="data source=(local);initial catalog=theDatabase;integrated security=True;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
任何想法?