IIS7 on Vista not serving static pages

IIS7 on Vista not serving static pages

am 28.11.2007 07:27:00 von FTTom

IIS 7 install on vista ultimate (static content option selected).

If I create a virtual dir or application with a simple .htm page and browse
to it, i get an empty page returned:

orig htm page:



aalkdafklfalkfa



returned page:






same issue no matter what htm/html page i browse. ASPX pages work
correctly.

no errors being generated, log shows 200 status, nothing in the failed
request log.

Thanks in advance for any help.

Tom

Re: IIS7 on Vista not serving static pages

am 28.11.2007 07:48:37 von David Wang

On Nov 27, 10:27 pm, FT_Tom wrote:
> IIS 7 install on vista ultimate (static content option selected).
>
> If I create a virtual dir or application with a simple .htm page and browse
> to it, i get an empty page returned:
>
> orig htm page:
>
>
>
> aalkdafklfalkfa
>
>
>
> returned page:
>
>
>
>
>
>
> same issue no matter what htm/html page i browse. ASPX pages work
> correctly.
>
> no errors being generated, log shows 200 status, nothing in the failed
> request log.
>
> Thanks in advance for any help.
>
> Tom


What IIS configuration changes have you made beyond installing IIS7
and its components.

This sounds like misconfigured or .
- Are you running in Integrated Mode or Classic Mode.
- Are there any elements within or
- Are there any Wildcard application mappings installed.
- Have you run *any* legacy webapp installations onto IIS that will
most likely modify incorrectly

With misconfigured or , it doesn't matter what
components you install -- IIS7 is not going to work. For example, with
a single configuration change, one can make IIS7 completely broken or
behave in bizarre ways, even if you select every single option in the
Windows Feature installation wizard.

I suspect you may have configured aspnet_isapi.dll as a wildcard
application mapping, and in certain configurations, this can happen.



//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: IIS7 on Vista not serving static pages

am 28.11.2007 20:42:02 von FTTom

Thanks for feedback...

Answers inline...

> What IIS configuration changes have you made beyond installing IIS7
> and its components.

None.
- Had VS2008 beta2 installed, removed and installed RTM.
- Just installed silverlight 1.1 beta


> This sounds like misconfigured or .
> - Are you running in Integrated Mode or Classic Mode.

Have tried app pools configured both ways


> - Are there any elements within or



type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.507 27\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.507 27\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv1.1,bitness32" />
path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv1.1,bitness32" />
path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv1.1,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv1.1,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv1.1,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv1.1,bitness32" />
type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
modules="IsapiModule"
scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.5 0727\aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
path="WebResource.axd" verb="GET,DEBUG"
type="System.Web.Handlers.AssemblyResourceLoader"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory"
modules="ManagedPipelineHandler" scriptProcessor=""
resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
verb="GET,HEAD,POST,DEBUG"
type="System.Web.Services.Protocols.WebServiceHandlerFactory ,
System.Web.Services, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" modules="ManagedPipelineHandler"
scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
path="*.rem" verb="GET,HEAD,POST,DEBUG"
type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand lerFactory,
System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler"
scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
path="*.soap" verb="GET,HEAD,POST,DEBUG"
type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand lerFactory,
System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler"
scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
preCondition="integratedMode" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.dll"
resourceType="Unspecified" requireAccess="Script"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified"
requireAccess="None" preCondition="" />
modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified"
requireAccess="None" preCondition="" />
modules="IsapiModule" scriptProcessor="" resourceType="File"
requireAccess="Execute" preCondition="" />
modules="DefaultDocumentModule" scriptProcessor="" resourceType="Either"
requireAccess="Read" preCondition="" />





> - Are there any Wildcard application mappings installed.

not sure where i should be looking for the application mappings above


> - Have you run *any* legacy webapp installations onto IIS that will
> most likely modify incorrectly

None that i know of


"David Wang" wrote:

> On Nov 27, 10:27 pm, FT_Tom wrote:
> > IIS 7 install on vista ultimate (static content option selected).
> >
> > If I create a virtual dir or application with a simple .htm page and browse
> > to it, i get an empty page returned:
> >
> > orig htm page:
> >
> >
> >
> > aalkdafklfalkfa
> >
> >
> >
> > returned page:
> >
> >
> >
> >
> >
> >
> > same issue no matter what htm/html page i browse. ASPX pages work
> > correctly.
> >
> > no errors being generated, log shows 200 status, nothing in the failed
> > request log.
> >
> > Thanks in advance for any help.
> >
> > Tom
>
>
> What IIS configuration changes have you made beyond installing IIS7
> and its components.
>
> This sounds like misconfigured or .
> - Are you running in Integrated Mode or Classic Mode.
> - Are there any elements within or
> - Are there any Wildcard application mappings installed.
> - Have you run *any* legacy webapp installations onto IIS that will
> most likely modify incorrectly
>
> With misconfigured or , it doesn't matter what
> components you install -- IIS7 is not going to work. For example, with
> a single configuration change, one can make IIS7 completely broken or
> behave in bizarre ways, even if you select every single option in the
> Windows Feature installation wizard.
>
> I suspect you may have configured aspnet_isapi.dll as a wildcard
> application mapping, and in certain configurations, this can happen.
>
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>

Re: IIS7 on Vista not serving static pages

am 28.11.2007 22:33:03 von David Wang

On Nov 28, 11:42 am, FT_Tom wrote:
> Thanks for feedback...
>
> Answers inline...
>
> > What IIS configuration changes have you made beyond installing IIS7
> > and its components.
>
> None.
> - Had VS2008 beta2 installed, removed and installed RTM.
> - Just installed silverlight 1.1 beta
>
> > This sounds like misconfigured or .
> > - Are you running in Integrated Mode or Classic Mode.
>
> Have tried app pools configured both ways
>
> > - Are there any elements within or
>
>
>
> > type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
> Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.507 27\aspnet_isapi-.dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
> Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.507 27\aspnet_isapi-.dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
> Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > modules="IsapiModule"
> scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.5 0727\aspnet_isa-pi.dll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > path="WebResource.axd" verb="GET,DEBUG"
> type="System.Web.Handlers.AssemblyResourceLoader"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory"
> modules="ManagedPipelineHandler" scriptProcessor=""
> resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > verb="GET,HEAD,POST,DEBUG"
> type="System.Web.Services.Protocols.WebServiceHandlerFactory ,
> System.Web.Services, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" modules="ManagedPipelineHandler"
> scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > path="*.rem" verb="GET,HEAD,POST,DEBUG"
> type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand lerFactory,
> System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler"
> scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > path="*.soap" verb="GET,HEAD,POST,DEBUG"
> type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand lerFactory,
> System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler"
> scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
> preCondition="integratedMode" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> resourceType="Unspecified" requireAccess="Script"
> preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified"
> requireAccess="None" preCondition="" />
> > modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified"
> requireAccess="None" preCondition="" />
> > modules="IsapiModule" scriptProcessor="" resourceType="File"
> requireAccess="Execute" preCondition="" />
> > modules="DefaultDocumentModule" scriptProcessor="" resourceType="Either"
> requireAccess="Read" preCondition="" />
>

>
> > - Are there any Wildcard application mappings installed.
>
> not sure where i should be looking for the application mappings above
>
> > - Have you run *any* legacy webapp installations onto IIS that will
> > most likely modify incorrectly
>
> None that i know of
>
>
>
> "David Wang" wrote:
> > On Nov 27, 10:27 pm, FT_Tom wrote:
> > > IIS 7 install on
>
> ...
>
> read more >>- Hide quoted text -
>
> - Show quoted text -


The section is incorrect. You need to fix this
section to allow IIS7 to serve static files like HTML, CSS, JPG for
the URL namespace that this section is applicable for.

Open up %windir%\System32\inetsrv\config\applicationHost.config
Search for in that file.
Look for the "StaticFile" handler in that section and copy just that
entry and replace the broken StaticFile handler entry in the .config
file you showed above.

The "modules" attribute of the working one should include several
modules including DefaultDocumentModule.

Right now, what's happening is that static files do get handled by the
StaticFile handler, but you don't have the module that actually
services static files hooked up. Just the DefaultDocument handling
module is hooked up.

Since none of this is default configuration, I can only assume that
either you ran some prior installation that messed this up, or someone
played around with the settings (as a part of the IIS7 Walkthroughs,
for example) and this outdated setting was retained.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: IIS7 on Vista not serving static pages

am 28.11.2007 23:21:00 von FTTom

That fixed it - not sure how it would have been changed.

Thanks for the help.



"David Wang" wrote:

> On Nov 28, 11:42 am, FT_Tom wrote:
> > Thanks for feedback...
> >
> > Answers inline...
> >
> > > What IIS configuration changes have you made beyond installing IIS7
> > > and its components.
> >
> > None.
> > - Had VS2008 beta2 installed, removed and installed RTM.
> > - Just installed silverlight 1.1 beta
> >
> > > This sounds like misconfigured or .
> > > - Are you running in Integrated Mode or Classic Mode.
> >
> > Have tried app pools configured both ways
> >
> > > - Are there any elements within or
> >
> >
> >
> > > > type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
> > Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.507 27\aspnet_isapi-.dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
> > Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.507 27\aspnet_isapi-.dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > > > path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > > > path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="C:\Windows\Microsoft.Net\Framework\v1.1.432 2\aspnet_isapi.-dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv1.1,bitness32" />
> > > > type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
> > Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > modules="IsapiModule"
> > scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.5 0727\aspnet_isa-pi.dll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > path="WebResource.axd" verb="GET,DEBUG"
> > type="System.Web.Handlers.AssemblyResourceLoader"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory"
> > modules="ManagedPipelineHandler" scriptProcessor=""
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > verb="GET,HEAD,POST,DEBUG"
> > type="System.Web.Services.Protocols.WebServiceHandlerFactory ,
> > System.Web.Services, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b03f5f7f11d50a3a" modules="ManagedPipelineHandler"
> > scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > path="*.rem" verb="GET,HEAD,POST,DEBUG"
> > type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand lerFactory,
> > System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler"
> > scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > path="*.soap" verb="GET,HEAD,POST,DEBUG"
> > type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand lerFactory,
> > System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler"
> > scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
> > preCondition="integratedMode" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > path="*.rem" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > path="*.soap" verb="GET,HEAD,POST,DEBUG" type="" modules="IsapiModule"
> > scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727 \aspnet_isapi.d-ll"
> > resourceType="Unspecified" requireAccess="Script"
> > preCondition="classicMode,runtimeVersionv2.0,bitness32" />
> > > > modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified"
> > requireAccess="None" preCondition="" />
> > > > modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified"
> > requireAccess="None" preCondition="" />
> > > > modules="IsapiModule" scriptProcessor="" resourceType="File"
> > requireAccess="Execute" preCondition="" />
> > > > modules="DefaultDocumentModule" scriptProcessor="" resourceType="Either"
> > requireAccess="Read" preCondition="" />
> >

> >
> > > - Are there any Wildcard application mappings installed.
> >
> > not sure where i should be looking for the application mappings above
> >
> > > - Have you run *any* legacy webapp installations onto IIS that will
> > > most likely modify incorrectly
> >
> > None that i know of
> >
> >
> >
> > "David Wang" wrote:
> > > On Nov 27, 10:27 pm, FT_Tom wrote:
> > > > IIS 7 install on
> >
> > ...
> >
> > read more >>- Hide quoted text -
> >
> > - Show quoted text -
>
>
> The section is incorrect. You need to fix this
> section to allow IIS7 to serve static files like HTML, CSS, JPG for
> the URL namespace that this section is applicable for.
>
> Open up %windir%\System32\inetsrv\config\applicationHost.config
> Search for in that file.
> Look for the "StaticFile" handler in that section and copy just that
> entry and replace the broken StaticFile handler entry in the .config
> file you showed above.
>
> The "modules" attribute of the working one should include several
> modules including DefaultDocumentModule.
>
> Right now, what's happening is that static files do get handled by the
> StaticFile handler, but you don't have the module that actually
> services static files hooked up. Just the DefaultDocument handling
> module is hooked up.
>
> Since none of this is default configuration, I can only assume that
> either you ran some prior installation that messed this up, or someone
> played around with the settings (as a part of the IIS7 Walkthroughs,
> for example) and this outdated setting was retained.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>

Re: IIS7 on Vista not serving static pages

am 24.12.2007 17:41:57 von Stephen Ho

Hi,

I have been struggling with a similar problem for a while now. I have
configured aspnet_isapi.dll as a wildcard
application mapping and as a result none of my static content is being
served. Below you say - "I suspect you may have configured aspnet_isapi.dll
as a wildcard
application mapping, and in certain configurations, this can happen" - is
there any way I can get it to work? Any help would be greatly appreciated.

-Stephen

url:http://ureader.com/msg/15248073.aspx

Re: IIS7 on Vista not serving static pages

am 25.12.2007 05:52:35 von David Wang

If you are talking about IIS7 in Integrated Mode, configuring
aspnet_isapi.dll as a wildcard application mapping is not necessary
and not recommended. Just remove it. If you are running IIS7 in
Classic Mode, please give a good reason why. If you cannot give a
solid reason, please change to Integrated Mode because we designed it
to be superior to Classic Mode.

Since IIS7 section is ordered in Integrated Mode, you can
wire managed handlers (executed by ASP.Net -- no need for
aspnet_isapi.dll half-functional hack on IIS7) at the top of list, and
define * for Static File Handler to handle everything else not handled
by existing handlers.

I suspect that is the semantic you wanted on IIS6, which required the
aspnet_isapi.dll as wildcard application mapping hack, but on IIS7 you
don't need that hack. You can do it natively in a super-efficient
manner in the way I described. Yes, the configuration is different
than IIS6, and we also kep that old configuration mechanism as
"compatibility" for IIS6 Classic Mode. You don't need it for IIS7
because it is better by default.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



On Dec 24, 8:41=A0am, "Stephen Ho" wrote:
> Hi,
>
> I have been struggling with a similar problem for a while now. I have
> configured aspnet_isapi.dll as a wildcard
> application mapping and as a result none of my static content is being
> served. Below you say - "I suspect you may have configured aspnet_isapi.dl=
l
> as a wildcard
> application mapping, and in certain configurations, this can happen" - is
> there any way I can get it to work? Any help would be greatly appreciated.=

>
> -Stephen
>
> url:http://ureader.com/msg/15248073.aspx