473,497 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

login page stays on login page

I am trying to publish an application to a server that I do not have desktop
access to because of our hosting environment. I publish to a file share.
The WEB site has been configured by the hosts personnel.

When I deploy to my localhost or dev server everything work like it should,
Entering a valid user name and password redirectos me to the appropriate
page. When I publish to the staging server and try to login, the login page
just redisplays itself when I try to log in with valid credentials. If I
login with incorrect credentails, I get the invalid credentials message,
which leads me to believe that I am accesses the DB ok.

The loginpage.cs has no code in it and the aspx code looks like:

<asp:Login ID="EdbLogin" runat="server" SkinID="LoginView"
DisplayRememberMe="False"
Style="text-align: left" OnLoggedIn="EdbLogin_LoggedIn"
DestinationPageUrl="~/norole.aspx">
</asp:Login>

The norole.aspx page has logic to redirect the application based on the
user's role.

I have tried to replicate the problem on one of the servers that I have
access to and have not been able to replicate the error.

Does someone know if this is a configuration issue and what I might be able
to tell the host personnel to fix this?

Thanks Shannon
Jan 9 '08 #1
2 2279
Hi:
The symptoms you suggest lead me to believe that you are probably running
into a cookies issue (browser security? domain misconfiguration on your
production server), due to environmental setup.

The way to confirm would be to use a HTTP sniffer like
http://www.iewatch.com or if you are using Firefox
https://addons.mozilla.org/en-US/firefox/addon/3829 to examine the http
traffic between your browser and your web server.

It seems your web server is redirecting your browser back to the web page
(even on successful login). If that is true you should see the HTTP status
302 response from your webserver. In that request examine which page is
issuing the 302. In addition examine the response headers and verify that
you are indeed receiving the ASP.NET forms authentication cookie on
successful authentication from the webserver. In addition confirm that the
cookie is round-tripping properly between the web server and the browser by
examining the request and response headers for subsequent requests.

My gut is that this has nothing to do with the login control flag(s).
Even if I'm wrong on that, examining and comparing the HTTP headers between
your production and dev environment is likely to give you insights into the
root cause of the problem.

Cheers,
-Naraen
http://naraen.spaces.live.com

"Shannon" <Sh*****@discussions.microsoft.comwrote in message
news:35**********************************@microsof t.com...
>I am trying to publish an application to a server that I do not have
desktop
access to because of our hosting environment. I publish to a file share.
The WEB site has been configured by the hosts personnel.

When I deploy to my localhost or dev server everything work like it
should,
Entering a valid user name and password redirectos me to the appropriate
page. When I publish to the staging server and try to login, the login
page
just redisplays itself when I try to log in with valid credentials. If I
login with incorrect credentails, I get the invalid credentials message,
which leads me to believe that I am accesses the DB ok.

The loginpage.cs has no code in it and the aspx code looks like:

<asp:Login ID="EdbLogin" runat="server" SkinID="LoginView"
DisplayRememberMe="False"
Style="text-align: left" OnLoggedIn="EdbLogin_LoggedIn"
DestinationPageUrl="~/norole.aspx">
</asp:Login>

The norole.aspx page has logic to redirect the application based on the
user's role.

I have tried to replicate the problem on one of the servers that I have
access to and have not been able to replicate the error.

Does someone know if this is a configuration issue and what I might be
able
to tell the host personnel to fix this?

Thanks Shannon

Jan 9 '08 #2
Thank you for your reply.

When I talked about your reply to someone at the hosting site, they
remebered the there is a Helcion ISAPI filter that is rewriting the URL. I
have some research to do to find out what that means.

They set up a site that does not use that filter and it works perfectly!

Thanks Again.

"Naraendirakumar R.R." wrote:
Hi:
The symptoms you suggest lead me to believe that you are probably running
into a cookies issue (browser security? domain misconfiguration on your
production server), due to environmental setup.

The way to confirm would be to use a HTTP sniffer like
http://www.iewatch.com or if you are using Firefox
https://addons.mozilla.org/en-US/firefox/addon/3829 to examine the http
traffic between your browser and your web server.

It seems your web server is redirecting your browser back to the web page
(even on successful login). If that is true you should see the HTTP status
302 response from your webserver. In that request examine which page is
issuing the 302. In addition examine the response headers and verify that
you are indeed receiving the ASP.NET forms authentication cookie on
successful authentication from the webserver. In addition confirm that the
cookie is round-tripping properly between the web server and the browser by
examining the request and response headers for subsequent requests.

My gut is that this has nothing to do with the login control flag(s).
Even if I'm wrong on that, examining and comparing the HTTP headers between
your production and dev environment is likely to give you insights into the
root cause of the problem.

Cheers,
-Naraen
http://naraen.spaces.live.com

"Shannon" <Sh*****@discussions.microsoft.comwrote in message
news:35**********************************@microsof t.com...
I am trying to publish an application to a server that I do not have
desktop
access to because of our hosting environment. I publish to a file share.
The WEB site has been configured by the hosts personnel.

When I deploy to my localhost or dev server everything work like it
should,
Entering a valid user name and password redirectos me to the appropriate
page. When I publish to the staging server and try to login, the login
page
just redisplays itself when I try to log in with valid credentials. If I
login with incorrect credentails, I get the invalid credentials message,
which leads me to believe that I am accesses the DB ok.

The loginpage.cs has no code in it and the aspx code looks like:

<asp:Login ID="EdbLogin" runat="server" SkinID="LoginView"
DisplayRememberMe="False"
Style="text-align: left" OnLoggedIn="EdbLogin_LoggedIn"
DestinationPageUrl="~/norole.aspx">
</asp:Login>

The norole.aspx page has logic to redirect the application based on the
user's role.

I have tried to replicate the problem on one of the servers that I have
access to and have not been able to replicate the error.

Does someone know if this is a configuration issue and what I might be
able
to tell the host personnel to fix this?

Thanks Shannon


Jan 9 '08 #3

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

Similar topics

4
5607
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no...
1
1105
by: spshaffer | last post by:
I have the Community Starter Kit loaded on my workstation (XP Pro). When I login as Admin and Admin, I get the Admin menu item to appear in the menu bar and everthing works great. I also know...
12
2389
by: urs | last post by:
Hi, please look at the ASP.NET 2 site http://www.prismatest.ch/catalog/EM.ASPX (user=prismashop, password=minicooper). Use the ">" Button to go to the next pages. You will notice that the page...
3
3855
by: Bob | last post by:
I haver a user login form (winforms app using vs2005 in VB.NET). After succesfull validayion of user I want to open a first form and close the loging form that was used, If I write If...
6
3317
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
2
4509
by: antonyliu2002 | last post by:
I am testing ASP.NET 2.0 Forms athentication with user credentials in SQL Server 2005. I don't want to put user credentials in web.config, so the credentials section is commented out. The...
4
2662
by: saint999 | last post by:
Desperately need help. We are using a .Net AJAX control panel and having an issue with when a user times out of our Authenication platform. If a user stays on the screen with no activity for 15mins...
4
3487
by: adam.dmsk | last post by:
Hello, I have Login.aspx page with Login control. I found that "Remember me" checkbox does not work. I found that probably this is not matter of timeout attribute in web.config, becouse when...
3
2469
by: srikanthrsb | last post by:
Hi, Currently we are facing a unique issue w.r.t Motorola Devices.We are having a WAP Email application,which we are able to login from Openwave and other browsers in various devices like...
0
7120
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
7196
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...
1
6878
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...
0
5456
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,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
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 ...
1
649
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.