Re: half rendered page on first load :-( after refreshing everything is fine

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 02/07/04


Date: Sat, 07 Feb 2004 06:41:00 GMT

Hi Daniel,

Thanks for your followup and the further information you provided. Since
you mentioned that the problem occured before user has loged in, I think
the former problem in this issue if probably caused by the page you
manually redirect user to the login page. And I think you've also got it
that it's no need to manually redirect user to login page if you have
implemented the FormsAuthentication and set the "loginUrl". Then if
unathenticated user visit some certain protected pages, he'll be
automatically redirect to the "loginUrl". If you have anything unclear on
using the FormsAuthentication, here is some weblink to the reference and a
simple sample on ASP.NET FormsAuthentication:

#.NET Framework Developer's Guide Simple Forms Authentication
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconsimplecookieauthen
tication.asp?frame=true

#Forms Authentication Provider
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconthecookieauthentic
ationprovider.asp?frame=true

As for the new problem "the form authentication not work after deploying on
the productive server", yes? I think you may first have a check on the
web.config file's "Authentication" block. I notice that you set the
absolute url for the "loginUrl" in your config file as below:
/ATV2004/Account/Login.aspx
Have you adjust it according to the proper path structure on the
productive server or is it possible that the the ASP.NET can't find the
login page correctly? Also, I suggest that you have a check on the
web.config file and compare with the example in the tech article I provide
above.
In addtion, if the suggestoin if not quite suitable, would you please
provide me some further description on how the FormsAuthentication not work
on productive machine?

Please check out the above things. If you feel anything unclear, please
feel free to let me know.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Relevant Pages

  • IIS Basic Authentication/FormsAuthentication - HELP PLS!?
    ... authentication to the request, therefore, allowing users into the secure ... FormsAuthentication with the directory set to Basic Authentication. ... tries to go into the Basic secured directory, I get a browser prompt. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Storing Role And User Id in UserData of FormAuthentication
    ... >> i have a asp.net app that uses formsauthentication, ... >> so i have added that and separated it by a comma, ... >> authentication and session would still be in sync because every time ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Forms Authentication and SSL
    ... You will need to put the full address in the loginUrl attribute. ... Having NTLM or Basic would prompt the user for authentication. ... | for the login page. ... | Kipp Hawley ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Forms Authentication and SSL
    ... Kipp, ... | Subject: Re: Forms Authentication and SSL ... login dialog - we do have Anonymous access set for the site as well as ... Compare this to when the loginUrl is simply the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Storing Role And User Id in UserData of FormAuthentication
    ... > i have a asp.net app that uses formsauthentication, ... > field we store the role value of what the user is (ie admin, user, ... > authentication). ... > just store the "roles" in the user data field, ...
    (microsoft.public.dotnet.framework.aspnet.security)