Assistance Required for Error in Level 3 - Translating .NET Libraries Lab

Hello,

I hope this message finds you well.
I'm reaching out because I'm encountering an error while working on the Level 3 - Translating .NET Libraries lab.

When I follow the instructions in the textbook and try to preview the SampleApp (located on the right side of the editor) or set the target file using Shift + F12, an error occurs.

I received the following error message:

"Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

Additionally, the log displays the following warning:

"Warning: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]."

 

According to the error log, I used Windows + R to open regedit, created a DWORD entry as shown in the image, and changed the value to 1, but the error still persists.

Registry Editor window showing the path HKEY_LOCAL_MACHINESOFTWAREMicrosoftFusion with DWORD entries for ForceLog, LogFailures, LogResourceBinds, and LogPath set to 1.

Could you please help me resolve this issue?

Thank you in advance for your support.



Generated Image Alt-Text
[edited by: RWS Community AI at 4:41 AM (GMT 1) on 12 May 2025]
emoji
  • "Probability score": 0.8

    "Question improvement suggestion": Please provide the exact version of Trados Studio you are using and any recent changes to your system or software. Also, it would be helpful if you could provide the operating system and its version.

    In the meantime, based on the information you have provided, here is a suggested answer to your question:

    Hello,

    Based on the error message you provided, it seems like the 'Microsoft.CodeAnalysis' assembly or one of its dependencies is missing or not found. This assembly is a part of the .NET framework, which is used by Trados Studio for various operations.

    Here are some steps you can try to resolve this issue:

    Step 1: Ensure that you have the correct .NET framework installed. Trados Studio requires .NET framework 4.7.2 or higher. You can download it from the official Microsoft website.

    Step 2: If the correct .NET framework is installed, try repairing the .NET framework installation. You can do this from the 'Programs and Features' section in the Control Panel.

    Step 3: If the issue persists, try reinstalling Trados Studio. Before reinstalling, make sure to back up any important data like Translation Memories and Term Bases.

    Step 4: If none of the above steps work, you might need to manually add the 'Microsoft.CodeAnalysis' assembly to the Global Assembly Cache (GAC). This is a more advanced step and should be done with caution. You can find instructions on how to do this on the Microsoft website.

    Please note that modifying the registry, as you have done, should be done with caution as it can cause serious issues if done incorrectly. It's recommended to create a backup of your registry before making any changes.

    I hope this answer addressed your question. If not, please reject the answer, add the question improvement suggestion information, and click the RWS Community AI checkbox on the right to try again.

    RWS Community AI

    emoji