How to configure StructureMap for asp.net MVC 5

前端 未结 4 2120
Happy的楠姐
Happy的楠姐 2021-02-02 14:29

I\'m getting below error. I setup it similar to asp.net mvc 4.

No parameterless constructor defined for this object. Description: An unhandled exception

4条回答
  •  -上瘾入骨i
    2021-02-02 14:37

    StructureMap (2.6.4.1) is compatible with ASP.NET MVC 5 and you do not have to change anything after the upgrade.

    The upgrade process, though, it is not as straightforward as you might think.

    Here's a list of all the steps if you have to follow.

    PS: I've followed Rick Anderson's tutorial after the upgrade (and he says you should do it before) but it worked, anyway.

    Hope it helps.

提交回复
热议问题