启动 COMSOL 时发生意外错误的解决方案

声学仿真评论154阅读模式

安装完comsol5.6,提示有一个警告和一个错误。点开日志,忽略警告,查看错误:

---BEGIN FATAL ERROR (1) ---
19:56:16 vcredist_vc141_x64.exe exited with exit code 1603
--- END FATAL ERROR (1) ---

于是我不信邪,立即关闭了 提示,启动了comsol,结果毫无悬念的报错了:文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

启动 COMSOL 时发生意外错误的解决方案

打开日志文件查看:文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

未能加载文件或程序集“cstextrenderer_wpf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。找不到指定的模块。
2022-05-14T18:51:20.004+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)

百度解决方案,comsol官网内容:文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

(网址:http://cn.comsol.com/support/knowledgebase/1274)文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

启动 COMSOL 时发生意外错误:无法加载文件或程序集 'cstextrenderer_wpf'文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

问题描述文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

安装 COMSOL Multiphysics 之后,我在启动软件时收到意外错误。日志文件中指出了 cstextrenderer_wpf 的一个问题,如下所示:(略)文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

解决方法文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

该问题的解决方法是手动运行 Microsoft Visual C++ Redistributable Package 安装程序,该文件位于 COMSOL DVD 映像的 ext 目录中。文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

请执行以下操作:文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

  • 1.从“产品下载”页面下载 COMSOL Multiphysics 5.5 DVD 映像。
  • 2.转到 ext 目录。
  • 3.运行 vcredistx64.exe 和 vcredistvc141_x64 文件。
  • 4.重新启动 COMSOL Multiphysics。

按着上面步骤操作,第3步第二个文件怎么也不能运行完成(报错0x80070643),分析一下:其实运行 vcredistx64.exe就是安装microsoft visual c++ 2010 redistributable(x64),运行vcredistvc141_x64就是安装microsoft visual c++ 2017 redistributable(x64)。那我们是不是自己下载安装也行?文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

进入microsoft官网下载安装,网址:https://docs.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist?view=msvc-170文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

直接下载一个全版本:Visual Studio 2015、2017、2019 和 2022,安装microsoft visual c++ 2015-2022 redistributable(x64)。文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

安装成功后,重启comsol,缓慢的等待后出现久违的界面。文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html 文章源自小鲤鱼电声小鲤鱼-https://2xiaoliyu.com/2560.html

  • 小鲤鱼电声
  • 微信公众号
  • weinxin
  • 小鲤鱼
  • 微信号
  • weinxin
评论  0  访客  0
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: