I am creating a "Hello world" web part in Visual Studio 2015 and deploying it on SharePoint Foundation Server. It works: I can add it from "Custom web parts" and display it on a page.
Then I'm publishing it (Build-> Publish...-> Publish to file System
) and try to add the published file to SharePoint in Office 365 following this tutorial:
http://sharepoint-community.net/profiles/blogs/sharepoint-online-2013-web-part-deployment
Unfortunately I'm failing on step 7 - Activating Web Part - receiving this error:
"Sorry, something went wrong
Error validating assembly 'VisualWebPartProject6.dll'.
StringNotFound
TECHNICAL DETAILS"
There are no addidtional imports or anything like that. It is just a plain web part created in Visual Studio 2015 and a label created in designer with label.text = "hello world"
within Page_Load
.
How can I export my web part to SharePoint in Office 365?
-Edit
This is "Sandbox solution".
When im uploading(SharePointProject1.webpart
) file directly on site im getting
($Resources:core,ImportErrorMessage;
)