HTTP 错误 500.30 - ANCM 进程内启动失败 [英] HTTP Error 500.30 - ANCM In-Process Start Failure

查看:45
本文介绍了HTTP 错误 500.30 - ANCM 进程内启动失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试验 .net core sdk 2.2 附带的一项新功能,据称该功能旨在将性能提高约 400%.

I was experimenting with a new feature that comes with .net core sdk 2.2 that is supposedly meant to improve performance by around 400%.

令人印象深刻,所以我在我的 ABP(ASP.NET Boilerplate)项目中试用了它

Impressive so I tried it out on my ABP (ASP.NET Boilerplate) project

模板asp.net core mvc 4.0.2.0

我将以下内容添加到我的 web.mv.cproj 文件

I added the following to my web.mv.cproj file

  <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>
    <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
  </ItemGroup>

不幸的是,我认为这个版本的 ABP 框架不兼容,因为该项目根本无法运行并抛出:(最终)

Unfortunately I do not think this version of the ABP framework is compatible as the project simply fails to run and throws: (eventually)

HTTP 错误 500.30 - ANCM 进程内启动失败

HTTP Error 500.30 - ANCM In-Process Start Failure

我在 web.config 中设置 stdoutLogEnabled="true" 并重新尝试后检查了日志 - 但没有条目.

I checked the logs after setting stdoutLogEnabled="true" in the web.config and re-trying - but no entries.

有没有人在流程设置中针对 asp.net 核心运行当前的 ABP 取得成功?

Has anybody had any success running the current ABP against a asp.net core in process setup?

我认为这可能仅在 ABP vNext 中可用.

I'm thinking this may be something only available in ABP vNext.

推荐答案

ASP.NET Core 3.0+ 和 Visual Studio 19 版本 16.3+ 你会发现项目 .csproj 文件中的部分如下所示-

From ASP.NET Core 3.0+ and visual studio 19 version 16.3+ You will find section in project .csproj file are like below-

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

那里没有 AspNetCoreHostingModel 属性.您将在项目的属性中找到托管模型选择.在解决方案资源管理器中右键单击项目名称.点击属性.

There is no AspNetCoreHostingModel property there. You will find Hosting model selection in the properties of the project. Right-click the project name in the solution explorer. Click properties.

点击调试菜单.

向下滚动以找到托管模式选项.

Scroll down to find the Hosting Model option.

选择进程外.

保存项目并运行 IIS Express.

Save the project and run IIS Express.

更新对于服务器部署:

当您在服务器中发布应用程序时,会出现一个如下所示的 Web 配置文件:

When you publish your application in the server there is a web config file like below:

'hostingModel' 的值从 'inprocess' 更改为 'outofprocess',如下所示:

change value of 'hostingModel' from 'inprocess' to 'outofprocess' like below:

从几条评论中,我了解到OutOfProcess"对他们有用,而不是outofprocess".

From Several Comments, I have learnt that 'OutOfProcess' is worked for them instead of 'outofprocess'.

这篇关于HTTP 错误 500.30 - ANCM 进程内启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆