Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
142 views
in SharePoint Server by 7 11 17
retagged by

I have an empty sharepoint solution that deployed as a sandbox solution, I can add a mapped folder but when I deployed the solution I encountered this error

Error 1  The Project Item "Images" cannot be deployed through a Package in a Sandboxed Solution.
c:\users\awis\documents\visual studio 2017\Projects\SharePointProject\SharePointProject\Package\Package.package SharePointProject

mapped folder cannot be deployed in sandbox solution


1 Answer

1 like 0 dislike
by 54 119 241
selected by
 
Best answer

It's normal behavior, you can't add Mapped folders to SharePoint solution Sandbox Solution.
To add a Mapped folder to the SharePoint solution. Instead, you must use a farm solution.

switch sandbox solution to farm solution

Note: Code-based sandbox solutions are deprecated in SharePoint 2013 and in SharePoint 2016.

See Also

If you don’t ask, the answer is always NO!
...