Exception: Unable to cast object of type ‘ASP._Page_Views_Home_Index_cshtml’ to type ‘System.Web.IHttpHandler’.
This exception might have to do with the browser calling http://localhost/Views/Home/ instead of http://localhost/Home in an aspnetmvc project.
Also make sure there is a HomeController in /Controllers.
I haven’t delved into this since it just was an obstacle in something else I was playing with.
hi
i am new to mvc. i am facing the same issue. may i know the reason and is there any permenant
fix for this.
From my viewpoint the solution is to use the right URL. And have a controller.
Why the error message is as it is still eludes me. (and will continue to since I have solved the problem and is looking forward to new ones)
Happy hacking!