【发布时间】:2011-08-23 01:31:03
【问题描述】:
我有以下操作结果:
public ActionResult Confirmation(string emailAddress)
当我尝试访问它时:
http://localhost:8080/Signup/Confirmation?emailAddress=test%40test.com
我明白了:
The view 'test@test.com' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Signup/test@test.com.cshtml
~/Views/Signup/test@test.com.vbhtml
为什么它不寻找正确的视图?如果我转到“/SignUp/”,它会正确显示索引,以及其他正常工作的 ActionResult。为什么一个地址会破坏它?
【问题讨论】:
-
我相信这是典型的“。”问题。 stackoverflow.com/questions/5732507/…