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

Asked

Viewed 1,454 times

1

When I’m running the application in visual studio 2010 I have no problem with boostrap CSS and javascript, but when I publish it on IIS, all Java and css are not recognized. I created a simple html page to test if it is an 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>
  • Could provide details of the error that appears in the console (network tab) of the browser, it is a little wide

  • the problem was the CSS MIME Type in IE. It has already been solved.

  • 2

    Thiago if it was resolved formulate a response as a solution, we are not a support forum, we are a Q&A (questions and answers), I recommend you read the Help

1 answer

2

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.