Solved

Safe control problem adter updating the WSP

Posted on 2012-03-27
1
483 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

632 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