c#连接字符串(基础提供程序错误)

时间:2013-11-26 10:10:56

标签: c# entity-framework-5

这是我的连接字符串,但是在我收到错误一段时间后启动应用程序时遇到问题:底层提供程序失败了!   我使用实体框架,我认为问题是连接字符串,如果有任何人可以检查我的连接字符串并查看问题所在,请非常感谢。

 <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
        <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
      </configSections>
      <connectionStrings>
        <add name="rosewoodEntities" connectionString="metadata=res://*/Data.Model.csdl|res://*/Data.Model.ssdl|res://*/Data.Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=TITANIUM-PC;initial catalog=rosewood;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
      </connectionStrings>
      <entityFramework>
        <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
          <parameters>
            <parameter value="v11.0" />
          </parameters>
        </defaultConnectionFactory>
      </entityFramework>
    </configuration>

1 个答案:

答案 0 :(得分:0)

您的连接字符串似乎没问题,但是您应该检查此Blog

参考: - here