first post here.
I've having a hard time with a couple things in SharePoint 2013, one is: I'm developing web parts to deploy to a SharePoint site. The problem is that every single time I deploy them I have issues adding them to the page or, if they have already been added, I have issues viewing them.
The error for both situations is:
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type XYZ Version=18.104.22.168, Culture=neutral, PublicKeyToken=XYZ could not be found or it is not registered as safe. Correlation ID: XYZ.
The ONLY way to fix this and be able to add/view the web parts is by unistalling/installing/disabling/enabling it via PowerShell.
As you may imagine, this causes problems when trying to debug a web part since when debugging the web part is not properly activated/installed.
There must be a reason for this to happen. I could not find specific information online.
Any help appreciated. Thanks