Brian
asked on
CSS not working
Hello Experts,
I have an ASP.NET web application running on ASP.NET 4.0 and using IIS7 on Windows Server 2008 R2.
The problem that I have is when I run my web application locally on my laptop it looks fine. But when I upload my website to my webserver it does not render the page correctly. Any ideas why? Is there something in IIS that is preventing my page from using my CSS?
.NET Authorization Rules:
- Deny Anonymous Users
- Allow All Users
Authentication:
- Windows Authentication enabled
- All other authenticatio methods are disabled
If I perform a "Test Connection" in IIS I get the following warning below.
- Authorization: Cannont verify access to path (C:\inet\www\cmdb)
The other weird thing is that if I view the page using FireFox it's fine. Only issue is with IE9.
I have an ASP.NET web application running on ASP.NET 4.0 and using IIS7 on Windows Server 2008 R2.
The problem that I have is when I run my web application locally on my laptop it looks fine. But when I upload my website to my webserver it does not render the page correctly. Any ideas why? Is there something in IIS that is preventing my page from using my CSS?
.NET Authorization Rules:
- Deny Anonymous Users
- Allow All Users
Authentication:
- Windows Authentication enabled
- All other authenticatio methods are disabled
If I perform a "Test Connection" in IIS I get the following warning below.
- Authorization: Cannont verify access to path (C:\inet\www\cmdb)
The other weird thing is that if I view the page using FireFox it's fine. Only issue is with IE9.
ASKER
It's not rendering the page correctly in IE9 (gridview colors, properties for TextBox, DropDownList, etc..) . It's fine using anything but IE9. I even tried to apply a stylesheet for IE9 but no luck there either.
No error messages when running the page either.
I cannot provide a link for viewing.
No error messages when running the page either.
I cannot provide a link for viewing.
It sounds like the CSS is not being loaded by IE9 which indicates that there is some kind of privilege or authorization issue with the location on the server where the CSS is stored. As it works in other browsers, it suggests the problem is with IE, not the server; probably the internet options setting are wrong.
Cd&
Cd&
Can you add "X-UA-Compatible" header or META to force full IE8 standards mode to your page? As Microsoft introduced different rendering modes for local and Internet servers.
You can look at this on how to insert the tag unto your page: X-UA-Compatible
Other than that, we need to get screenshots of your settings and pages to get some idea on how to fix it.
You can look at this on how to insert the tag unto your page: X-UA-Compatible
Other than that, we need to get screenshots of your settings and pages to get some idea on how to fix it.
ASKER
What do you think I need to change?
Put the tag below inside your <head></head> part of your html/aspx/php page:
<meta http-equiv="X-UA-Compatibl e" content="IE=8">
See if it works.
A
<meta http-equiv="X-UA-Compatibl
See if it works.
A
ASKER
@armchang,
That did not work :(
Please see my Markup below.
<head runat="server">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatibl e" content="IE=9">
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-widt h" />
<title>CMDB | Dashboard</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/app.css">
<script src="Scripts/WebForms/mode rnizr.foun dation.js" ></script>
</head>
That did not work :(
Please see my Markup below.
<head runat="server">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatibl
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-widt
<title>CMDB | Dashboard</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/app.css">
<script src="Scripts/WebForms/mode
</head>
ASKER
@COBOLdinosaur,
Your information is not specific enough. Thanks for your help though.
Your information is not specific enough. Thanks for your help though.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much. The browser was using compatibility mode for intranet websites.
Not much of a description of what it is doing. So in the absence of code, link and description of the problem I guess the only answer must be there is an error somewhere
Cd&