Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2006, 07:19 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASPNETDB

Hi Imar,
Its a nice approach that you came up with this book.
I am able to configure these sample projects for
SQL2005 Enterprise Edition rather than SQLExpress as given.

Here is a small confusion that, Is multiple ASPNETDB databases (configuration databases for each application) would be there when multiple web applications hosted on single machine - (assume that all applications' databases hosted on single sqlserver)

I tried opening Web Site Administration Tool for two of hosted sites on my machine, shows common users, roles. and I found single entry for aspnet_Applications table In SQL server.

please advice me ..

 thanks in advance




 
Old October 25th, 2006, 12:05 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi sanindia,

I am not sure I understand what you're asking.

If you have multiple web sites that share the same ASPNETDB database, each application will have its own *record* in the aspnet_Applications table. So, you'll only see a single table, but with multiple records.
Each user / Membership user is then linked to a single application based on the ApplicationId which is the primary key of the aspnet_Applications table.

Does this help?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old October 27th, 2006, 02:03 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply.

I got the exact answer.
The only doubt about, how the runtime will make an entry in aspnet_Application table for a newly hosted application on the server, when we host multiple applications? what is the process to do this?

For example, I have Two applications. hosted on my machine.
Both are Internet based application using Forms authentication.
So, I should have two entries in my appnet_Applications tables.
But It shows only one entry that is related to first configured application.
when I open Web Admin Tool for the second application. still it shows same users & roles that were configured for first application.

please help me in this.

--SAN

 
Old October 27th, 2006, 05:56 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The application name is determined by the applicationName attribute on a provider element in the web.config.

Take a look here for more info: http://msdn2.microsoft.com/en-us/library/ms164654.aspx

So, if you give two apps two different application names, they'll end up as two records in the aspnet_Application table.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about ASPNETDB.MDF frankym BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 October 3rd, 2008 11:26 AM
Get password value from aspnetdb.mdf rsearing ASP.NET 2.0 Basics 8 October 12th, 2007 09:12 AM
ASPNETDB.MDF Changing motemape BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 27th, 2007 06:14 AM
aspnetdb.mdf Jackxxx ASP.NET 2.0 Basics 0 January 9th, 2007 01:37 PM
Delete user from ASPNETDB.mdf rsearing ASP.NET 2.0 Basics 2 January 7th, 2007 05:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.