Forum Home › Forums › Runtime Bugs › Internal Server Error with Map Plugin
- This topic has 4 replies, 2 voices, and was last updated 1 year ago by
Mikhail.
-
AuthorPosts
-
March 3, 2024 at 9:09 pm #14115
ChZeman
ParticipantI’ve tried to use both the sample map and my own with the same result. I’m using the latest version of Rapid Scada on Windows 10. I looked at ScadaWeb.log and the following occurs every time I try to load the map:
2024-03-03 13:05:13 [RAPIDSCADA][RAPIDSCADA$][ERR] Unhandled exception:
System.TypeInitializationException: The type initializer for ‘h’ threw an exception.
—> System.InvalidOperationException: JsonSerializerOptions instance must specify a TypeInfoResolver setting before being marked as read-only.
at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerOptionsNoTypeInfoResolverSpecified()
at System.Text.Json.JsonSerializerOptions.MakeReadOnly()
at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter..ctor(JsonSerializerOptions jsonSerializerOptions)
at h..cctor()
— End of inner exception stack trace —
at h.OnActionExecuted(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Filters.ActionFilterAttribute.OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
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.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)-
This topic was modified 1 year ago by
ChZeman.
March 4, 2024 at 11:57 am #14126Mikhail
ModeratorThank you for the report.
We will check and let you know.March 4, 2024 at 12:35 pm #14127Mikhail
ModeratorTo fix the issue, upgrade PlgMap to the latest version 6.1.0.0.
March 4, 2024 at 12:58 pm #14128ChZeman
ParticipantYeah, I was just coming back here to let you know it was an ID10T error. I thought I downloaded the latest version of the map plugin and I downloaded the wrong one. Thank you for identifying the problem just the same! 🙂
March 4, 2024 at 1:03 pm #14129Mikhail
ModeratorYou downloaded the latest version, and helped to find a bug. Thank you.
The bug is related to our recent upgrade from .NET 6 to .NET 8. -
This topic was modified 1 year ago by
-
AuthorPosts
- You must be logged in to reply to this topic.