启动 COMSOL 时发生意外错误:无法加载文件或程序集 ‘cstextrenderer_wpf‘

2022-08-02T09:46:15.027+08:00 Using locale: zh_CN
2020-08-02T09:46:15.558+08:00 未能加载文件或程序集“cstextrenderer_wpf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。找不到指定的模块。
2022-08-02T09:46:15.574+08:00 在 ComsolDesktop.TextRenderer.CsTextRenderer.Init(String distrDir)
在 ComsolDesktop.DesktopApplication…ctor()
在 ComsolDesktop.App.OnStartup(StartupEventArgs e)
在 System.Windows.Application.<.ctor>b__1_0(Object unused)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

解决方案:
1。官网解决办法参考:
链接: https://cn.comsol.com/support/knowledgebase/1274

在这里插入图片描述
2.还是不行参考:
链接: https://2xiaoliyu.com/2560.html
按着上面步骤操作,第3步第二个文件怎么也不能运行完成(报错0x80070643),分析一下:其实运行 vcredistx64.exe就是安装microsoft visual c++ 2010 redistributable(x64),运行vcredistvc141_x64就是安装microsoft visual c++ 2017 redistributable(x64)。那我们是不是自己下载安装也行?

进入microsoft官网下载安装,网址:https://docs.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist?view=msvc-170

直接下载一个全版本:Visual Studio 2015、2017、2019 和 2022,安装microsoft visual c++ 2015-2022 redistributable(x64)。

安装成功后,重启comsol,缓慢的等待后出现久违的界面。

3.还是不行
①卸载电脑上已安装的VS
②还有一个就是删除C盘里的user文件里的你的用户名里面的.comsol文件

如此往复,然后就莫名其妙解决了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值