An unknown exception occurred while executing a sandboxed code...
Hi All,
I've been experimenting with different approaches to creating different types of solutions within Visual Studio 2012 and have stumbled across an issue when trying to activate or consume features in a SharePoint 2013 Sandboxed Solution. I end up with the error:
An unknown exception occurred while executing a sandboxed code solution request in the worker process.\r\n|0
I appreciate these are now allegedly "deprecated" in favour of the new "Apps for SharePoint" model but I can see that the use of server side code may still be a preference of many.
Steps to reproduce the error:
- Start Visual Studio 2012
- New Project...
- Within Office/SharePoint underneath Visual C#, select "SharePoint Solutions" and choose "SharePoint 2013 Project".
- Keep the Default Name and Choose "OK".
- Choose "Deploy as a Sandboxed Solution" and choose Finish.
- Right-Click the Project Node and Choose Add .... new item ... and select "Visual Web Part".... choose "ok"
- Within the "VisualWebPart1.ascx" file in the designer - simply add "Hello World" within an HTML "P" tags beneath the last Control declaration.
- Hit F5 and agree to attach the debugger or right-click and Deploy.
- In SharePoint, Edit your page, choose Insert .... WebPart ... and within the "Custom" folder, pick your VisualWebPart1.
Boom!!! - Error as appears above.
Interestingly, the same process works perfectly fine for "Farm Solutions" so one might assume there's a permissions issue with SPUCWorkerProcess that Sandboxed solutions run under.
Interestingly ... a little hunt around the web seems to point to the fact that running SharePoint 2013 on the SAME physical machine as the DC running Windows Server 2012 is Unsupported.
Windows 2008 R2 seems to be unaffected ... however the CloudShare Image for SharePoint 2013 RTM is Windows 2012.
Further details in this TechNet article if it helps anybody.
Steve
-
Hey Everyone. Just ran into this.
Essentially what this means is...
That you cannot develop a SharePoint 2013 sandbox solution on a VM that has a domain controller installed.
Conclusion: Since CloudShare ONLY offers a SharePoint 2013 VM with a domain controller installed you cannot develop Sandbox Solutions for SharePoint 2013 with CloudShare.
Will this be resolved in the future?
Thanks,
Tom
-
Hey Tom - try the 'unconfigured' or 'server bits only' template. That one should be exactly what you need. Or we also have a full pre-built SP2013 farm in our Showcase. The farm version has a separate AD-DC.
-
Hi,
I have recently subscribed for cloud share account and running into same issue. This is my environment I have selected one of the options available.
Project Server 2013 RTM
Description: OS: Windows Server 2012 RC x64
Spec: 80 GB HD / 5 GB RAM
Installed:
• Project Server 2013 RTM
• SharePoint Server 2013 RTM
• Office Professional Plus 2013 RTM
• Visio 2013 RTM
• Visual Studio 2012 Professional EditionAdditional Information:
• Service accounts password: Qazwsx1
• SharePoint Farm Passphrase: ILoveSp2013
OS: WindowsWhat else do I need in order to be able to create visual web parts , web parts and be able to use them in the VM?
Thanks
Brano
Please sign in to leave a comment.
Comments
7 comments