RE: accessing membership DB from windows (not ASP) app
- From: David Thielen <thielen@xxxxxxxxxxxxx>
- Date: Wed, 3 Jan 2007 22:43:01 -0800
Is the source to SqlRoleProvider available? The problem appears to be in:
internal static RuntimeConfig GetAppConfig()
{
if (!HttpConfigurationSystem.UseHttpConfigurationSystem)
{
return RuntimeConfig.GetClientRuntimeConfig();
}
return CachedPathData.GetApplicationPathData().RuntimeConfig;
}
After the first request it gets the cached config. How can I have it re-read
it?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Luke Zhang [MSFT]" wrote:
Hello Dave,.
Can you let us know how you implement the customized roleprovider? In fact,
in roleprovider's Initialize method, we can set how it load the connection
string:
public override void Initialize(string name, NameValueCollection config)
{
....
pConnectionStringSettings =
ConfigurationManager.ConnectionStrings[config["connectionStringName"]];
if (pConnectionStringSettings == null ||
pConnectionStringSettings.ConnectionString.Trim() == "")
{
throw new ProviderException("Connection string cannot be blank.");
}
connectionString = pConnectionStringSettings.ConnectionString;
}
From http://msdn2.microsoft.com/en-us/library/317sza4k.aspx
We may change code here to set the connection we want.
Sincerely,
Luke Zhang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: accessing membership DB from windows (not ASP) app
- From: Luke Zhang [MSFT]
- RE: accessing membership DB from windows (not ASP) app
- References:
- accessing membership DB from windows (not ASP) app
- From: David Thielen
- RE: accessing membership DB from windows (not ASP) app
- From: Luke Zhang [MSFT]
- RE: accessing membership DB from windows (not ASP) app
- From: Luke Zhang [MSFT]
- RE: accessing membership DB from windows (not ASP) app
- From: David Thielen
- RE: accessing membership DB from windows (not ASP) app
- From: Luke Zhang [MSFT]
- accessing membership DB from windows (not ASP) app
- Prev by Date: Re: Windows Auth Problem
- Next by Date: Re: How to capture network login using ASP.NET
- Previous by thread: RE: accessing membership DB from windows (not ASP) app
- Next by thread: RE: accessing membership DB from windows (not ASP) app
- Index(es):
Relevant Pages
|