2011-08-08 52 views
1

每当我打开使用Microsoft的企业库的解决方案时,在构建或打开我的app.config后出现此错误。企业库部分错误

enter image description here

这个消息我的Visual Studio是关闭后!我的配置一年没有变化,而且几天后我只有这个错误。我不知道它是从哪里来的,以及为什么VS在此消息之后关闭...

任何人都知道这个错误也许?

我的配置是这样的:

<?xml version="1.0"?> 
<configuration> 
    <configSections> 
    <section name="enterpriselibrary.configurationSettings" type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=....." /> 
</configSections> 
<enterpriselibrary.configurationSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" applicationName="...." xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/configuration"> 
    <configurationSections> 
    <configurationSection xsi:type="ReadOnlyConfigurationSectionData" name="dataConfiguration" encrypt="true"> 
     <storageProvider xsi:type="XmlFileStorageProviderData" name="XML File Storage Provider" path="......" /> 
     <dataTransformer xsi:type="XmlSerializerTransformerData" name="Xml Serializer Transformer"> 
     <includeTypes /> 
     </dataTransformer> 
    </configurationSection> 
    </configurationSections> 
    <keyAlgorithmStorageProvider xsi:type="FileKeyAlgorithmPairStorageProviderData" name="File Key Algorithm Storage Provider" path="...."> 
    <dpapiSettings xsi:nil="true" /> 
    </keyAlgorithmStorageProvider> 
    <includeTypes /> 
</enterpriselibrary.configurationSettings> 

回答

0

插入configsections到machine.config中解决了这个问题。不幸的是我不明白原因...