Question

I tried to create a visual web part and publish it to SharePoint online:

I created a visual web part at local using SharePoint server 2016 and to publish to SharePoint online, I selected "Sandboxed Solutions".

enter image description here

I tried to run test at local and publish to SP Online, but both throws errors:

$Resources:core,ImportErrorMessage;

enter image description here

enter image description here

Can I create visual web part for SharePoint online in SharePoint 2016?

Était-ce utile?

La solution

Code based sandbox solutions contain server-side code and the solution contains .Net assembly file (.dll). SharePoint online doesnot support Code-based sandbox solutions.

You could transform sandbox solutions to the SharePoint Add-in model:

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/sandbox-solution-transformation-guidance

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top