Why do I get the error "Unrecognized function or variable 'ctfroot'" when running "MATLABWebAppServer.exe"?
87 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2020 年 2 月 27 日
編集済み: MathWorks Support Team
2024 年 7 月 31 日
Why do I get the error "Unrecognized function or variable 'ctfroot'" when running the Development version of MATLAB Web App Server - "MATLABWebAppServer.exe"?
Here is a screenshot of the exact error:

採用された回答
MathWorks Support Team
2024 年 7 月 31 日
編集済み: MathWorks Support Team
2024 年 7 月 31 日
This error message is caused because the MATLAB file 'ctfroot.m' has not been properly extracted when the Development Version of MATLAB Web Server has been installed.
The first step to take to resolve the issue is to locate the folder "compiler" in the MATLAB Runtime cache directory. MATLAB Runtime cache can be found by following instruction in
For example, for R2024a your "compiler" folder might be
C:\Users\<username>\AppData\Local\Temp\<username>\mcrCache24.1\MATLAB0\toolbox\compiler
The "compiler" folder should contain the 'ctfroot.m' file.
If this file or one of the folders above are missing, you can try to force extracting these files again by following the steps below:
1. Run the 'MATLABWebAppServer.exe' and close the 'MATLABWebAppServer.exe'
2. Delete the toolbox folder from the MCRCache24.1/MATLAB0 directory
3. Run the' MATLABWebAppServer.exe' again
The toolbox folder will be then extracted again and the issue should disappear.
1 件のコメント
Image Analyst
2020 年 7 月 7 日
編集済み: Image Analyst
2020 年 7 月 10 日
The same thing happened to us. Running fine with R2020a, then all of a sudden it quite working with this error. We have no idea why. Tried running setup.exe for the main MCRinstaller (we have the full 2 GB installer rather than the WebAppServer that downloads the 2 GB of software) and it didn't fix it. In Windows 10, we had to actually
- Go to the c:\Users\<username>\AppData\Local\Temp\<username> folder and
- Delete the mcrCache9.8 folder, and then
- Run setup again.
That fixed it, at least for now.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Web App Server についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!