[]
升级到8.1之后,发现服务无法启动,查看Server日志,有如下错误
2025-03-03 09:58:17.027+08:00 [FTL] Microsoft.AspNetCore.Hosting.Diagnostics Application startup exceptionSystem.InvalidOperationException: Configuring plugin with name 'GCES Dashboards' has failed.
System.TypeInitializationException: The type initializer for 'DuckDB.NET.Data.DuckDBConnectionStringBuilder' threw an exception.
System.DllNotFoundException: Unable to load DLL 'duckdb' or one of its dependencies: 找不到指定的模块。 (0x8007007E)
由于V8.1版本需要运行在dotnet x64版本上,打开命令提示符窗口(CMD),输入如下命令,查看dotnet的版本是否为x86。
dotnet --info
如果dotnet版本是x86,请按如下步骤进行处理:
请到控制面板->程序里卸载Microsoft .NET Runtime x86。
通过以下链接下载Microsoft .NET Runtime x64,并安装。
https://dotnet.microsoft.com/zh-cn/download/dotnet/8.0
安装完成之后,确认生效的dotnet版本是x64的。
如果dotnet版本仍旧是x86的,请检查系统环境变量PATH,并正确配置环境变量。
重启Wyn,看是否能正常启动,如果还是报以上错误,请通过以下链接并安装VC++ x64版。
安装好后,重启产品服务,问题即可解决。