Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.0 with pipeline mode = Integrated doesn´t load any image/css in ASP .NET

Tags:

asp.net

iis-7

I have a full system working in IIS 5.1 ... I migrated to IIS 7.0 with pipeline mode classic all works fine, but with pipeline Integrated my images/css are not loaded...

I´m using ASP.NET 3.5 with a Web Application...

Any help?

like image 372
Paul Avatar asked Apr 29 '09 01:04

Paul


2 Answers

In IIS 7 when you install the ASP.NET modules, static content is not installed by default. You will need to go into programs and features, then "Turn windows features on or off".

Under IIS section, drill down into WWW services, Common Http features, and check "Static Content".

Without that css, images, html, and other non-dynamic content will not show up.

like image 144
Russ Avatar answered Nov 10 '22 02:11

Russ


I was having the same issue, my static content was not installed. To change the setting under server 2008, get to Server Manager, open Roles and click Web Server (IIS). Once it populates find the Role Services section then Add Role Services to install the Static Content.

like image 25
Michael S Avatar answered Nov 10 '22 02:11

Michael S