08 August 2012

Error 'file was not found' when running Add-SPSolution on sharepoint mangament shell

If you get the error message
The specified file was not found.
when running the command 
Add-SPSolution -LiteralPath XXXXXXXX
but the XXXXXXX file exists and the connected user has the right to read this file, execute the two following steps before executing the command:
  1. Run the Power Shell as Administrator (right click > Run as administrator)
  2. Do NOT copy paste the command, parameter and file but write it by hand entirely! Use the tab completion to ensure correct spelling.
(In my case the XXXXXXX file was  'C:\Program Files\Microsoft\SharePoint 2010 Administration Tookit\Content Management Interoperability Services (CMIS) Connectors\spcmis.wsp')
Post a Comment