部署.NET Core ASP.NET网站 - HTTP错误502.5 - 进程失败 [英] Deploy .NET Core ASP.NET Website - HTTP Error 502.5 - Process Failure

查看:3861
本文介绍了部署.NET Core ASP.NET网站 - HTTP错误502.5 - 进程失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将模板项目ASP.NET Core Web Application(.NET Framework)从Visual Studio 2015发布到IIS。



我使用的Visual Studio发布到文件系统功能。



我正在使用Windows 10.



我按照指南进行了操作



我添加了一个日志文件夹,但没有创建日志。



关于如何解决这个问题的任何想法?



编辑:



从powershell运行.exe的输出:



PS C:\ TestCoreWebsite> .\Web_CoreWebNetFramework.exe
托管环境:生产
内容根路径:C:\ TestCoreWebsite
现在收听: http:// localhost:5000
应用程序已启动。按Ctrl + C关闭。



然后我导航到 http:/ / localhost:5000 和示例站点工作。

解决方案

找到解决方案:



在根web.config中更改:

  processPath =%LAUNCHER_PATH%

to:

  processPath =。\ Web_CoreWebNetFramework.exe


I'm trying to publish the template project "ASP.NET Core Web Application (.NET Framework)" from Visual Studio 2015 to IIS.

I use the Visual Studio publish to File System feature.

I'm using Windows 10.

I followed the guide from here.

  • I set up a website in IIS and changed the Application Pool .NET CLR Version to No Managed Code
  • I instaled the .NET Core Windows Server Hosting bundle
  • I restarted my machine.

I get this error:

I added a logs folder, but no logs get created.

Any ideas on how I can solve this?

EDIT:

Output of running the .exe from powershell:

PS C:\TestCoreWebsite> .\Web_CoreWebNetFramework.exe Hosting environment: Production Content root path: C:\TestCoreWebsite Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down.

Then I navigate to http://localhost:5000 and the sample site works.

解决方案

Found the solution:

In the root web.config change:

processPath="%LAUNCHER_PATH%"

to:

processPath=".\Web_CoreWebNetFramework.exe"

这篇关于部署.NET Core ASP.NET网站 - HTTP错误502.5 - 进程失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆