2011-08-08 118 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中解決了這個問題。不幸的是我不明白原因...