CSS bootstrap does not load when the application is published in IIS

1

When I'm running the application in visual studio 2010 I have no problem with the CSS boostrap and javascript, but when I publish it to IIS, all javascripts and css's are not recognized. I created a simple page in html to test if it is a html formatting problem, but the problem still happens. Can anyone help me?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Starter Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link href="Styles/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="Styles/bootstrap-theme.min.css" rel="stylesheet">

</head>
<body>
    <div class="container">
        <div class="starter-template">
            <h1>
                Bootstrap starter template</h1>
            <p class="lead">
                Use this document as a way to quickly start any new project.<br>
                All you get is this text and a mostly barebones HTML document.</p>
        </div>
        <div class="row">
            <button type="submit" class="btn btn-default">
                Ok</button>
        </div>
    </div>
</body>
</html>
    
asked by anonymous 27.05.2015 / 22:07

1 answer

2

The problem was that in the site's ISS MIME Type, "text / csss" was set to .css files. I found it curious that the problem occurs for css files of the boostrap and does not occur for other css files. However, changing to "text / css" the problem was solved.

    
29.05.2015 / 21:03