Solution: CSS File cannot be loaded in IIS

198 views 1 comments posted at about 5 years ago Raymond Tang Fahao

本文介绍如何解决当.NET Web应用程序从IIS Express 迁移到IIS 7.0/7.5/8.0 以后页面的CSS文件无法被加载。

During development period, we can show our Web pages normally in IIS Express; but sometimes the CSS file cannot be loaded even you have already setup Static file handler in IIS.

Solution one: Install IIS Recomendation Configuration

Use Web Platform to install it. Refer to below link:

http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds.aspx

Solution 2: change StaticFile Hanlder Mappings in IIS

Change the Hanlder to:

StaticFileModule,DefaultDocumentModule,DirectoryListingModule

 

Add comment

Comments (0)

No comments yet.
In this Page