本文介绍如何解决当.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

 

About author
Disclaimer
The opinions and comments expressed herein are my own personal opinions and do not represent my employer's view in any way.
Comments
No comments.
Add comment
Title
Title is required.
Name
Name is required.
Email
Please input your personal email with valid format.
Comments
Please input comment content.
Captcha Refresh
Input captcha:

Subscription

Statistics

Locations of visitors to this page