我正在使用.NET Full CLR和VS 2015 CTP5。 我可以在IIS Express上本地运行一个简单的项目,但是当我打包并部署到IIS时,我收到此错误 -
[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 :(得分:1)
如果它有助于他人。由于我的global.json文件无效,我遇到了类似的错误(没有"无法找到project.json"异常)。特别是,我在"包"中使用了反斜杠而不是正斜杠。路径。