HTTP错误502.5-进程失败,错误代码:0x80070057

时间:2019-01-04 10:49:11

标签: asp.net-core asp.net-core-mvc asp.net-core-2.0

我已经尝试运行命令dotnet MVCWebAPI.dll,并且运行正常,我也可以调用api。

当尝试在iis 10.0.xx中发布时,出现以下错误:

HTTP错误502.5-进程失败 此问题的常见原因:

The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port 

故障排除步骤:

Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect 

打开事件查看器时,收到以下消息:

具有物理根目录'C:\ inetpub \ wwwroot \'的应用程序'MACHINE / WEBROOT / APPHOST / DEFAULT WEB SITE'无法使用命令行''启动进程,ErrorCode ='0x80070057':0。

下面是我的web.config文件:

<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments="./MVCWebAPI.dll" stdoutLogEnabled="true" stdoutLogFile="./logs/stdout" />
    </system.webServer>
  </location>
</configuration>

0 个答案:

没有答案
相关问题