1

Closed

Custom StructureMapControllerFactory always null when request from Controller action

description

When I call a action from controller, I usually get the error "Value cannot be null" that threw from the StructureMapControllerFactory class.
Closed May 12, 2010 at 4:43 PM by thangchung
I resolved this issue

comments

thangchung wrote May 12, 2010 at 4:42 PM

I just resolved this issue. By following the post at http://stackoverflow.com/questions/1357485/asp-net-mvc2-preview-1-are-there-any-breaking-changes. And it worked as well. Because when we request the action from controller, any resource also request to StructureMapControllerFactory , so when css, js, favicon request to it, it is not have type of controller, so we only simple return null when Type is null

wrote May 12, 2010 at 4:43 PM

wrote Feb 13, 2013 at 8:34 PM

wrote May 16, 2013 at 2:42 AM