RE: accessing membership DB from windows (not ASP) app



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.




.



Relevant Pages

  • Re: Transaction Error on None-Transaction Query
    ... Create database connection ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Opening a dial-up connection.
    ... Here is a sample about calling InternetDial to build a connection, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: using statment
    ... the connection object will dispose and the connection will be returned ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Error while connecting to SQL 2005 from ASP.Net 2.0
    ... If so, as theerrormessage indicate, theSQLServer2005 currently disallow remote connection to it. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DataTable.Load()
    ... connection opening each time, as the Reader is a firehose cursor. ... as the entire Load() operation should normally be in milliseconds. ... suggestions about how we can improve the support we provide to you. ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.adonet)