473,806 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_windwa rd_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Nov 15 '06 #1
5 1488
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\Wind ward\default.cs s I have:

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

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

--
thanks - dave
david_at_windwa rd_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_windwa rd_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 <locationelemen t 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_windwa rd_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 <locationelemen t 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
2354
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 the issue. I've written a simple page in PHP. It displays just fine in Netscape, but for some reason the screen is absolutely blank in Internet Explorer. Here's the URL:
3
2986
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
1437
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. From doing weird alignment things, to making it so that so long as those characters are visible, the display is always scrolled to a line where one of those screwy ASCII characters are. I can scroll up or down, but as soon as I type something on...
0
2200
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 takes up to 30 seconds. THe weird thing is that if I refresh really quick, the JPEG appears for quick second, and then the new Response.BinaryWrite kicks in. So, it looks like the browser has the image, but for some reason it is not finishing...
8
1457
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". "Tel: $Phone\n". "Fax: $Fax\n".
1
1608
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
2216
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 display terrain into screen. I can't display the whitespace characters from terrain.txt file to screen. and It display "weird"( the red color part). http://i19.photobucket.com/albums/b171/NickyEng/display.jpg I tried searching one line by...
8
7176
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 week upgraded from Windows XP/Office 2003 to Vista x64/Office 2007. Under Access 2007, a couple of forms are now taking 60 seconds to
112
4774
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 work. To rule out all possible factors, I made up a dummy page for an index.html to upload, along the lines of <html><head><title></title></ head><body></body></html>.; the image-swap itself is your basic <img src="blah.png"...
0
9719
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
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
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
10371
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,...
1
7649
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.