我使用的是.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发布于 2015-05-18 01:49:40
以防对别人有帮助。由于我的global.json文件无效,我遇到了类似的错误(没有"Unable to locate project.json“异常)。特别是,我在“包”路径中使用了反斜杠而不是正斜杠。
https://stackoverflow.com/questions/28356236
复制相似问题