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. 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.
"text">
Comments
Post a Comment