尝试使用Enterprise Library 5.0从Microsoft Project Server数据库连接到数据库。我包含了所有DLL引用,并且能够毫无问题地部署应用程序。但是,当我尝试创建一个项目失败时出现以下错误消息:
“尝试获取数据库类型的实例时出现激活错误,键”ConnString“”
Web.config文件:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="dataConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data,
Version = 5.0.414.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35"
requirePermission="true"/>
</configSections>
<dataConfiguration defaultDatabase="ConnString" />
<connectionStrings>
<add name="ConnString"
connectionString="Data Source=(localhost);Initial Catalog=MyDB;User ID=XYZ;Password=XYZ;"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
我错过了什么?