2015-02-05 160 views
3

我正在使用.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

回答

1

在情況下,它可以幫助別人。由於我的global.json文件無效,我有一個類似的錯誤(沒有「無法找到project.json」異常)。特別是,我在「包」路徑中使用了反斜線而不是正斜槓。