I've been working on an MVC 5 project for a while now. I left the office yesterday evening with it functioning fine (local and on the web), and this morning all of a sudden it is throwing an exception that is being caught by my Application_Error()
method in the Global.asax
file on startup saying it can't find a public ActionResult on my controller:
And here is a snap of my controller:
As you can see I am using AttributeRouting which I have had absolutely zero problems until this morning. I have the routes.MapMvcAttributeRoutes();
in the proper location within the RegisterRoutes()
method.
Zero changes were made to my code overnight (I utilize source control) and I am the only one with access to the dev machine and the repository.
When I am stepping through starting at Application_Start()
in Global.asax
, it successfully gets to the end of the method and then throws the ActionResult not found error. The StackTrace gives me nothing useful...I am unsure of what to do now.
Has anyone experienced an anomaly like this or have any ideas of what I can try to get my project running again? Once again, I made no changes to the code between yesterday evening and this morning.
EDIT
Now it is working...I made no changes to the code. I've been fighting with this thing for almost 2 hours and it just decides to start working again. Gotta love programming.