Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 March 11th, 2009, 11:46 AM
Authorized User
 
Join Date: Nov 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 05 CMS: username + pass not working in IIS

I download CMS code and run it on VS 2005
everything ok

but when I copy this website folder and create vitural directory in IIS
I browse this webstite
everything ok but
when I work with login control to login Admin folder, I have a problem
I can't login with that username + password

Your login attempt was not successful. Please try again

please help me
 
Old March 11th, 2009, 04:30 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You find the password on page 135, first paragraph after the heading...

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 12th, 2009, 05:17 AM
Authorized User
 
Join Date: Nov 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no no no no
I knew the password + username
I run This project on VS 2005, it's ok
But when I run with IIS 5.0, login control have a problem
I can't login with that username + password

Your login attempt was not successful. Please try again
 
Old March 12th, 2009, 05:30 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, check out the errata: http://www.wrox.com/WileyCDA/WroxTit...Cd-ERRATA.html

You may run into the problem where the applicationName in web.config is not set. On your local machine it will (likely) to default to something like WroxCms while the production version may default to /. This causes a mismatch between user names.

Also, search this forum for posts by me with the text applicationName, and you'll find more useful results.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 12th, 2009, 06:28 AM
Authorized User
 
Join Date: Nov 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You said copy Update file to fix this problem but I still can not fix
I download the chapter 05 code and update DB + web.config

But I still can not fix
 
Old March 13th, 2009, 04:50 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The fix is for new sites only. Once your database contains an applicationName, it'll use that. Copying the files afterwards doesn't solve the problem in the database.

Look in your production database. Do you see multiple records in the aspnet_Applications database?

Is it an option to start over with a fresh database? A lot easier to do with the right config files. If not, let me know and I'll refer you to some posts that explain this problem in more detail.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!




Similar Threads
Thread Thread Starter Forum Replies Last Post
username and password : IIS gemini_shooter Dreamweaver (all versions) 18 July 16th, 2008 04:45 PM
Username and password for IIS siria-leon ASP.NET 3.5 Basics 1 June 3rd, 2008 08:20 AM
Pass UserName to Database sterreyl ASP.NET 2.0 Basics 0 March 11th, 2007 11:26 AM
Beginning Visual C# Exercises - Chapter 05 seblake C# 1 July 26th, 2004 07:40 AM





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