 |
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
|
|
|
|
|

February 22nd, 2007, 08:36 PM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Trouble using the login control
I am having trouble logging in to the admin sections of the CMS and Photo gallery sites.
I am a little new to exploring .NET 2005 so I am not sure if I am supposed to be doing additional setup for the Login control.
I am using Administrator and Admin123# as the login for the CMS for example but I still get the incorrect login message. I tried setting up other users too using Website admin but still no use.
Can somebody please explain this?
Thanks!
|
|

February 23rd, 2007, 11:21 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for the reply. But my original problem/doubt still exists. It may be a very minor issue but I am not able to resolve it.
I am trying to run the websites on my computer using the http://localhost/ url. The website runs fine as long as I am just looking at the non secure pages. When I try to login though, it doesnt accept the password even if it is correct.
On the other hand, if I open the website in Visual Studio and run it using F5, the login functionality works perfectly (This worked for the Album, CMS gave me 40 errors though)
If you could explain me why this is happening, that would be great.
Thanks!
|
|

February 23rd, 2007, 01:02 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
But did you install the latest database and update the web.config? How does that file look like now?
You could also try to run the Website Administration tool to make sure you have valid accounts and that they are assigned to valid roles.
If you can't get it tow rok, can you post the content of the following tables:
aspnet_Roles
aspnet_UsersInRoles
aspnet_Applications
aspnet_Users
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.
|
|

February 24th, 2007, 06:01 PM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, I installed the latest database and web.config. It still gives me the same problem. I am pretty sure, I have not setup the website with proper permissions.
Could you please give me a list of things i need to do from start to finish to setup the site?
Also, when I right click on the folders, I dont see the list of users and permissions. How do I get that or is there any other way to set permissions? I am trying to set Read/Write permissions to the ASPNET user.
I greatly appreciate any input you can give me?
|
|

February 24th, 2007, 08:23 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
First of all, check the Website Administration Tool (choose ASP.NET Configuration from the website menu in Visual Studio). What roles and users do you see there? If you don't see any, try adding at least an Administrator role with one user in it. Can you log in with that account?
To get the Security tab, check this: http://www.spaanjaars.com/QuickDocId.aspx?QUICKDOC=286
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.
|
|

February 25th, 2007, 01:44 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I do see the Administrator user and the role is set to Administrator.
Here's the list of the tables and the info in them. I added the | symbols to separate each of the columns.
aspnet_Roles
36f1fa4b-67c9-4e7c-972a-1348e86daa8a| 8e47dc67-6022-44d8-92d2-e6156ee06da7| Administrator| administrator| NULL
aspnet_UsersInRoles
4561d18f-492b-48dc-b0ae-36d6e38b404b| 8e47dc67-6022-44d8-92d2-e6156ee06da7
aspnet_Applications
/| /| 36f1fa4b-67c9-4e7c-972a-1348e86daa8a| NULL
aspnet_Users
36f1fa4b-67c9-4e7c-972a-1348e86daa8a| 4561d18f-492b-48dc-b0ae-36d6e38b404b| Administrator| administrator| NULL| False| 2/25/2007 5:35:09 AM
Does everything look correct?
|
|

February 25th, 2007, 07:47 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
OK, let's try something else to see if you system is OK.
Create a brand new site, add a Login control, view the page in the browser and try to log in. Do you get the red error message saying you can't log in? If that's the case, ASP.NET 2 and SQL Server Express 2005 appear to be OK.
You say you're browsing to it as http://localhost/ How did it get there? I mean, how did you set up the site in IIS?
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.
|
|

February 25th, 2007, 11:28 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, the same thing happens when I create it from scratch. I get the red error message.
As for the localhost thing, I copied the website to my IIS root directory and created a virtual directory there. This is the folder where I store all my websites. I did not do any additional setup for the database though, I presumed it was already connected.
|
|

February 25th, 2007, 11:50 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
quote: and created a virtual directory there
|
Does that mean you browse to the site like http://localhost/Cms for example?
If that's the case, try changing the home folder for your website under IIS to the folder where the CMS resides. E.g. have the webroot point to c:\inetpub\wwwroot\Cms for example, and then browse to http://localhost/ (without any folder / application information).
Does that work?
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.
|
|
 |