previously I asked on sandbox solutions in 2013 here and part of the solution was
[...] coded sandboxed solutions will continue to work in on-premise SharePoint [...]
Yet, I still could not manage to activate even the simplest (empty project, one feature, one event receiver on that feature, no code...) solution. The error is always: Error occurred in deployment step 'Add Solution': An unknown exception occurred while executing a sandboxed code solution request in the worker process.\r\n|0
On my search I encountered (e.g. here and here) the fact, that this seemingly is supposed to happen on dev-machines (i.e. single-sever-all-in-one-SP-installations).
However, there was one answer that suggested
Set-SPLogLevel -Identity "SharePoint Foundation:Sandboxed Code Service" -TraceSeverity "Verbose"
Restart-Service -Name "SharePoint User Code Host"
And now... This fixed the error for me - and I can't comprehend why this is.
- Can someone verify the "fix"?
- Can someone shed some light on why this might be?