【问题标题】:self host mvc 6 application "dnx . web" command throw exception windows 8 machine自主机 mvc 6 应用程序“dnx.web”命令抛出异常 windows 8 机器
【发布时间】:2015-05-20 12:32:50
【问题描述】:
self host mvc 6 application *dnx . web* command throw exception in windows 8 machine  

i have followed the [link][1] to self host the mvc 6 application.

It has worked in visual studio 2015RC installed machine. but when we try to host other machine i got the below exception.

C:\Users\Bigdata\Desktop\web4.5\src\web4._5>dnx 。网络 System.MissingMethodException:找不到方法:'Int32 System.Runtime.InteropServices.Marshal.SizeOf(!!0)'。在 Microsoft.Net.Http.Server.WebListener.SetRequestQueueLimit() 在 Microsoft.Net.Http.Server.WebListener.Start() 在 Microsoft.AspNet.Server.WebListener.MessagePump.Start(Func2 app) at Microsoft.AspNet.Server.WebListener.ServerFactory.Start(IServerInformation server, Func2 应用程序) 在 Microsoft.AspNet.Hosting.HostingEngine.Start(HostingContext 上下文) 在 Microsoft.AspNet.Hosting.Program.Main(字符串 [] 参数)

  [1]: https://stackoverflow.com/questions/30298458/is-it-possible-to-self-host-a-mvc-6-application-without-iis-not-web-api

【问题讨论】:

    标签: model-view-controller asp.net-core visual-studio-2015


    【解决方案1】:

    MissingMethodException 异常主要意味着您在运行时和包版本之间存在不匹配。看看这个博客来诊断依赖问题:

    Diagnosing dependency issues with ASP.NET 5

    【讨论】:

      猜你喜欢
      • 2011-09-24
      • 1970-01-01
      • 1970-01-01
      • 2015-07-27
      • 2016-02-16
      • 2013-05-08
      • 1970-01-01
      • 2011-01-16
      • 1970-01-01
      相关资源
      最近更新 更多