very weird display issue

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

Guest

Hi;

Ok, I will be the first to agree that this should be impossible - except we
are able to keep repeating it.

Our login page - which has moderately complex html and uses <LayoutTemplate>
to get the look we want - looks exactly right when running on IIS.

But when I run from VS 2005 using the integrated web server, it looks very
different - background color in a div is gone, it's in the upper left of the
page rather than centered, and more.

How can the display be different? Shouldn't it be the same html & css sent
to the browser? You can see the correct display at
http://beta.windward.net/portal if you are curious.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
Hello Dave,

From your description, your ASP.NET web appliation's login page display
incorrectly when running under VS 2005 test server while works well in
IIS(some UI elements such as images doesn't display ),correct?

Based on my experience, this could be caused by using forms authentication
in ASP.NET application that host in VS 2005/.NET 2.0 test server. Because
in the integrated testserver, all the requested no matter asp.net page or
static resource files like CSS, JPG are processed by ASP.NET runtime.
Therefore, if those static files are in directory which protecte from being
visited by unauthenticated user or require some certain role, it can not be
displayed. Does this fit your case? I assume some of the image display on
the login form is in a directory which will prevent unauthenticated user
according to your authorization setting. This won't be the case when it is
hosted in IIS because IIS will directly serve those static file's requests
instead of let ASP.NET handle them.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks for your reply Dave,

Have you tried explicitly grant <allow user="*" /> for the App_Themes
folder in your ASP.NET application through <location> element in the
web.config (or put a separte web.config file in App_Themes folder to add
the authorization setting). Though it is not necessary for IIS hosted
scenario, it will help avoid the behavior I mentioned when in VS 2005 test
server hosting scenario.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top