Solved

A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe.

Posted on 2011-03-24
1
567 Views
Last Modified: 2012-05-11
Hi Folks,

I am getting this error whenever I am trying to add a web part on any sharepoint site.

"A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe."

Please let me know what could be wrong with my web part.
Thanks.
0
Comment
Question by:rgosai6149
1 Comment
 
LVL 14

Accepted Solution

by:
KoenVosters earned 500 total points
ID: 35214843
Your webpart isn't registered as a safe control in the web.config of the web application that you are putting it into:

http://msdn.microsoft.com/en-us/library/dd587360(v=office.11).aspx

You should have a line in your web.config that resembles this:

<SafeControl
   Assembly="SimpleWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=def148956c61a16b"
   Namespace="MyWebParts"
   TypeName="*"
   Safe="True"
/>

but then with your assembly and classname and publickeytoken
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

Suggested Solutions

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…
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…
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 …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

26 Experts available now in Live!

Get 1:1 Help Now