asp.net mvc - Handle create controller exception in MVC3 -


I have a controller that takes many arguments and I am using Unity to make an example of that controller . The problem is that in certain circumstances, unity is not able to produce all the things that are necessary for my constructor, so it throws an exception.

"text">

Do not handle, either create a parametrical constructor for those objects, which are instant, or do not make them in the constructor. Handling those exceptions will only be a mask of the problem.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -