I have the following actionresult:
public ActionResult Confirmation(string emailAddress)
When I try to access it:
http://localhost:8080/Signup/Confirmation?emailAddress=test%40test.com
I get this:
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
What gives why isn’t it looking for the correct view? If I go to “/SignUp/” it correctly shows me the index, along with the other ActionResults working correctly. Why does an address break it?
Have you tried registering the route in the global.asax.cs?
Something like: