473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Enterprise Library exception: The configuration section securityCryptographyConfiguration is not defined in the current configuration for the AppDomain.

I am attempting to use the Enterprise Library (Jan 2006) Cryptography block
to encrypt a credit card number in my ASP.NET 2.0 Commerce Server
application. Everything is configured correctly, as evidenced by the fact
that it is running on a production box using the same web.config (but not
the same parent web.config). When I call the EncryptSymmetric() method, I
get this error:

Server Error in '/Store' Application.
--------------------------------------------------------------------------------

The configuration section securityCryptographyConfiguration is not defined
in the current configuration for the AppDomain.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationErrorsException: The
configuration section securityCryptographyConfiguration is not defined in
the current configuration for the AppDomain.

Source Error:

[No relevant source lines]

Source File: **************** Omitted ************************** Line:
933

Stack Trace:

[ConfigurationErrorsException: The configuration section
securityCryptographyConfiguration is not defined in the current
configuration for the AppDomain.]
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.CryptographyConfigurationView.get_Crypto graphySettings()
+202
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.CryptographyConfigurationView.GetSymetri cCryptoProviderData(String
symetricCryptoProviderName) +130
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.SymmetricCryptoProviderCustomFactory.Get Configuration(String
name, IConfigurationSource configurationSource) +59
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.AssemblerBasedCustomFactory `2.Create(IBuilderContext
context, String name, IConfigurationSource configurationSource,
ConfigurationReflectionCache reflectionCache) +51
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.AssemblerBasedCustomFactory `2.CreateObject(IBuilderContext
context, String name, IConfigurationSource configurationSource,
ConfigurationReflectionCache reflectionCache) +16
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.ConfiguredObjectStrategy.Bu ildUp(IBuilderContext
context, Type t, Object existing, String id) +71
Microsoft.Practices.ObjectBuilder.BuilderStrategy. BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild) +93
Microsoft.Practices.ObjectBuilder.SingletonStrateg y.BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild) +235
Microsoft.Practices.ObjectBuilder.BuilderStrategy. BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild) +93
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.ConfigurationNameMappingStr ategy.BuildUp(IBuilderContext
context, Type t, Object existing, String id) +88
Microsoft.Practices.ObjectBuilder.BuilderBase`1.Do BuildUp(IReadWriteLocator
locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
transientPolicies) +339
Microsoft.Practices.ObjectBuilder.BuilderBase`1.Bu ildUp(IReadWriteLocator
locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
transientPolicies) +194
Microsoft.Practices.ObjectBuilder.BuilderBase`1.Bu ildUp(IReadWriteLocator
locator, String idToBuild, Object existing, PolicyList[] transientPolicies)
+111
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.EnterpriseLibraryFactory.Bu ildUp(IReadWriteLocator
locator, String id, IConfigurationSource configurationSource) +170
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.EnterpriseLibraryFactory.Bu ildUp(String
id, IConfigurationSource configurationSource) +64
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.NameTypeFactoryBase`1.Creat e(String
name) +52
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.Cryptographer.EncryptSymmetric(String
symmetricInstance, Byte[] plaintext) +236
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.Cryptographer.EncryptSymmetric(String
symmetricInstance, String plaintext) +161
[ Additional lines omitted... ]

My web.config contains the following (relevant) sections:
<configuration>

<configSections>

<section name="securityCryptographyConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Securi ty.Cryptography.Configuration.CryptographySettings ,
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58d6fbf09c89f721" />

</configSections>

<securityCryptographyConfiguration>

<symmetricCryptoProviders>

<add algorithmType="System.Security.Cryptography.Rijnda elManaged, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

protectedKeyFilename="C:\webstore.key"

protectedKeyProtectionScope="LocalMachine"
type="Microsoft.Practices.EnterpriseLibrary.Securi ty.Cryptography.SymmetricAlgorithmProvider,
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=58d6fbf09c89f721"

name="RijndaelManaged" />

</symmetricCryptoProviders>

</securityCryptographyConfiguration>

</configuration>
Sep 20 '06 #1
1 6397
Hello Jess,

Regarding on this issue, I've also seen your another duplicated thread in
the microsoft.public.dotnet.distributed_apps newsgroup. I've posted some
suggestion here. Please feel free to followup there if you have any further
questions or finding.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike Chamberlain | last post by:
Hi all. I'm trying to extend the Microsoft Enterprise Library Data Access Application Block (http://msdn.microsoft.com/library/en-us/dnpag2/html/daab.asp?frame=true) to work with a Borland...
0
by: John Ross | last post by:
Enterprise Library - No Touch Deployment: I have used this website and I cannot get to it. http://blog.hishambaz.com/archive/2005/01/29/194.aspx Invalid section name. The section...
0
by: Johannes H?drich | last post by:
Hello folks, i've got a tough problem with configuration the CMAB in my asp.net application. Following scenario is given: root directory (ASP.NET Application) |- web.config (access from CMAB...
0
by: gencode | last post by:
Tryin to use the Enterprise Library in ASP.NET 2.0 I keep getting Error Parsing Application configuration file at line 10. Type...
8
by: Mihai Velicu | last post by:
Hi ! I created a class library and in it I have a class that call "ConfigurationManager" to find out what type of database I work and the connection string.When I call this class from a form,...
6
by: WT | last post by:
Hello, Using VS2005. I have an assembly library that can be called from a Web site asp.net application or from a winform application. From this library I need to retrieve a path using simply a...
0
by: =?Utf-8?B?YW5rMmdv?= | last post by:
Hi, Thanks in advance for reading this. Not sure where to post this question, but I hope someone in here can help. Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library...
0
by: =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post by:
Hi, I have previously used EL v 3.1 Exception Handling application block successfully. I thought I would now try to do the same with EL v 4.0. My first experiment was to replace an exception....
0
by: devendran | last post by:
Hi there, I am new to Enterprise Library. When I am trying to pull data form database by using the method Execute Dataset I am getting the following error message. "Invalid section name. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.