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

Configuration block behavior in n-tier application

P: n/a
Hi:
I have an n- tier application where a web app calls a web service to
get/set info. My web app is configured to use the caching, exception
and logging block of the june version of Enterprise library application
blocks. The Web service is configured to use the data access block.
when i make a call from the web app, when execution comes to the line
Dim myDatabase As Database = DatabaseFactory.CreateDatabase()

it takes you to
public static Database CreateDatabase()
{
using(ConfigurationContext context =
ConfigurationManager.GetCurrentContext())
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(context);
return factory.CreateDefaultDatabase();
}
}

the context object's configuration file property points to the web
applications web.config.
How do i specify that the context information should be obtained from
the web service's web.config. I would like to avoid any direct referece
or "hard coding" web service's web.config in my web app's web.config.
any help or explaination is much appreciated.

Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.