Site does not display CSS after Publication

Asked

Viewed 65 times

0

After publishing my site, css does not load across the entire page, getting only in HTML. I am using Bootsrap Less.

My structure:

Content

Bundle:

using System.Web;
using System.Web.Optimization;

namespace WebAutenticado
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/css/site.css"));
        }
    }
}

  • If you use Google Chrome, press F12, go to Console and see if you’re getting any errors 404.

  • I am (403), how to solve this?

  • You could put a picture of that mistake?

  • The file exists but does not have access permission, so the server refuses to upload it along with the site. This problem is probably coming from your host, contact the team or search their website for some tutorial on how to solve this problem. An example of what I’m talking about is this page here: http://www.redehost.com.br/duvidas/erro-403-permisso-negaa-como-resolver-1611

  • 1

    Permission Error, OK, solved inside the server.

  • Great Marcos, good that you solved :)

Show 1 more comment
No answers

Browser other questions tagged

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