Solved

Safe control problem adter updating the WSP

Posted on 2012-03-27
1
479 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] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

734 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