Tuesday, April 1, 2014

Error: Some of the files failed to copy during deployment of the solution.

Sometimes installation of a wsp package to SharePoint 2010 server fails with the error message
"Some of the files failed to copy during deployment of the solution. <Server Name> : <Server URL>: SharePoint - 80 : Error: The copying of this file failed: MyProject.dll.
I/O error occurred.
<Server Name>: I/O error occurred."

After digging I found out that this was due to the dll in bin folder being locked by sharepoint 2010 timer services job.

Below powershell script stops and starts the timer job service again

http://practicalkungfu.net/2012/10/05/sharepoint-2010-restart-the-timer-service-on-all-service-in-the-farm-remotely/


No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...