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:
- Open Visual Studio, go to TOOLS -> Extensions and Updates....
- If JustMock is in the list of installed extensions, uninstall it from there.
- Go to the extensions folder of Visual Studio. Default location: C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE\Extensions
- Delete all folders that have Telerik.JustMock.* DLLs in them (the name of the folders should follow pattern like this "4uus3xan.ur4" )
- Run Notepad as an Administrator.
- Go to File -> Open and navigate to C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE\Extensions
- Change the file types to "All Files" .
- 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.
- Go to the JustMock install folder (default is: C:\Program Files (x86)\Progress\Telerik JustMock\Libraries ).
- Run Telerik.JustMock.VS.vsix as administrator and proceed with the manual installation of the Telerik JustMock extension.
- Check if the missing JustMock extension/menu is fixed afterwards.
- 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.
|