ASP.NET 2.0 Membership & Roles Login Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having issues with logging into my application after moving it from the
development server to the live IIS server.

Things I've already done:
1) I made sure that I have applicationName set as stated in your post. If I
use a username and password of someone within my aspnet_Users table, I don't
get the message that "Your login attempt was not successful. Please try
again." I get redirect back to the login page without any messages, etc.
I view the application log and I do not get any errors when trying to log in.

2) I added the <clear/> element and I still get the same problem.

3) If I look in the table aspnet_membership table, the column LastLoginDate
shows the date and time of my login attempt which means that it was form
authenticated, it just not sending me to destination page after a login.
Since it is showing that I'm logged in and that explains why it's not giving
me the message "Your login attempt was not successful. Please try again."

Any help you could provide would really help me.

Thanks in advance
KT
 
Have you written any custom code around the login? If so, you might be
altering the normal path. Also, are you going to a page where you are in a
role allowed to hit that page? Either of these will cause an issue.

The final thing to check is the autentication methods allowed on the IIS
directory. It is a long shot, but it can cause problems.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
 
No, no custom code...just the standard login control.

Yes, the user that I'm loggin in with is part of a group called "Admin" and
that user has access to that page via the locations settings in the
web.config file.

Greg, if you could please elaborate on "autentication methods allowed on the
IIS"? I currently have forms authentication set.

Thanks
KT
 
No, no custom code...just the standard login control.

Yes, the user that I'm loggin in with is part of a group called "Admin" and
that user has access to that page via the locations settings in the
web.config file.

Greg, if you could please elaborate on "autentication methods allowed on the
IIS"? I currently have forms authentication set.

Thanks
KT

:







- Show quoted text -

Have you double checked your Destination Page Url in the Client side ?
Perhaps when you moved everything overe to IIS, you did not add that
page.

DestinationPageUrl="~/YourPage.aspx"
 
Hi

I'm having the same problem, could you be more spesific about how you solved the problem?

Cookies abd proxy what changes did you make?

Regards

René
 
Hi

I'm having the same problem, could you be more spesific about how you solved the problem?

Cookies abd proxy what changes did you make?

Regards

René
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top