.netcore发布后错误排查

1、.dll不能运行,iis没有显示错误,可能是发布后是生产环境,该为开发环境,修改web.config
<aspNetCore processPath="dotnet" arguments=".\CoreCms.Wrl.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess">
        <environmentVariables>
          <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
        </environmentVariables>
      </aspNetCore>
    </system.webServer>
posted @ 2022-09-20 12:32  天天向上哦  阅读(116)  评论(0编辑  收藏  举报