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



Hi;

I think you may have misunderstood me - I didn't mean I was creating a
singleton - I think that SqlRoleProvider may do that itself.

I tried wrapping it in my own RoleProvider class but still have the same
problem - the SqlRoleProvider class keeps trying to access the first
connection string I put in the config file no matter how many times I change
it and refresh it.

Can you ask the dev team how we are supposed to do this? There must be a way
to create that first user outside of ASP.NET because how can a user log in to
create the first user?

And if the user selects the wrong database the first time, we must have a
way to change 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,

Do you mean create a singleton RoleProvider? It will still load the
original value of connection string and didn't use the updated one. I think
you may consider create your customized RoleProvider and override the
Initialize() method. For example. like this:

http://msdn2.microsoft.com/en-us/library/317sza4k.aspx


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: accessing membership DB from windows (not ASP) app
    ... implement my own role provider - I need to use the existing SqlRoleProvider. ... We may change code here to set the connection we want. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: accessing membership DB from windows (not ASP) app
    ... The source of SqlRoleProvider is not shared, but we can get some idea from ... I think you may create the customized RoleProvider by inheirting from ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • I encounter the same error, but my data does not have the benefit of record tags.
    ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ... I am having trouble creating one input flat file. ...
    (microsoft.public.biztalk.general)
  • Re: System Error (1003) - 0x000000CB
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... A call to Microsoft Support seems appropriate. ... Computer: TERMSERVER1 ...
    (microsoft.public.windows.terminal_services)
  • Re: How do I Sleep for a specified amount of time and relinquish c
    ... Finally, the Windows thread scheduling is not a trivial topic, it is ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)

Loading