错误:

解决方法:
在webconfig 增加一下标记
<aspNetCore processPath="dotnet" arguments=".\HC.EM.DC.WebHost.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" >
<environmentVariables>
<environmentVariable name="Path" value="D:\Apps\hc-kc\clidriver\bin" />
</environmentVariables>
</aspNetCore>

原文:https://www.cnblogs.com/sugarwxx/p/15003556.html