Internal Server Error with Map Plugin

Forum Home Forums Runtime Bugs Internal Server Error with Map Plugin

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14115
    ChZeman
    Participant

    I’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.
    #14126
    Mikhail
    Moderator

    Thank you for the report.
    We will check and let you know.

    #14127
    Mikhail
    Moderator

    To fix the issue, upgrade PlgMap to the latest version 6.1.0.0.

    #14128
    ChZeman
    Participant

    Yeah, 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! 🙂

    #14129
    Mikhail
    Moderator

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.