Skip to content
April 3, 2008 / kiranpatils

An error occurred creating the configuration section handler for cachingConfiguration

Server Error in ‘/DevelopmentWebsite’ Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred creating the configuration section handler for cachingConfiguration: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Line 139:        </authorizationProviders>
Line 140:    </securityConfiguration>
Line 141:    <cachingConfiguration defaultCacheManager=”Cache Manager”>
Line 142:        <cacheManagers>
Line 143:            <add expirationPollFrequencyInSeconds=”2000″ maximumElementsInCacheBeforeScavenging=”1000″ numberToRemoveWhenScavenging=”10″ backingStoreName

If you are also facing same error as above…then i have its solution. Here it is

Solution:

Just open your web.config file and locate <cachingConfiguration> under it <backingStores>

under it you will have <add   encryptionProviderName

this tag has attribute type here you will find

type=”Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null” name=”Null Storage”/>

have you seen this publicKeyToken is null..so how can it work..yes this is the solution.

so just add publicKeyToken value to assembly’s Token…so you will have now

<add encryptionProviderName=”” type=”Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” name=”Null Storage”/>

Error is resolved..

Why this problem? 

I am not going to repeat its reason for problem. pls have a look at it from here:

http://blogs.msdn.com/echarran/archive/2006/07/13/665005.aspx 

Thanks a lot to this guy [if your error goes out then pls say thanks to echarran].

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: