0 Replies - 5742 Views - Last Post: 15 May 2013 - 10:50 AM

#1 teamsilvamma  Icon User is offline

  • D.I.C Head

Reputation: -2
  • View blog
  • Posts: 153
  • Joined: 17-January 12

MVC css not deploying

Posted 15 May 2013 - 10:50 AM

Hello fellas,

I've decided after so many years to give ASP a shot and here I am now building my first site. Here's the problem I have:

I created the site using their first tutorial in asp.net mvc 4 and deployed it to Azure (I have 3 free months, so I have to learn ASP in three months)...I was pretty happy that it works great and looks exactly like their Razor template. But I started modifying the _Layout.cshtml and the css and testing it in my localhost. Everything great...until I published it. Now I have a flat page with no css at all linked to it. It seems like the css and scripts did not deploy...I checked out the page code and this is what I'm supposed to have in my <head> sections:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<title>LOTUS Marketing Solutions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="Content/Site.css" type="text/css" />
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.jcarousel.pack.js"></script>
<script type="text/javascript" src="Scripts/jquery.jcarousel.setup.js"></script>
    <link href="/Content/site.css" rel="stylesheet"/>

    <script src="/Scripts/modernizr-2.6.2.js"></script>

</head>



And this is what I actually have in my deployed site:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Home Page - LOTUS Marketing Solutions</title>
        <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        <link href="/Content/css?v=Zxt_kvPMVcEtaCRbYJCSpGOy25BUARXyn8EetggjSF01" rel="stylesheet"/>

        <script src="/bundles/modernizr?v=qVODBytEBVVePTNtSFXgRX0NCEjh9U_Oj8ePaSiRcGg1"></script>

    </head>




Any ideas?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1