Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > asp.net 2.0 membership provider and manager- Cont.

Reply
Thread Tools

asp.net 2.0 membership provider and manager- Cont.

 
 
TdarTdar
Guest
Posts: n/a
 
      11-15-2005
Hi [MFST],
I was thinking as you know I cannot seem to get the .NET Web Site
Administration Tool work right, probally something i did. But anyways, It
does work with my visual studio on my non deployed app.

Now I have noticed that when I deploy the app I am having to recreate my
user account because the appID (i think that is what the field name is called
not able to look it up atm) was changed so my users was not authorized for
that application, But if I could sync the appid key with the non deployed app
and the deployed app then when the login stuff connected to the sql server
hosted user tables it would not know the differance.
I could use my same login account for both and i could manage the roles for
both without having to have NET Web Site Administration Tool at all..

Thoughts? Howtos?

Tdar


 
Reply With Quote
 
 
 
 
[MSFT]
Guest
Posts: n/a
 
      11-15-2005
Hello Tdar,

By default, an ASP.NET application will use a database file "ASPNETDB.MDF"
in the folder "app_data" to save information about roles and users. (You
may attach this file in SQL Server 2005 to see its details). For example,
there are two tables in the database: "aspnet_Applications" and
"aspnet_Users". Table "aspnet_Applications" contains the "ApplicationName"
and "ApplicationID"; Table "aspnet_Users" contains "ApplicationID" and
user information.

To deploy an ASP.NET 2.0 project, you can deply the database together so
that you don't need to create users and roles again,

Hope this help,

Luke

 
Reply With Quote
 
 
 
 
TdarTdar
Guest
Posts: n/a
 
      11-15-2005
Is there no other way of doing this I have the tables in a custom database..

Because this is not a project that would be deployed to many places, it is
going to be an ongoing work in progress as part of a companies internal IS
system.



"[MSFT]" wrote:

> Hello Tdar,
>
> By default, an ASP.NET application will use a database file "ASPNETDB.MDF"
> in the folder "app_data" to save information about roles and users. (You
> may attach this file in SQL Server 2005 to see its details). For example,
> there are two tables in the database: "aspnet_Applications" and
> "aspnet_Users". Table "aspnet_Applications" contains the "ApplicationName"
> and "ApplicationID"; Table "aspnet_Users" contains "ApplicationID" and
> user information.
>
> To deploy an ASP.NET 2.0 project, you can deply the database together so
> that you don't need to create users and roles again,
>
> Hope this help,
>
> Luke
>
>

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      11-16-2005
Are there mutilple applications' data in your custom database? If not, you
may export the data from your custom database to an "ASPNETDB.MDF" and
deploy with your application. If the databases were "mixed" in your custom
database, you have to divide them by applicationid.

Luke

 
Reply With Quote
 
TdarTdar
Guest
Posts: n/a
 
      11-16-2005
Well maybe in the future you could make a dev only web.config that you can
set an app id to be the same as the live one. etc. There probally could be
more uses for a dev.web.config file also...

THanks for your help.



"[MSFT]" wrote:

> Are there mutilple applications' data in your custom database? If not, you
> may export the data from your custom database to an "ASPNETDB.MDF" and
> deploy with your application. If the databases were "mixed" in your custom
> database, you have to divide them by applicationid.
>
> Luke
>
>

 
Reply With Quote
 
[MSFT]
Guest
Posts: n/a
 
      11-17-2005
Hello,

We don't need to set applicationid in web.config. It is just a column in
database. You can open the table "aspnet_Applications", and you will see
applicationid is somewhat like an "alias" of your web application's path.
So that we can use a DEV database file in live web site.

Luke

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership or Role Provider // Provider Model // Factories .. How does MS do it? sloan ASP .Net 1 07-03-2007 08:17 PM
Deploying 2.0 app on a Service Provider .. Membership Provider sloan ASP .Net 5 06-03-2006 11:20 PM
debug a custom membership and role provider? =?Utf-8?B?QmVuIFIu?= ASP .Net 5 05-17-2006 12:04 PM
How to create Profile,Membership and Role provider with SQL2000/2005 RedHair ASP .Net 2 02-21-2006 02:03 AM
Remember Me and Forgot Password with Custom Membership Provider paulmac106@gmail.com ASP .Net 0 02-02-2006 10:31 PM



Advertisments