MVC3.0,路由设置实现伪静态IIS中404错误

C# code?
1
2
3
4
5
 routes.MapRoute("NewQueryTest.asp",
                "NewQueryTest.asp",
                new { controller = "Article", action = "XML", }
                );


如上在路由设置中,增加如上设置解析路径
直接从IIS中预览页面http://localhost:4093/NewQueryTest.asp会成功解析http://localhost:4093/Article/XML中的内容显示到页面上,但是在IIS中预览http://192.168.0.121:8003/NewQueryTest.asp的时候出现了404错误。
请求解决方案。。。(初步认为是IIS需要设置)

。。。。。。
找到问题了,IIS配置中确认文件是否存在的选项,我勾选了。

原文地址:https://www.cnblogs.com/lauplay/p/3347479.html