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

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

问题描述

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



令人印象深刻,所以我尝试了一下在我的ABP( ASP.NET Boilerplate )项目上完成



模板asp.net核心mvc 4.0.2.0



我在 web.mv.cproj 文件

$中添加了以下内容b
$ b

 < 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框架不兼容,因为该项目完全无法运行且抛出:(最终)


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


我在web.config中设置 stdoutLogEnabled = true 后检查日志,然后重试-但没有条目。

有人在流程设置中使用asp.net核心运行当前ABP是否成功?



认为这可能仅在ABP vNext中可用。

解决方案

在ASP.NET Core 2.2中,新的服务器/托管模式是与IIS一起发布,称为 IIS InProcess托管。为了启用进程内托管,添加了csproj元素AspNetCoreHostingModel来在web.config文件中将hostingModel设置为进程内。另外,web.config指向一个名为AspNetCoreModuleV2的新模块,该模块是进程内托管所必需的。



如果要部署的目标计算机没有ANCMV2,则表示不能使用IIS InProcess托管。如果是这样,正确的行为是将 dotnet托管捆绑包安装到目标机器或降级为AspNetCoreModule。



来源:jkotalik(Github)



尝试更改csproj中的部分(使用文本编辑器进行编辑)

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

到以下...

 < PropertyGroup> 
< TargetFramework> netcoreapp2.2< / TargetFramework>
< AspNetCoreHostingModel> OutOfProcess< / AspNetCoreHostingModel>
< AspNetCoreModuleName> AspNetCoreModule< / AspNetCoreModuleName>
< / PropertyGroup>

来源(Github)


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%.

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

Template asp.net core mvc 4.0.2.0

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>

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

HTTP Error 500.30 - ANCM In-Process Start Failure

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

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

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

解决方案

In ASP.NET Core 2.2, a new Server/ hosting pattern was released with IIS called IIS InProcess hosting. To enable inprocess hosting, the csproj element AspNetCoreHostingModel is added to set the hostingModel to inprocess in the web.config file. Also, the web.config points to a new module called AspNetCoreModuleV2 which is required for inprocess hosting.

If the target machine you are deploying to doesn't have ANCMV2, you can't use IIS InProcess hosting. If so, the right behavior is to either install the dotnet hosting bundle to the target machine or downgrade to the AspNetCoreModule.

Source: jkotalik (Github)

Try changing the section in csproj (edit with a text editor)

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

to the following ...

 <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>
    <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
    <AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
 </PropertyGroup>

Source (Github)

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

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