Error 'file was not found' when running Add-SPSolution on sharepoint mangament shell
If you get the error message
when running the command
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:
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:
- Run the Power Shell as Administrator (right click > Run as administrator)
- Do NOT copy paste the command, parameter and file but write it by hand entirely! Use the tab completion to ensure correct spelling.
Comments