Solved

Safe control problem adter updating the WSP

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now