当前位置:编程学习 > C#/ASP.NET >>

Microsoft Enterprise Library2.0 Configuration配置问题

在Enterprise Library2.0中出现
    <keyAlgorithmStorageProvider xsi:nil="true" /> <includeTypes/>
xsi:nil属性无效。。请问是什么原因啊???

 Web.config如下:

<?xml version="1.0"?>
<configuration>
 
  <configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"/>
  </configSections>
 
  <dataConfiguration defaultDatabase="OracleConnectionString" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" applicationName="Application" xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/configuration">
    <configurationSections>
      <configurationSection name="SystemConfiguration" encrypt="false">
       <storageProvider  xsi:type="XmlFileStorageProviderData" name="XML File Storage Provider" path="systemconfiguration.config" />
       <dataTransformer xsi:type="XmlSerializerTransformerData" name="Xml Serializer Transformer">
         <includeTypes />
        </dataTransformer>
     </configurationSection>
    </configurationSections>

    <keyAlgorithmStorageProvider xsi:nil="true" /> <includeTypes/>
   
  </dataConfiguration>

  <connectionStrings>
    <add name="OracleConnectionString" connectionString="Data Source=aa;Persist Security Info=True;User ID=123;Password=123;Unicode=True" providerName="System.Data.OracleClient"/>
    <add name="SqlConnectionString" connectionString="Database=Test;Server=(local);Integrated Security=SSPI;Password=123;user id=123;" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <appSettings>
    <add key="WebDAL" value="ZoweeDAL"/>
    <add key="DatabaseType" value="Oracle"/>
    <add key="LogFileFolder" value="E:\Log\"/>
  </appSettings>
  <system.web>
   <compilation debug="true">
      <assemblies>
        <add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    </compilation>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
    </httpHandlers>
     <authentication mode="Windows"/>
           <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
  </system.web>

</configuration>



提示<keyAlgorithmStorageProvider xsi:nil="true" /> <includeTypes/>
xsi:nil属性无效,该如何调整啊~~EL2。0
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,