473,769 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_membersh ip 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 2045
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******** *************** ***********@mic rosoft.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_membersh ip 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 "autenticat ion 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******** *************** ***********@mic rosoft.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_membersh ip 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 "autenticat ion 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******** *************** ***********@mic rosoft.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_membersh ip 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.

DestinationPage Url="~/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 "autenticat ion 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******* *************** ************@mi crosoft.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_membersh ip 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.

DestinationPage Url="~/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
1008
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 the default App_Data\ASPNETDB.MDF file. I've got two boxes, one with XP & VS2005 and the other is windows 2003 with IIS 6.0, ASP.NET 2.0 & SQL Server 2005 (Not SQL 2005 Express). My app simply has one user called 'administrator' assigned with...
6
1898
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 log in become log on, but when I access the protected page, it still prompt me for log in. Please help! I am using SQL to store the membership, the code in web.config is as follow, <roleManager enabled="true"/>
5
1666
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 of the membership thing, or how are they tied together? Thanks
0
1146
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 server I already have many pages and sql tables but now want to add a new section which has membership & roles I started a new database and used aspnet_regsql.exe to make the tables
3
2018
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 hosting environment and attach it through their interface, I can connect to the database in my hosting environment through the SQL Management studio, see all stored procs, functions, tables, and the data in the tables I had entered on my local dev...
4
8237
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 providers. Membership provider seems to work. I use forms authentication, so as articles say, I need to do some magic to be able to get roles for current user, because microsoft mechanism works only for windows authentication...
1
3015
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 Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and...
2
2435
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 which offer some degree of help but by no means a complete solution or uncomplicated explanation of whats involved: 1) http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-role-provider/194 Very good but not complete enough for...
3
1788
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 user a unique customerid. All users beloning to the same custeromid would see the same information on the website. Can I easily do this using membership services or must I use a combination of membership services and profiles?
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.