Solved

Safe control problem adter updating the WSP

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

12 Experts available now in Live!

Get 1:1 Help Now