Solved

SharePoint Web Part Error

Posted on 2011-02-22
2
298 Views
Last Modified: 2012-06-27
I get the following error when I try to add a web part into a sharepoint page:

Unable to add selected web part(s).
Solution Web Part: A Web Part or Web Form Control on this Page cannot be displayed or imported.  The type is not registered or safe.


I know that to resolve this I need to add something to my web.config file but 1) it does not show in  my solution that I have a web.config file and 2) What do I need to change in my web.config file.

Thanks for any help you can provide.
0
Comment
Question by:Isaac
2 Comments
 
LVL 6

Assisted Solution

by:sabby447
sabby447 earned 250 total points
ID: 34958634
Every sharepoint has a default web.config file, You can lookup the website in IIS admin, usually it is in c:\inetput\wwwroot\wss"  Here you will have a folder for your corresponding site, Inside the folder it will have web.config file having default entries, Here are next steps:

1. Register your dll if not already done, Please check at c:\windows\assembly to ensure you a entry for the above dll, If not then you can drag and drop that file (If need admin rights and would need to disable UAC if you are running as a domain account)

2. open the web.config file in notepad and look up the section for safecontrol and before the end of section add a new line which is in sync with above lines and points to this dll and hold information related to the the above dll from Assembly folder

Please share if you need any further information
0
 
LVL 8

Accepted Solution

by:
sandipkharde earned 250 total points
ID: 34959480
You can check this thread for more information where has similar issue.

http://www.experts-exchange.com/Networking/Sharepoint/Q_21419723.html
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint Foundation 2013 Search 11 79
SharePoint List Calculated Field 4 54
SharePoint Explorer Folder Access 4 61
jQuery parseHTML 6 44
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 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