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

在发布到IIS的webApi项目中,运行时报出以上错误,

解决方法:

1、打开发布目录文件夹,找到web.config文件

2、打开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>

3、新建logs文件夹,再次运行网站,这时会自动生成一个log文件到logs文件夹中,打开即可查看报错原因进行处理了。

原文地址:https://www.cnblogs.com/luckypc/p/10985927.html

时间: 2024-07-30 10:37:31

NETCore项目报错 An error occurred while starting the application的相关文章

eclipse 中离线安装activiti插件,报错“An error occurred while collecting items to be installed session context was:(...”

eclipse 中离线安装activiti插件,报错“An error occurred while collecting items to be installed session context was:(...” 按照文章:eclipse离线安装Activiti Designer插件,下载插件的两个离线安装文件,并按照步骤安装后,一直next后报错,如下: An error occurred while collecting items to be installed session co

IDEA启动项目报错:Error:(1, 1) java: 非法字符: &#39;\ufeff&#39;

1. 报错信息 IDEA导入支付宝支付测试Demo启动报错,报错信息如下: Error:(1, 1) java: 非法字符: '\ufeff'Error:(1, 10) java: 需要class, interface或enum 经测试,MyEclipse并没有报同样的错误信息. 2. 解决方法 在IDEA右下角将编码改为GBK,再转为UTF-8,可以解决. IDEA启动项目报错:Error:(1, 1) java: 非法字符: '\ufeff' 原文地址:https://www.cnblogs

[转].Net Core Web应用发布至IIS后报“An error occurred while starting the application”错误

本文转自:http://www.cnblogs.com/TomGui/p/6438686.html An error occurred while starting the application. .NET Core X64 v4.1.1.0    |   Microsoft.AspNetCore.Hosting version 1.1.0-rtm-22752    |    Microsoft Windows 6.3.9600 报这个错,一脸懵逼,环境都按官方文档配置正确了,怎么办? 1.修

webstorm react项目报错:Error: EPERM: operation not permitted

webstorm上导入了react项目,执行npm run start 之后就报错, > cross-env APP_TYPE=site umi dev fs.js:114 throw err; ^ Error: EPERM: operation not permitted, open 'path\node_modules\.cache\@babel\register\.babel.7.2.2.development.json' at Object.openSync (fs.js:443:3)

安装Spring报错An error occurred while collecting items to be installed

原因主要是eclipse和spring版本之间的匹配问题. An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi

eclipse 启动报错“An error occurred while automatically activating bundle com.android.ide.eclipse.adt (843).”

刚开始以为下面这个错误呢, Unable to create the selected preference page. - - ITeye技术网站http://sun-xyun.iteye.com/blog/401614 结果查看jdk 版本是对的.通过 Error creating the view.An error occurred while automatically activating bundle org.eclipse.jdt.ui (110)-CSDN论坛-CSDN.NET-

jmeter 非GUI模式下测试报错An error occurred: Unknown arg:

D:\download\性能工具\JMeter\apache-jmeter-2.11\apache-jmeter-2.11\bin>jmeter -n -t E:\性能测试\jmeter script\read.jmxJava HotSpot(TM) Client VM warning: ignoring option PermSize=64m; support was removed in 8.0Java HotSpot(TM) Client VM warning: ignoring opti

Myeclipse项目报错,但不影响结果ERROR: JDWP Unable to get JNI 1.2 environment, jvm-&gt;GetEnv() return code = -2

§∩﹏∩ ╭ ︿︿ ╮╭─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─╮ ╰──╯ <注明:转载请注明来自 ?:冷希尔 ColdHill   http://blog.csdn.net/mini0520│ ╰○○╯  ╰─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─╯ 错误等级:5(10级制). 错误提示:Myeclipse项目报错,但不影响结果ERROR: JDWP Unable to get JNI 1.2 env

AndroidStudio导入Eclipse项目报错Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject

AndroidStudio导入Eclipse项目报错 Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject 错误原因: Gradle插件版本不一致导致,问题多出现在:eclipse项目转studio 解决步骤: https://blog.csdn.net/qq_21397217/article/details/65630730 原文地址:https://www