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 2010-09-16
9
1,191 Views
Last Modified: 2012-06-27
I am having an issue with a webpart that is located on CodePlex.  It is called SmartParts for SharePoint 2010.  I can deploy this webpart without issues.  The webpart is in the GAC.  The web.config is updated with Safe Controls.  I even tried to put it in the bin folder for the SharePoint site.  I also restarted my server each time I deployed and removed, just in case.  I am getting the the following error when trying to add the deployed webpart to a webpart page:

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

Has anyone else had this issue with this webpart or other webparts and been able to resolve it?

Here is the location of the file: http://smartpart2010.codeplex.com/


0
Comment
Question by:Christopher Gore
[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
  • 4
  • 3
  • 2
9 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33694267
If you have it in the web.config of the IIS folder, you may simply need to do an iisreset.
0
 
LVL 1

Author Comment

by:Christopher Gore
ID: 33694302
No. I have done an iisreset as well as physically reset the server several times.
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33696138
Which web.config file (what path is it located in) did you add the safe control to?
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 1

Author Comment

by:Christopher Gore
ID: 33697387
Web config in the 80 virtual directory which is my root site.
0
 
LVL 8

Expert Comment

by:rseabird
ID: 33699523
To get a more detailed error message, edit your web.config so it doesn't show custom errors (<customErrors mode="Off">)
0
 
LVL 1

Author Comment

by:Christopher Gore
ID: 33700771
The error I get happens when I try to add the web part to the page.  It is a pop up message not a browser fail error. I can however add other web parts without any issues.  The best way to see what is happening on my site is to install this web part on your version of SharePoint 2010 and try to add the web part to a page.
0
 
LVL 8

Expert Comment

by:rseabird
ID: 33700806
0
 
LVL 1

Author Comment

by:Christopher Gore
ID: 33700907
No. I'm not sand boxing it.
0
 
LVL 8

Accepted Solution

by:
rseabird earned 500 total points
ID: 33700964
I am not sure yet how this in 2010 works, but check out http://msdn.microsoft.com/en-us/library/dd583158%28office.11%29.aspx
This goes about the web.config part <trust level="WSS_Minimal" originUrl="" />
I've had the same kind of situation of a MOSS 2007 environment. Changing the trust level solved this problem.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

623 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