Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1196
  • Last Modified:

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

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
Christopher Gore
Asked:
Christopher Gore
  • 4
  • 3
  • 2
1 Solution
 
chapmanjwCommented:
If you have it in the web.config of the IIS folder, you may simply need to do an iisreset.
0
 
Christopher GoreSolutions ArchitectAuthor Commented:
No. I have done an iisreset as well as physically reset the server several times.
0
 
chapmanjwCommented:
Which web.config file (what path is it located in) did you add the safe control to?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Christopher GoreSolutions ArchitectAuthor Commented:
Web config in the 80 virtual directory which is my root site.
0
 
rseabirdCommented:
To get a more detailed error message, edit your web.config so it doesn't show custom errors (<customErrors mode="Off">)
0
 
Christopher GoreSolutions ArchitectAuthor Commented:
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
 
rseabirdCommented:
0
 
Christopher GoreSolutions ArchitectAuthor Commented:
No. I'm not sand boxing it.
0
 
rseabirdCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now