首页 > 移动平台 > 详细

NETCore项目报错 An error occurred while starting the application

时间:2020-04-17 15:51:08      阅读:116      评论:0      收藏:0      [点我收藏+]

部署项目到IIS,运行时报错误: An error occurred while starting the application

 

打开web.config找到stdoutLogEnabled="false",把该值改为true,即->stdoutLogEnabled="true"

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\CMS.WebApi.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
    </system.webServer>
  </location>
</configuration>

可看到对应的报错信息。

NETCore项目报错 An error occurred while starting the application

原文:https://www.cnblogs.com/qlgbk/p/12720391.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!