# Troubleshooting

| Symptoms                                                                                                                                              | Resolution                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **TypeLoadException**  <br/>                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <br/>**Could not load type 'Telerik.JustMock.Profiler' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.** | It is likely that there are NGENed assemblies for the /Profile scenario. Usually, this can happen when some profiler-based software tries to improve its start-up performance by NGENing system assemblies.<br/><br/>To fix this error, run *"Visual Studio Command Prompt"* or *"Developer Command Prompt"*  **as an Administrator** and execute the following command:  <br/>`>ngen uninstall * /profile`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **"Unable to obtain public key for StrongNameKeyPair" exception in non-elevated tests**                                                               | Such exception may occur if the Crypto\RSA folder does not have **Read & execute** or **List folder contents** permissions. To fix this you need to set them manually. The folder can be found at *%appdata%\Microsoft\Crypto\rsa*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Missing Visual Studio extension or JustMock menu after successful installation**                                                                    | Try the following:<ol><li>Open Visual Studio, go to **TOOLS** -> **Extensions and Updates...**.</li><li>If JustMock is in the list of installed extensions, uninstall it from there.</li><li>Go to the extensions folder of Visual Studio. Default location: *C:\Program Files (x86)\Microsoft Visual Studio \<version>\Common7\IDE\Extensions*</li><li>Delete all folders that have **Telerik.JustMock.\*** DLLs in them (the name of the folders should follow pattern like this *"4uus3xan.ur4"* )</li><li>Run **Notepad** as an Administrator.</li><li>Go to **File** -> **Open** and navigate to *C:\Program Files (x86)\Microsoft Visual Studio \<version>\Common7\IDE\Extensions* </li><li>Change the file types to *"All Files"* .</li><li>Open extensions.configurationchanged file and save it without changing anything in it( **File** -> **Save** ). This will refresh the list of extensions that Visual Studio uses.</li><li>Go to the JustMock install folder (default is: *C:\Program Files (x86)\Progress\Telerik JustMock\Libraries* ).</li><li>Run **Telerik.JustMock.VS.vsix** as administrator and proceed with the manual installation of the Telerik JustMock extension.</li><li>Check if the missing JustMock extension/menu is fixed afterwards.</li><li>If the above does not solve the issue, it is likely that you need to repair Visual Studio:<ul><li>Go to **Uninstall a Program** from the Windows Control Panel.</li><li>Right click on **Microsoft Visual Studio** and select **Uninstall/Change** .</li><li>Select **Repair/Reinstall** from the options.</li></ul></li></ol> |
