When deploying solution, an error occurred:
“Cannot add the specified assemble to the global assembly cache: Newtonsoft.Json.dll ”
This error indicates that “Newtonsoft.Json.dll” is locked on SharePoint servers. Try the following methods to fix this error:
• Restart IIS on all SharePoint servers
• Or, restart timer job services on all SharePoint servers
• If the above methods do not work, try unlocking the assembly files on the server.
After the above methods have been tried, deploy the product.
Applies for: SharePoint 2013, SharePoint 2010, SharePoint 2007