简体   繁体   中英

Cannot add the Tag “securityCryptographyConfiguration ” in web.config

I need to add the Tag securityCryptographyConfiguration in the web.config in order to use the MS Application blocks 4.1 for Cryptography. This tag is available in app.config(Windows) .

Please help me to place this tag in web.config.

Have you added the section handler? If not, you'll need to add this to your <configSections> element:

<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" />

Once you have that in place, you should be able to add the securityCryptographyConfiguration tag to your web.config, remembering that it sits on it's own, it doesn't nest inside another section eg:

</configSections>

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

<system.web>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM