I need II7 to server static pages... surely this should be a simple

I need II7 to server static pages... surely this should be a simple

am 28.01.2008 05:12:30 von jasonrawlins

IIS7 seems to be preventing anonymous users from downloading static
content, such as my .css files. I am using visual studio 2005 on
Windows Vista Business with IIS7. I am working on a web application
that is storing my .css files in /App_Themes/Default/Default.css.

When I run the project from Visual Studio it launches the ASP.NET
Developer Server and the page looks fine. When I set up the
application in II7, the css files are not being applied. I'm sure
there is a simple reason, but I can't track it down.

How can I get II7 to server static content to anonymous users?

My site is set up as an application under the Default Web Site in the
DefaultAppPool which is targeting the .NET 2.0 framework using the
Integrated Managed pipeline mode. The DefaultAppPool is running under
the NetworkService Identity.

The css extension is mapped to the correct MIME Type "text/css"

From the Windows Features dialog...

Internet Information Services is installed
The World Wide Web Services > Static Content option is checked
NETWORK service

Those dang Mac commercials taunting me to "Give up on Vista" are
ringing through my mind right now... must escape... Apple.

Re: I need II7 to server static pages... surely this should be a simple task

am 28.01.2008 06:54:50 von Ken Schaefer

Hi,

Please look in the IIS logfile. There should be a HTTP status code and
substatus code, and that will tell us why your file is not being served.

It might be a permission issue, or some configuration issue, or something
else even (the file isn't being referenced correctly).

Cheers
Ken

wrote in message
news:6182186d-37c9-4e0c-af77-5ab34664684b@v46g2000hsv.google groups.com...
> IIS7 seems to be preventing anonymous users from downloading static
> content, such as my .css files. I am using visual studio 2005 on
> Windows Vista Business with IIS7. I am working on a web application
> that is storing my .css files in /App_Themes/Default/Default.css.
>
> When I run the project from Visual Studio it launches the ASP.NET
> Developer Server and the page looks fine. When I set up the
> application in II7, the css files are not being applied. I'm sure
> there is a simple reason, but I can't track it down.
>
> How can I get II7 to server static content to anonymous users?
>
> My site is set up as an application under the Default Web Site in the
> DefaultAppPool which is targeting the .NET 2.0 framework using the
> Integrated Managed pipeline mode. The DefaultAppPool is running under
> the NetworkService Identity.
>
> The css extension is mapped to the correct MIME Type "text/css"
>
> From the Windows Features dialog...
>
> Internet Information Services is installed
> The World Wide Web Services > Static Content option is checked
> NETWORK service
>
> Those dang Mac commercials taunting me to "Give up on Vista" are
> ringing through my mind right now... must escape... Apple.

Re: I need II7 to server static pages... surely this should be a

am 31.01.2008 04:47:56 von jasonrawlins

Had to change Anonymous authentication to run under the Application
Pool identity. Solution found here http://www.bloggingdeveloper.com/?tag=/401.3%20unauthorized