asp.net web api - Could not load type 'System.Web.Http.WebHost.HttpControllerHandler', in Mono / xsp4 -


i'm getting error when trying access web api controller, accessing via 127.0.0.1/api/mycontroller/1

could not load type 'system.web.http.webhost.httpcontrollerhandler' assembly 'system.web.http.webhost, version=5.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35'.

description: http 500.error processing request.

details: non-web exception. exception origin (name of application or object): system.web.http.webhost.

why happening? see exists in system.web.http.webhost.

the error due use of latest assemblies via nuget. turns out that, currently, mono isn't compatible webapi v5.1.

i replaced mvc libraries previous (v4.0) version , worked.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -