ASP.NET/IIS: 404 for all file types

后端 未结 7 709
走了就别回头了
走了就别回头了 2020-12-20 21:51

I set up 404 handler page in web.config, but it works ONLY when extension of URL is .aspx (or other which is handled by ASP.NET). I know I can setup static HTML page in webs

7条回答
  •  [愿得一人]
    2020-12-20 22:43

    In the IIS application configuration, you can set a wildcard mapping (".*") to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

提交回复
热议问题