Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CancanTang opened this issue Mar 13, 2024 · 0 comments

Comments

@CancanTang
Copy link

CancanTang commented Mar 13, 2024

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 dotnetcore/FreeSql#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 CancanTang changed the title When launching the EasyCMS app it will be reporting an freesql error for dotnet-sdk-9.0.100-preview.3.24160.1 It will be reporting an freesql error when launching the EasyCMS app with dotnet-sdk-9.0.100-preview.3.24160.1 Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant