【发布时间】:2012-11-30 12:36:16
【问题描述】:
我需要通过在“dataconfiguration.config”文件上配置的连接并使用企业库来创建我的代码的一些单元测试,这些代码现在正在使用 SQL Server 2005。我无法更改这种连接代码,因此我需要配置我的测试项目才能使用它。
消息错误如下:
部分名称无效。 “dataConfiguration”部分不存在 在请求的配置文件'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe.Config' 或文件 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config'。 确保“enterpriseLibrary.configurationSections” 配置部分存在于其中一个文件中,并且该部分 'dataConfiguration' 已定义。
对此的任何帮助将不胜感激!谢谢
【问题讨论】:
标签: .net visual-studio-2010 unit-testing enterprise-library