Problem Description
After installing COMSOL Multiphysics, I receive an unexpected error when launching it. Looking in the log file, it points to an issue with cstextrenderer_wpf as per below
2020-01-08T13:52:42.170+01:00 Could not load file or assembly 'cstextrenderer_wpf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified module could not be found.
2020-01-08T13:52:42.170+01:00 at ComsolDesktop.TextRenderer.CsTextRenderer.Init(String distrDir)
at ComsolDesktop.DesktopApplication..ctor()
at ComsolDesktop.App.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Solution
The solution to this issue is to manually run the installers for the Microsoft Visual C++ Redistributable Packages found in the ext directory on the COMSOL DVD image.
Do the following:
- Download the COMSOL Multiphysics DVD image from the Product Download page
- Go to the ext directory.
- Run the file called vcredist_vc141_x64.exe
- Start COMSOL Multiphysics again.
COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.