$Resources:core,Import ErrorMessage error while adding visual web part in SharePoint 2016

Recently I developed a visual web part using visual studio 2017 for SharePoint 2016 site. I deployed the web part to SharePoint 2016 site and when I try to add to it is giving me an error saying: $Resources:core,Import ErrorMessage. And it did not allow me to add the web part to the page.

Resources:core Import ErrorMessage
Resources:core Import ErrorMessage

$Resources:core,Import ErrorMessage SharePoint error

Here I first developed a sandboxed solution instead of a farm solution and then that sandboxed solution, I added a visual web part into the solution.

Since SharePoint visual web parts are not allowed in solution, I changed it to farm solution by following the below steps:

Select the Project name and press F4. This will open the Properties dialog box. Then change “Sandboxed Solution” property to False. And then we deployed the web part. But it gave the above error.

To resolve this we need to change another property “Include Assembly In Package” to True.

To do this:

  • Select the Project, press F4.
  • Then change “Include Assembly In Package” to True.
$Resources:core,Import ErrorMessage error while adding visual web part in SharePoint 2016
$Resources:core,Import ErrorMessage error while adding visual web part in SharePoint 2016

Then deploy the visual web part and it should work fine.

You may like following SharePoint tutorials:

In this SharePoint tutorial, we learned how to fix error $Resources:core,Import ErrorMessage SharePoint error which comes while developing a visual web part in SharePoint 2016.

>