fea*_*net 5 c# asp.net asp.net-mvc asp.net-mvc-routing visual-studio-2008
我的路由配置为需要一定的扩展名.
因此,HttpException当我尝试从visual studio调试时,我得到了一个:The incoming request does not match any route.
然后,我必须手动将该{controller}.{extension}部分附加到地址栏中的localhost URL.
我已经尝试过使用项目设置,但还没有设法让它工作.
所以,为了澄清,我希望我的项目直接进入
http://localhost:1440/mycontroller.ext
当我在本地机器上的visual studio下运行时.
您是否在谈论在Visual Studio中按F5时设置默认URL?如果是这样,这应该做的伎俩:
mycontroller.ext在文本框中输入点击F5.
| 归档时间: |
|
| 查看次数: |
1664 次 |
| 最近记录: |