New to Telerik JustMock? Download free 30-day trial

Troubleshooting

Symptoms Resolution
TypeLoadException

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.

To fix this error, run "Visual Studio Command Prompt" or "Developer Command Prompt" as an Administrator and execute the following command:
>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:
  1. Open Visual Studio, go to TOOLS -> Extensions and Updates....
  2. If JustMock is in the list of installed extensions, uninstall it from there.
  3. Go to the extensions folder of Visual Studio. Default location: C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE\Extensions
  4. Delete all folders that have Telerik.JustMock.* DLLs in them (the name of the folders should follow pattern like this "4uus3xan.ur4" )
  5. Run Notepad as an Administrator.
  6. Go to File -> Open and navigate to C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE\Extensions
  7. Change the file types to "All Files" .
  8. 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.
  9. Go to the JustMock install folder (default is: C:\Program Files (x86)\Progress\Telerik JustMock\Libraries ).
  10. Run Telerik.JustMock.VS.vsix as administrator and proceed with the manual installation of the Telerik JustMock extension.
  11. Check if the missing JustMock extension/menu is fixed afterwards.
  12. If the above does not solve the issue, it is likely that you need to repair Visual Studio:
    • Go to Uninstall a Program from the Windows Control Panel.
    • Right click on Microsoft Visual Studio and select Uninstall/Change .
    • Select Repair/Reinstall from the options.
In this article