473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP.NET 2.0 Membership & Roles Login Problem

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
Jul 10 '07 #1
6 2031
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!
************************************************
"yodakt" <de******@gmail.comwrote in message
news:23**********************************@microsof t.com...
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

Jul 10 '07 #2
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

"Cowboy (Gregory A. Beamer)" wrote:
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!
************************************************
"yodakt" <de******@gmail.comwrote in message
news:23**********************************@microsof t.com...
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


Jul 10 '07 #3
On Jul 10, 12:30 pm, yodakt <dev1o...@gmail.comwrote:
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

"Cowboy (Gregory A. Beamer)" wrote:
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!
************************************************
"yodakt" <dev1o...@gmail.comwrote in message
news:23**********************************@microsof t.com...
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- Hide quoted text -

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

Jul 10 '07 #4
cookies and proxy was the issue.

Thanks for all the help guys.

KT

"lwhitb1" wrote:
On Jul 10, 12:30 pm, yodakt <dev1o...@gmail.comwrote:
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

"Cowboy (Gregory A. Beamer)" wrote:
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!
************************************************
"yodakt" <dev1o...@gmail.comwrote in message
>news:23**********************************@microso ft.com...
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- Hide quoted text -
- 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"

Jul 10 '07 #5
rad
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é
Jul 12 '07 #6
rad
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é
Jul 12 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jack | last post by:
Hello, I need some help in getting my simple web app to work. I can't seem to get the configuration of the Membership/Roles working by pointing my website to a SQL 2005 database as opposed to...
6
by: Scatir | last post by:
Hi, I have a membership problem I couldn't resolve. I have set up membership as most of tutorial instructed, and I am able to log on, but cannot stay log on for some reason. ex: when I log on, the...
5
by: JP.Gantlin | last post by:
I want to have a login page where the new user self-registers, giving some simple info like Real Estate Agent #. Do I need to used the membershiop/roles thing, or profiles? Are profiles part...
0
by: Jaez | last post by:
As a user with not much experience of VS2005 I am having trouble with the membership and roles features. I am running VS2005 and have my website with an ISP who provides MS SQL2005 on another...
3
by: Michael Lang | last post by:
Hi there, I have a web application that works fine on my local dev machine. However I'm having less success on my hosting environment. When I detach the database for this site, copy it to my...
4
by: alexandis | last post by:
There are tons of articles about custom role and provider membership, but they just tear me apart and confuse :( The situation is following: I use DB2, so I wrote custom role + membership...
1
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the...
2
by: DanWeaver | last post by:
I am trying to use a MySQL db hosted on a shared server as an ASP.NET Membership Provider and .net framework 3.5 (visual studio 2008) I am new to a lot of this and have found the following websites...
3
by: dm3281 | last post by:
Hello -- I need to write an ASP.NET 2.0 application for our clients to use to login and verify file transmissions. Each client will need their own logon, in addition to a way to assign each...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.