Could not load type 'System.Web.Http.WebHost.HttpControllerHandler', in Mono / xsp4

前端 未结 1 444
时光说笑
时光说笑 2020-12-07 02:09

I\'m getting this error when trying to access Web API controller, accessing via 127.0.0.1/api/myController/1

Could not load type \'System.Web.Http.Web

相关标签:
1条回答
  • 2020-12-07 03:02

    The error was due to the use of latest assemblies via NuGet. It turns out that, currently, Mono isn't completely compatible with WebAPI v5.1.

    I replaced all my MVC libraries with a previous (v4.0) version and it all worked.

    0 讨论(0)
提交回复
热议问题