Why do some 'potentially dangerous Request.Path' HttpExceptions ignore httpErrors settings?
问题 I have a .Net website with custom error pages configured using the web.config httpErrors section: <httpErrors errorMode="Custom" existingResponse="Replace"> <clear/> <error statusCode="400" path="/page-not-found/" responseMode="ExecuteURL" /> <error statusCode="404" path="/page-not-found/" responseMode="ExecuteURL" /> <error statusCode="500" path="/error/" responseMode="ExecuteURL" /> </httpErrors> and <httpRuntime requestValidationMode="2.0" targetFramework="4.5" /> When I visit http://www