-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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:
- Clone code from https://github.com/Wolfteam/CastIt
- Open and build CastIt.Server by VS.
- Change runtime in CastIt.Server.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"
}
]
- Launching CastIt.Server.
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)'.
Metadata
Metadata
Assignees
Labels
No labels