Upgrade from 2022.1 to 2022.3 error

I was trying to upgrade from 2022.1 to 2022.3.

I was expecting that I update Architect, update Root and Security packages and apply deployment scripts. Than update IIS HTML client and run the app.

Instead I’ve got almost blank page with error

server log:

2022-09-08 01:31:21,835 [7] ERROR Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred while executing the request.
System.MissingMethodException: Method not found: 'System.Data.DataSet Origam.Workbench.Services.CoreServices.DataService.LoadData(System.Guid, System.Guid, System.Guid, System.Guid, System.String, System.String, System.Object)'.
   at Origam.ServerCore.Authorization.PersistedGrantStore.GetAsync(String key)
   at IdentityServer4.Stores.DefaultGrantStore`1.GetItemAsync(String key)
   at IdentityServer4.Validation.TokenValidator.ValidateReferenceAccessTokenAsync(String tokenHandle)
   at IdentityServer4.Validation.TokenValidator.ValidateAccessTokenAsync(String token, String expectedScope)
   at IdentityServer4.Hosting.LocalApiAuthentication.LocalApiAuthenticationHandler.HandleAuthenticateAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
   at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthenticateAsync(AuthorizationPolicy policy, HttpContext context)
   at Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter.OnAuthorizationAsync(AuthorizationFilterContext context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Origam.ServerCore.Middleware.FatalErrorMiddleware.Invoke(HttpContext context) in D:\a\1\s\backend\Origam.ServerCore\Middleware\FatalErrorMiddleware.cs:line 46
   at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
   at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

one more log:

2022-09-08 01:51:20,736 [26] ERROR Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer - Connection ID "18014398515387584963", Request ID "800051c4-0001-fa00-b63f-84710c7967bb": An unhandled exception was thrown by the application.
System.InvalidOperationException: The exception handler configured on ExceptionHandlerOptions produced a 404 status response. This InvalidOperationException containing the original exception was thrown since this is often due to a misconfigured ExceptionHandlingPath. If the exception handler is expected to return 404 status responses then set AllowStatusCode404Response to true.
 ---> System.MissingMethodException: Method not found: 'System.Data.DataSet Origam.Workbench.Services.CoreServices.DataService.LoadData(System.Guid, System.Guid, System.Guid, System.Guid, System.String, System.String, System.Object)'.
   at Origam.ServerCore.UserStore.GetOrigamUserDataSet(Guid methodId, String paramName, Object paramValue, String transactionId)
   at Origam.ServerCore.UserStore.FindOrigamUserRowByUserName(String normalizedUserName, String transactionId) in D:\a\1\s\backend\Origam.ServerCore\Authorization\UserStore.cs:line 298
   at Origam.ServerCore.UserStore.FindByNameAsync(String normalizedUserName, String transactionId, CancellationToken cancellationToken) in D:\a\1\s\backend\Origam.ServerCore\Authorization\UserStore.cs:line 129
   at Origam.ServerCore.UserStore.FindByNameAsync(String normalizedUserName, CancellationToken cancellationToken) in D:\a\1\s\backend\Origam.ServerCore\Authorization\UserStore.cs:line 125
   at Microsoft.AspNetCore.Identity.UserManager`1.FindByNameAsync(String userName)
   at Origam.ServerCore.IdentityServerGui.Account.AccountController.Login(LoginInputModel model, String button) in D:\a\1\s\backend\Origam.ServerCore\IdentityServerGui\Account\AccountController.cs:line 408
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Origam.ServerCore.Middleware.FatalErrorMiddleware.Invoke(HttpContext context) in D:\a\1\s\backend\Origam.ServerCore\Middleware\FatalErrorMiddleware.cs:line 48
   at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
   at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()

The problem is you have not changed the entry in web.config to rename ServerCore to Server mentioned in Release Notes 2022.2.

Issue resolved by editing web.config.

old value:

<aspNetCore 
   processPath="dotnet" 
   arguments=".\Origam.ServerCore.dll" 
   stdoutLogEnabled="true" 
   stdoutLogFile=".\logs\" 
   hostingModel="inprocess" />

new value:

<aspNetCore 
   processPath="dotnet" 
   arguments=".\Origam.Server.dll" 
   stdoutLogEnabled="true" 
   stdoutLogFile=".\logs\" 
   hostingModel="inprocess" />

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.