Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Custom Webpart: Type not found or not registered as safe.

$
0
0
Hi - 'm trying to implement this web part concept provided on MSDN in our SP2013 environment using VS2012.

MSDN SPDataQuery Class Example:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2

I've created a solution in VS2012 and verified that the proper SafeControls are present in the Package Manifest. I even copied them into the web.config as well. The solution deploys and activates fine to the GAC. However whenever I insert it into a web part page, I keep getting the "A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe." error.

I have spent hours on Google, Technet, and StackExchange, etc., and feel I've tried everything - rarely have I found anyone post that they got it fixed. I've tried retracting & redeploying. I've verified versions on GAC and in WebConfig. I even rebuilt it to make sure I have not changed any names along the way.

I desperately need some help to get this working (or another way to pull all site collection documents into a grouped view) - my deadline is Wednesday! Any suggestions are appreciated!

Thanks!

Josh



Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>