2011-03-03 45 views

回答

1

您是否添加了节处理程序?如果没有,你需要添加到您的<configSections>元素:

<section name="securityCryptographyConfiguration" 
    type="Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.CryptographySettings, 
      Microsoft.Practices.EnterpriseLibrary.Security.Cryptography, 
      Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 

一旦你在的地方,你应该能够在securityCryptographyConfiguration标记添加到您的web.config,记住,它位于它的自己,它不窝在另一个部分内,例如:

</configSections> 

<!-- The crypt config section sits at the same level as configSections 
<securityCryptographyConfiguration /> 

<system.web>