ASP.NET Membership: Where are the Roles Stored?

I

ijoxley

Hi

I'm in the middle of implementing ASP.NET membership and role-based
authentication using the new ASP.NET 2.0 Membership and Roles
classes/database and was stuck on the following:

When using the Security Setup Wizard to add rules for directory access
based on the roles I have created, where do these rules get stored?

I had assumed that this was being written to the application's
web.config file, but this does not seem to be the case. I have also
checked in the tables created by running aspnet_regsql.exe on my
application's database but could not find any trace of these rules
being written there either.

The worry is that, seeing as the application is currently on a testing
server, when I need to copy the application to its live server I have
to manually create all the rules/roles again rather than just being
able to copy the information over.

Thanks

Ian
 
I

ijoxley

Duh, just found out the answer to this myself: each subdirectory that a
rule was applied to now has its own web.config.

Apologies if I've wasted anyone else's time but my own.
 
J

Jan Hyde

(e-mail address removed)'s wild thoughts were released on 28 Apr
2006 00:42:50 -0700 bearing the following fruit:
Duh, just found out the answer to this myself: each subdirectory that a
rule was applied to now has its own web.config.

Apologies if I've wasted anyone else's time but my own.

Don't feel too bad, you posted a question *and* the answer
to that question, which will be very much appreciated by
anyone searching the archives later on.



Jan Hyde (VB MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top