By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,062 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,062 IT Pros & Developers. It's quick & easy.

Implementing App.Config in Microsoft Application Blocks

P: n/a
Problem Scenario:

I have copied the Microsoft Cache Application Block (MCAB) dll to GAC to make that available to other applications. The MCAB uses few configuration settings which will be set in the client application App.config file. Basically the MCAB makes use of App.Config which exists in referenced application. As i have put MCAB dll in GAC it throws an error like this

Exception Type: System.Configuration.ConfigurationException
Message: Could not create Microsoft.ApplicationBlocks.Cache.CacheConfigurati onHandler,Microsoft.ApplicationBlocks.Cache
BareMessage: Could not create Microsoft.ApplicationBlocks.Cache.CacheConfigurati onHandler,Microsoft.ApplicationBlocks.Cache
Filename: NULL
Line: 0
TargetSite: System.Configuration.IConfigurationSectionHandler GetFactory(System.String)
HelpLink: NULL
Source: System

But when i put the MCAB dll as private to the referenced application it works. I guess this client application is not able to create instance of MCAB class when it MCAB in GAC.

Please correct me if i am wrong. Do respond ASAP.

Thanks,
Manikandan S

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.