EasyCMS icon indicating copy to clipboard operation
EasyCMS copied to clipboard

It will be reporting an freesql error when launching the EasyCMS app with dotnet-sdk-9.0.100-preview.3.24160.1

Open CancanTang opened this issue 1 year ago • 0 comments

Description When we are launching the app, it will be reporting an freesql error: System.TypeInitializationException: The type initializer for 'FreeSql.Internal.Utils' threw an exception. This is an freesql issue, please refer to https://github.com/dotnetcore/FreeSql/issues/1748, and in the meantime, file this issue to give you a heads-up in CastIt side.

Verify Scenarios: 1). Windows 10 21H2 AMD64 + dotnet-sdk-8.0.203: Pass 2). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.2.24129.7: Pass 3). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.3.24160.1: Fail

Steps To Reproduce:

  1. Clone code from https://github.com/yushuo1990/EasyCMS
  2. Open and build Atlass.Framework.Web by VS.
  3. Change runtime in Atlass.Framework.Web.runtimeconfig.json:
"frameworks": [
      {
        "name": "Microsoft.NETCore.App",
        "version": "9.0.0-preview.3.24157.12"
      },
      {
        "name": "Microsoft.AspNetCore.App",
        "version": "9.0.0-preview.3.24157.5"
      }
    ]

4.Launching Atlass.Framework.Web.

Expected Result: App running without error. Actual Result: Show error:

System.TypeInitializationException: The type initializer for 'FreeSql.Internal.Utils' threw an exception.
---> System.Reflection.AmbiguousMatchException: Ambiguous match found for 'System.TimeSpan System.TimeSpan FromSeconds(Int64)'.

CancanTang avatar Mar 13 '24 08:03 CancanTang