Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

CSS ignored in IIS7

$
0
0

I am hoping that I can give enough information for a pattern to emerge here.

I have transferred a web site to a new local web server and the particular site has previously been running on two different external hosts and under localhost thru web matrix on two Windows 7 machines. I am absolutely certain there is nothing wrong with the directory tree on the site itself. Wherever I move it to it always works

However I have just set up a Windows 2008 r3 web server to host the site locally so that I can do some experimentation with some wcf stuff and I am having trouble as the CSS and graphics are not being displayed. This is IIS7

Here are the facts that may help people to assist me.

The web server is set up with aspnet 4.0 pipeline mode.

The site tree was copied to wwwroot and converted to an application but when it is run under localhost it does run the  site but there is no CSS or graphics

I therefore installed webmatrix 2 and attempted to run the site through it and it worked.

So.... sites work so long as they are run through the virtual WebMatrix environment.

But I don't want to run my sites through web matrix as I want them to be run through proper IIS.

I am really confused now. I think it must be an IIS issue but could I have a permissions problem but I don't know what to look for? Browse applications in IIS produces identical results to running them properly but outside webmatrix.

Remember that this site works on two external hosts (under IIS6 admitedly).

Is there anything that I haven't set properly? Or is there a way that I can trace errors - I am a bit of a novice with IIS.

I attach the header information just to prove that the reference is normal but the point here is that it is working elsewhere. Finally this is an Umbraco CMS site but I think that is irrelevant.

<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" Inherits="WEF.Utils.Master" %>

<asp:content contentplaceholderid="ContentPlaceHolderDefault" runat="server">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head id="head" runat="server">
    <umbraco:Macro Alias="Meta" runat="server"></umbraco:Macro>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="imagetoolbar" content="false" />
    <title><umbraco:Macro Alias="GetTitle" runat="server"></umbraco:Macro></title>
    <link rel="stylesheet" type="text/css" href="/css/style.css?version=1" media="screen"/>
    <link rel="stylesheet" type="text/css" href="/css/content.css" media="screen"/>
    <script type="text/javascript" src="/scripts/jQuery-1.4.2.js"></script>
   <script type="text/javascript" src="/scripts/Utils.js"></script>
    <link href="/favicon.ico" rel="shortcut icon" />
    <asp:ContentPlaceHolder Id="Script1" runat="server"></asp:ContentPlaceHolder>
    <script type="text/javascript">

Regards

Alan


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>