Mono / Xamarin Studio是否支持Asp.Net WebApi2?
我可以运行MVC,我可以从here获得演示....但我在运行时得到以下内容
System.TypeLoadException
Could not load type 'System.Web.Http.WebHost.Routing.HttpRouteExceptionHandler' from assembly 'System.Web.Http.WebHost, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): System.Web.
Exception stack trace:
at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache (System.Web.HttpContextBase context) [0x00054] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web.Routing/System.Web.Routing/UrlRoutingModule.cs:128
at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache (System.Object o, System.EventArgs e) [0x00007] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web.Routing/System.Web.Routing/UrlRoutingModule.cs:88
at System.Web.HttpApplication+<RunHooks>c__Iterator0.MoveNext () [0x001ba] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web/System.Web/HttpApplication.cs:1050
at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x006f3] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web/System.Web/HttpApplication.cs:1260
at System.Web.HttpApplication.Tick () [0x00000] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Web/System.Web/HttpApplication.cs:932
这是目前单声道支持的东西吗?我没有在网上找到很多很棒的资源。
答案 0 :(得分:1)
现在不起作用,请等待MONO团队更新或使用WebApi 1(版本= 4.0)