IIS错误502.5上的ASP.NET Core 2.0 Preview 2 [英] ASP.NET Core 2.0 Preview 2 on IIS error 502.5
问题描述
我使用asp.net core 2 Preview 2.
I use asp.net core 2 Preview 2.
我在web.config
中打开了stdoutLogEnabled = "true"
,但是系统未写入日志.
I opened stdoutLogEnabled = "true"
in web.config
but the system does not write logs.
在Windows Server 2012 r2上进行部署可以提供:
Deploying on windows server 2012 r2 gives :
错误
HTTP错误502.5-进程失败.
HTTP Error 502.5 - Process Failure.
Web.config
<aspNetCore processPath="dotnet" arguments=".\App.WebHost.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
日志
请帮助我.
推荐答案
即使安装了托管捆绑包,我也遇到了同样的问题.解决方案位于文档->
I had this same problem, even after installing the hosting bundle. The solution was in the documentation -
重新启动系统或执行
net stop was /y
,然后在命令提示符下执行net start w3svc
,以获取对系统PATH的更改.
Restart the system or execute
net stop was /y
followed bynet start w3svc
from a command prompt to pick up a change to the system PATH.
这是在安装.NET Core Windows服务器托管捆绑包之后完成的.
This is done after installing the .NET Core Windows server hosting bundle.
这篇关于IIS错误502.5上的ASP.NET Core 2.0 Preview 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!