Archive for the ‘ASP.NET MVC’ Category

Controller action methods and new parameters

ASP.NET MVC | Posted by p_lider May 11th, 2014

When you change a controller’s action method by adding a new parameter make sure that the parameter has a default value specified or is of Nullable type. Not doing so will render the action method unusable if called without the newly added parameter – the IIS will be returning 404 HTTP error code without throwing any other exception or error message rendering the debugging of this situation very hard.