Windows 8 IIS does not load stylesheets and images in asp.net app

后端 未结 3 866
遥遥无期
遥遥无期 2020-12-30 06:03

I just installed Windows 8 on my computer and tried to load my ASP.net application. The page loads with no problems. But none of the images or stylesheets that are located i

相关标签:
3条回答
  • 2020-12-30 06:47

    I had a stupid moment. I didn't check the Static Content check box under the Common HTTP Features group of the IIS configuration.

    0 讨论(0)
  • 2020-12-30 07:00

    What worked for me:

    enter image description here

    Turning on all the features under Common HTTP Features. I did not check this while installing Windows 8.

    Please refer this article:

    http://gurustop.net/blog/2009/10/12/funny-problem-windows-7-iis-7-5-images-css-not-showing/

    0 讨论(0)
  • 2020-12-30 07:02

    Are you running the application through Visual Studio or have it setup in IIS? If you are using Visual Studio to run it, by hitting F5, then you can try this in the web.config to allow anonymous users to access that folder:

       <location path="App_Themes/Default/MyFile.css">
          <system.web>
             <authorization>
                <allow users="*"/>
             </authorization>
          </system.web>
       </location>
    
    0 讨论(0)
提交回复
热议问题