The server I’m working with is an Azure Virtual Machine running the Datacenter edition of Windows Server 2019. I am attempting to upgrade a staging instance from 21R1 to 22R1 and am continuously running into this error during startup:
dInvalidOperationException: ASP.NET Core pipeline has unexpected entry point]
PX.AspNetCore.Owin.<>c__DisplayClass4_0.<Init>g__CreateEntryPoint|0(Func`2 next) +252
This server is currently running a production instance of 21R1 without issue. Hopefully that fact establishes the general Acumatica install prerequisites have been met on the server.
I’ve made sure to install .NET Core 3.1, both the SDK and Runtime (including hosting bundle). I’ll share command line output showing this a bit later in the post. Visual Studio 2019 was installed prior to upgrading. I have since updated to Visual Studio 2022 on this system. The staging instance was working just fine beforehand and I made sure to unpublish all customizations before upgrading.
I’ve already done this upgrade on a local virtual machine that was running 21R1. The upgrade VM’s database was created from a backup of the production database. The staging system was using an older export of that same database. The functioning upgrade VM is running Windows 10, not Server 2019.
This same error shows up on this system even with a freshly created installation of 22R1 using the U100 dataset.
Here is some command line output showing my .NET SDKs and runtime
dotnet --list-sdks
3.1.425 rC:\Program Files\dotnet\sdk]
7.0.100 rC:\Program Files\dotnet\sdk]
dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.31 eC:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.11 eC:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 NC:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.31 EC:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.11 EC:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 NC:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.31 eC:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.11 eC:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0 DC:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
I do not know if this will help troubleshoot this problem but I used the Assembly Viewer that comes with Jetbrains Rider to learn more about the code that is throwing this error. This is from the DLL file named PX.AspNetCore.Owin but is decompiled code so it probably won’t match the actual source. I’m only including the top of the encapsulated method that is throwing the error:
Func<IDictionary<string, object>, Task> CreateEntryPoint(
Func<IDictionary<string, object>, Task> next)
{
aspNetCoreApplicationBuilder.Run(InterleavedPipeline.Terminal);
RequestDelegate requestDelegate = aspNetCoreApplicationBuilder.Build();
if (requestDelegate != InterleavedPipeline.EntryPointFromOwin && requestDelegate != InterleavedPipeline.Terminal)
throw new InvalidOperationException("ASP.NET Core pipeline has unexpected entry point");
Does anyone know what would cause a “ASP.NET Core pipeline has unexpected entry point” error and how to fix it?