我不是一个SQL Server的家伙,但我工作的一个客户端的应用程序和要连接到通过EF代码数据库首先基础提供未能打开,用户登录失败IIS APPPOOL
异常消息我已经是
底层提供未能打开
异常的详细信息
无法打开登录请求的数据库[DatabaseName]。登录失败
用户登录失败“IIS APPPOOL \ ASP.NET v4.0" 的
我的web配置
<add name="TraininGoDB"
providerName="System.Data.SqlClient"
connectionString="Server=LOCALPCNAME\SQLEXPRESS;Database=[DATABASENAME];Integrated Security=True;"/>
的EF上下文和实体的定义单独的项目与下面的应用配置
<?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=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">
<parameters>
<parameter value="Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
</configuration>
我使用的SQL Server Express 2008
不知道从数据库CONFIGRATION或web配置