部署到IIS后ASP.NET Vnext错误

部署到IIS后ASP.NET Vnext错误

问题描述:

我正在使用.NET Full CLR和VS 2015 CTP5。 我能够在IIS快递本地运行一个简单的项目,但是当我打包和部署到IIS,我得到这个错误 -部署到IIS后ASP.NET Vnext错误

[Exception: Unable to locate project.json] 

[TargetInvocationException: Exception has been thrown by the target of an invocation.] 

[TargetInvocationException: Exception has been thrown by the target of an invocation.] 
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +556 

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.] 
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +575 
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112 
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +726 
+0

能够从这篇文章中看出这一点。 http://codedbeard.com/asp-net-5-0-deploy-to-local-iis/ – 2015-02-12 21:28:59

在情况下,它可以帮助别人。由于我的global.json文件无效,我有一个类似的错误(没有“无法找到project.json”异常)。特别是,我在“包”路径中使用了反斜线而不是正斜杠。