The instructions for IIS 7.0 show to edit the applicationhost.config file
with the removecustomerror tag. Every time I place the tag into the config
file is shuts down my IIS and it will not start again unless I take it out.
Below is the section of the applicationhost.config file I think it should go
in, but locks up IIS. Can you help me find the exact location? Thanks
<location path="" overrideMode="Allow">
<system.webServer>
<handlers accessPolicy="Read, Script">
<add name="ISAPI-dll" path="*.dll" verb="*"
modules="IsapiModule" resourceType="File" requireAccess="Execute"
allowPathInfo="true" />
<add name="TraceHandler-Integrated" path="trace.axd"
verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler"
preCondition="integratedMode" />
<add name="WebAdminHandler-Integrated" path="WebAdmin.axd"
verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler"
preCondition="integratedMode" />
<add name="AssemblyResourceLoader-Integrated"
path="WebResource.axd" verb="GET,DEBUG"
type="System.Web.Handlers.AssemblyResourceLoader"
preCondition="integratedMode" />
<add name="PageHandlerFactory-Integrated" path="*.aspx"
verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
preCondition="integratedMode" />
<add name="SimpleHandlerFactory-Integrated" path="*.ashx"
verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory"
preCondition="integratedMode" />
<add name="WebServiceHandlerFactory-Integrated"
path="*.asmx" verb="GET,HEAD,POST,DEBUG"
type="System.Web.Services.Protocols.WebServiceHand lerFactory,
System.Web.Services, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" preCondition="integratedMode" />
<add name="HttpRemotingHandlerFactory-rem-Integrated"
path="*.rem" verb="GET,HEAD,POST,DEBUG"
type="System.Runtime.Remoting.Channels.Http.HttpRe motingHandlerFactory,
System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
<add name="HttpRemotingHandlerFactory-soap-Integrated"
path="*.soap" verb="GET,HEAD,POST,DEBUG"
type="System.Runtime.Remoting.Channels.Http.HttpRe motingHandlerFactory,
System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
<add name="AXD-ISAPI-2.0" path="*.axd"
verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\ v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitne ss32"
responseBufferLimit="0" />
<add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx"
verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\ v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitne ss32"
responseBufferLimit="0" />
<add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx"
verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\ v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitne ss32"
responseBufferLimit="0" />
<add name="WebServiceHandlerFactory-ISAPI-2.0" path="*.asmx"
verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\ v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitne ss32"
responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-rem-ISAPI-2.0"
path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\ v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitne ss32"
responseBufferLimit="0" />
<add name="HttpRemotingHandlerFactory-soap-ISAPI-2.0"
path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="%windir%\Microsoft.NET\Framework\ v2.0.50727\aspnet_isapi.dll"
preCondition="classicMode,runtimeVersionv2.0,bitne ss32"
responseBufferLimit="0" />
<add name="TRACEVerbHandler" path="*" verb="TRACE"
modules="ProtocolSupportModule" requireAccess="None" />
<add name="OPTIONSVerbHandler" path="*" verb="OPTIONS"
modules="ProtocolSupportModule" requireAccess="None" />
<add name="StaticFile" path="*" verb="*"
modules="StaticFileModule,DefaultDocumentModule" resourceType="Either"
requireAccess="Read" />
</handlers>
<modules>
<add name="HttpCacheModule" lockItem="true" />
<add name="DynamicCompressionModule" lockItem="true" />
<add name="DefaultDocumentModule" lockItem="true" />
<add name="IsapiFilterModule" lockItem="true" />
<add name="ProtocolSupportModule" lockItem="true" />
<add name="StaticFileModule" lockItem="true" />
<add name="AnonymousAuthenticationModule" lockItem="true" />
<add name="WindowsAuthenticationModule" lockItem="true" />
<add name="RequestFilteringModule" lockItem="true" />
<add name="IsapiModule" lockItem="true" />
<add name="ConfigurationValidationModule" lockItem="true" />
<add name="OutputCache"
type="System.Web.Caching.OutputCacheModule" preCondition="managedHandler" />
<add name="Session"
type="System.Web.SessionState.SessionStateModule"
preCondition="managedHandler" />
<add name="WindowsAuthentication"
type="System.Web.Security.WindowsAuthenticationMod ule"
preCondition="managedHandler" />
<add name="FormsAuthentication"
type="System.Web.Security.FormsAuthenticationModul e"
preCondition="managedHandler" />
<add name="DefaultAuthentication"
type="System.Web.Security.DefaultAuthenticationMod ule"
preCondition="managedHandler" />
<add name="RoleManager"
type="System.Web.Security.RoleManagerModule" preCondition="managedHandler" />
<add name="UrlAuthorization"
type="System.Web.Security.UrlAuthorizationModule"
preCondition="managedHandler" />
<add name="FileAuthorization"
type="System.Web.Security.FileAuthorizationModule"
preCondition="managedHandler" />
<add name="AnonymousIdentification"
type="System.Web.Security.AnonymousIdentificationM odule"
preCondition="managedHandler" />
<add name="Profile" type="System.Web.Profile.ProfileModule"
preCondition="managedHandler" />
<add name="UrlMappingsModule"
type="System.Web.UrlMappingsModule" preCondition="managedHandler" />
<add name="IpRestrictionModule" lockItem="true" />
<add name="CustomLoggingModule" lockItem="true" />
<add name="HttpLoggingModule" lockItem="true" />
<add name="FailedRequestsTracingModule" lockItem="true" />
</modules>
</system.webServer>