Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 December 14th, 2008, 08:03 PM
Authorized User
 
Join Date: Dec 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login failed

Hi

I have created a website using Login pages.
Everything works fine. I have created an Administrators role and added a user to that role.
I can log in to the site ok.

I have deployed the site to my local machine running IIS but when I try logging in to the site
I get 'Your login was not successful please try again.' Does anyone know why this works
in Visual Web Developer but not under IIS?

Many Thanx

Andy
 
Old December 15th, 2008, 03:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What was the Virtual Path proeprty of your web site project in VWD? Was it / or a project name? Maybe it was something like /WebSite1 in VWD and now you're running a root based site on IIS? That would create a second application within the database (one for /Webite1 and one for /) with the user mismatch as a result.

And did you create the users after you have deployed the site?

Also, check your permissions. Make sure that IIS is allowed to write to the App_Data folder.

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 December 15th, 2008, 04:09 PM
Authorized User
 
Join Date: Dec 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx Imar

I changed the permissions on App_Data folder and it worked

Thanx again

Andy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting 'Login failed for user ' Squeakrz44 VB.NET 2002/2003 Basics 0 November 18th, 2006 06:09 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM





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