The type String cannot be constructed

后端 未结 5 1432
梦如初夏
梦如初夏 2021-02-18 16:29

I\'m using Web.api and Unity and I am getting the following error when trying to open the default \"help\" area:

[InvalidOperationException: The type String cann         


        
5条回答
  •  迷失自我
    2021-02-18 16:52

    I've recently had this error happen on a previously working codebase. The following answer shows what I did to correct it:

    Adding Web API and API documentation to an existing MVC project

    Basically make the constructor with parameters protected rather than public

提交回复
热议问题