css not working well in server iis 7 like on local

16,735

try

BundleTable.EnableOptimizations = false;

In bundle config

Share:
16,735
ItShine
Author by

ItShine

Updated on June 05, 2022

Comments

  • ItShine
    ItShine almost 2 years

    When I debug my ASP MCV 4 Application on Visual Studio 2012, CSS displays properly. I deployed it to IIS 7, but I notice that not all the CSS is working as It was in local , some styles are missing. I've edited the render string so that It does not resemble to my actual directory structure as it's said here but I didn't get the good result . Any idea how to handle this issue ?

    Update

    In order to publish my app:

    • I've used button publish ( in VS 2012)
    • Choose file System (publish method)
    • Browse the application from IIS manager

    When clicking on F12 : I got these messages "Failed to load resource: the server responded with a status of 404 (Not Found) " It's about some images that are not found

    And I'm using bundles to include CSS files

    enter image description here