Solved

Safe control problem adter updating the WSP

Posted on 2012-03-27
1
475 Views
Last Modified: 2012-04-12
I created an visual webpart. Works well, but when I tried to update (Update-SPSolution...) my solution, web part does not work any more. It shows error:

	
Error [1] Web Part Menu
	 
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type XXX, XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXX could not be found or it is not registered as safe.

Open in new window


Seems like even visual studio refuses to deploy this application (something like: feature XXX is allready intalled. Use force attribute to ...) Even the rectract does not help.

What's going on? How do I fix this problem? I need to be able to update this solution.
0
Comment
Question by:tolppa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
svetaye earned 500 total points
ID: 37770629
Hello,
Is there any chance that you changed something in your web part settings? Something like namespace or class name?
In any case you need to check a couple of thing to figure it out:
1. Check the web.config of the web application that your solution has been deployed to. Do you see there a SafeControl tag with your solution assembly details? If not here is our issue.
2. You need to check an .spdata file of the web part to verify the Safe Control details:
http://www.21apps.com/sharepoint/namespace-not-token-spis/
3. You need to retract and delete your solution from Central Administration (if it's not a sandbox solution) and then try to package and deploy it again.

Please check this article also:
http://spointblog.sharepoint.com/Pages/Post.aspx?ItemID=24

I hope it helps.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 Document Library Newsletter View Count 3 92
Populating html form in Sharepoint using JSOM 11 90
Sharepoint KB 2 97
SharePoint 2013 URL Duplication Issue 5 67
If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question