.net core webapi发布

地址:https://www.cnblogs.com/laozhang-is-phi/p/9565227.html#autoid-5-1-0 

地址2:https://www.cnblogs.com/freeliver54/p/6879696.html

iis问题:

地址:http://123.206.33.109:7090/.NetCore

遇到的问题:(An error occurred while starting the application.)

1.xml文件

解决:在xxx.csproj中添加以下代码段

<PropertyGroup>
  <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

2.日志问题

节点:替换web.config文件中以下节点

<aspNetCore processPath="dotnet" arguments=".\appAPI.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />

新建logs文件夹

3.解耦问题

复制解耦的dll文件即可

猜你喜欢

转载自www.cnblogs.com/newrohlzy/p/10798271.html
今日推荐