Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 February 12th, 2007, 03:14 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:Following your first link 287, I don't see any security tab on the folder when I right-click.
Article 290 links to another article: Why Don't I See a Security Tab on the Properties dialog for My Files and Folders in Windows XP?
Quote:
quote:Can we just do this offline?
Why?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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 February 12th, 2007, 10:23 PM
Authorized User
 
Join Date: Feb 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,
I was able to do above steps/instructions you gave me. Still I'm getting same error.

Also, I notice when I close Visual Studio and come back again, aspnetdb.mdf and wroxunited.mdf are not connected anymore. So I have to connect them again.

I don't know what I missed.






 
Old February 13th, 2007, 04:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Are you still getting the same error about the "user instance login flag not being supported on this version of SQL Server"?

The error message seems to suggest you're having problems with the Profile features that also uses a database. Did you reconfigure settings for Profile in web.config as well?

If that's not the case, then I don't know why you get this error....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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 February 13th, 2007, 04:55 PM
Authorized User
 
Join Date: Feb 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, that's what I said on my previous post.

What do you mean "reconfigure settings"?

 
Old February 13th, 2007, 05:08 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, I know you said that. However, a lot can change between posts and I don't feel like hunting a problem that doesn't exist anymore... ;)

Profiles in ASP.NET 2 by default use a local SQL Server Express database called aspnetdb.mdf. This database is generated automatically in App_Data if it isn't there.

However, it's possible to redirect the Profile feature to a different database using the <providers> setting under the <profile> element in web.config. If you have that element, take a look at the connectionString name attribute. Does it point to your database?

And for what accounts did you configure security for the App_Data folder?

If the element isn't there. move the aspnetdb.mdf away from App_Data and rerun the site that generates this error. Do you get a new database in App_Data?

You may also want to try clearing the entire c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\ folder and then recompile the application. Maybe you're looking at old stuff.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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 February 13th, 2007, 05:35 PM
Authorized User
 
Join Date: Feb 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all. I want to thank for your help and patience. The reason I asked you before if we can do this offline was because I'm running out of patience. I already lost one weekend productivity. I'm thinking leaving this behind and move forward to something else. But I cannot go on if I have something unfinished work. I don't have peace.

I will try again your suggestion. I'm thinking may be this is a VS bug.

 
Old February 13th, 2007, 05:42 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, I see your point. Unfortunately, I don't have the time to fully guide you through this off-line. I can try to help you here, and that's all I can do. Sorry. I think you can call Microsoft and pay for incident support.

I doubt it's a VS bug. The thing with SQL Server Express is exactly as someone else on this forum recently said: it's meant to work out of the box without any problems. 9 out of 10 times, it does. However, since it's a black box, it's really hard to diagnose what is going on when things *don't* work as expected.

Here's one more thing you can try:

1. Choose File | New Web site to create an entirely new web site

2. On Default.aspx, drag a Login control

3. Hit F5 to view the page in the browser.

4. Login with a fake name and password

Do you get a nice message saying you can't log in? And do you have a database in App_Data called asnnetdb.mdf? If so, SQL and your machine are setup fine and something else is messed up....

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Justic Is Might by Sonic Youth (Track 7 from the album: Bad Moon Rising) What's This?
 
Old February 15th, 2007, 09:57 PM
Authorized User
 
Join Date: Feb 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

I followed above posting.

1. I got the same error "user instance login".

2. There's no aspnetdb.mdf in app_data.

This is very weird

 
Old February 16th, 2007, 12:13 AM
Authorized User
 
Join Date: Feb 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried aspnet_regsql.exe. It doesn't create the aspnetdb.mdf

 
Old February 16th, 2007, 02:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, I don't think you have a valid instance of SQL Server Express installed and / or up and running.

I would look into that first...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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
Learn Professional ASP.NET using VS2005 Express glam ASP.NET 2.0 Professional 0 December 1st, 2005 06:19 PM
Can'T find code to Beginning Asp.net using VB.NET darruler All Other Wrox Books 1 August 12th, 2004 05:04 PM
Help 'beginning asp.net using vb.net' source code jkmf Wrox Book Feedback 1 January 18th, 2004 08:09 AM
Beginning ASP.Net Databases Using VB.Net ISBN 6195 tlamazares SQL Server ASP 1 December 15th, 2003 01:28 PM





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