473,382 Members | 1,583 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,382 software developers and data experts.

very weird display issue

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
Nov 15 '06 #1
5 1460
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.

Nov 16 '06 #2
Bingo.

Ok in App_Themes\Windward\default.css I have:

body
{
background: url(Images/portal_logo_alum.jpg) repeat-x top right;
}

Where the jpg is in App_Themes\Windward\Images - what is the proper way to
point to theme images in the theme css file?

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

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


"Steven Cheng[MSFT]" wrote:
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.

Nov 16 '06 #3
It's a security issue - for the VS 2005 webserver I have to allow access to
unauthenticated users to App_Themes/Windward and App_Themes/Windward/Images.

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

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


"Steven Cheng[MSFT]" wrote:
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.

Nov 16 '06 #4
Thanks for your reply Dave,

Have you tried explicitly grant <allow user="*" /for the App_Themes
folder in your ASP.NET application through <locationelement 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.

Nov 17 '06 #5
yep - doing that now.

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

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


"Steven Cheng[MSFT]" wrote:
Thanks for your reply Dave,

Have you tried explicitly grant <allow user="*" /for the App_Themes
folder in your ASP.NET application through <locationelement 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.

Nov 17 '06 #6

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

Similar topics

6
by: Randy Jackson | last post by:
Hello everyone. First of all, apologies in advance if this is a question that gets asked all the time. I tried to search, but wasn't really sure exactly what to search for. Anyway, here's...
3
by: Alex Shi | last post by:
Hi all, Please take a look at following very simple script; #!/usr/bin/php -q <? echo "Hello, world!\n"; if (!$tty) { $tty = fopen('php://stdin', 'r'); }
0
by: LRW | last post by:
I manage our mySQL database through putty (SSH terminal client). And whenever I do a select * from the table that contains ENCODEd passwords, the funky characters do funky things with the display....
0
by: B_O_B | last post by:
I am using Response.BinaryWrite to display JPEG's to the browser. The problem is that in IE, one particular JPEG is loading very slow. Normal JPEG's take a few seconds, but this one sometimes...
8
by: Alan Little | last post by:
I started with the following code in an included file: $CompanyBlock = "$Company (Booth#: $Booth)\n". "$Address\n". "$City, $State $PostalCode\n". "$Website\n". "$Contact1, $Title1\n"....
1
by: flutetones | last post by:
http://67.189.52.24/~metafusionserver/public_html/training.php Here is a link to my server. I have an issue that doen't make sense. What's hapening is this . . . What's going right . . .
8
by: nickyeng | last post by:
I have written 3 files, i dont know whether i do it correctly or wrongly but somehow it compiled well and can run. My simple aim is to display the terrain.txt file into the terrain array, and then...
8
by: elias.farah | last post by:
Hello Everyone, I'm having some very weird behavior on a couple of Access forms. (Not all forms, just some of them). The forms have been working for years, under Access XP/2003 etc, and last...
112
by: Prisoner at War | last post by:
Friends, your opinions and advice, please: I have a very simple JavaScript image-swap which works on my end but when uploaded to my host at http://buildit.sitesell.com/sunnyside.html does not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.