问题描述
我正在试验.net core sdk 2.2附带的一项新功能,据说该功能可以将性能提高约400%。
令人印象深刻,所以我尝试了一下在我的ABP( ASP.NET Boilerplate )项目上完成
模板asp.net核心mvc 4.0.2.0
我在 web.mv.cproj
文件
$ 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框架不兼容,因为该项目完全无法运行且抛出:(最终)
我在web.config中设置 stdoutLogEnabled = true
后检查日志,然后重试-但没有条目。
有人在流程设置中使用asp.net核心运行当前ABP是否成功?
认为这可能仅在ABP vNext中可用。
在ASP.NET Core 2.2中,新的服务器/托管模式是与IIS一起发布,称为。为了启用进程内托管,添加了csproj元素AspNetCoreHostingModel来在web.config文件中将hostingModel设置为进程内。另外,web.config指向一个名为AspNetCoreModuleV2的新模块,该模块是进程内托管所必需的。
如果要部署的目标计算机没有ANCMV2,则表示不能使用IIS InProcess托管。如果是这样,正确的行为是将安装到目标机器或降级为AspNetCoreModule。
尝试更改csproj中的部分(使用文本编辑器进行编辑)
< PropertyGroup>
< TargetFramework> netcoreapp2.2< / TargetFramework>
< AspNetCoreHostingModel> InProcess< / AspNetCoreHostingModel>
< / PropertyGroup>
到以下...
< PropertyGroup>
< TargetFramework> netcoreapp2.2< / TargetFramework>
< AspNetCoreHostingModel> OutOfProcess< / AspNetCoreHostingModel>
< AspNetCoreModuleName> AspNetCoreModule< / AspNetCoreModuleName>
< / PropertyGroup>
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)
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.
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>
这篇关于HTTP错误500.30-ANCM进程内启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!