1

When the upgrade of 2007 to 2010 took place i started to get errors for my webparts on my website as mentioned below: Error[1]

Web Part Error: 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.

Show Error Details

[UnsafeControlException: 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.]
  at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Guid guid, Guid solutionId, String assemblyFullName, String typeFullName, Boolean throwIfNotFound) 
  at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) 
2
  • Have you tried re-deploying your webparts after the upgrade to see if it helps?
    – user2536
    Nov 15, 2012 at 9:07
  • in my case it was because i was working in new UAT farm which have not that Webpart Deployed at all. check that you are not doing the same mistake
    – Iman
    Sep 6, 2015 at 11:22

3 Answers 3

2

You need to add the web part type as safe control in the web applications "web.config" file and in the configuration > SharePoint > SafeControls section. The general format is like below:

Just replace AssemblyName, AssemblyVersion, AssemblyCulture, AssemblyPublicKeyToken, The class name of the web-part and The class name of the web-part with the information to your web-part.

0

This is usally shown very clear in the Trace logs. Check the LOGS directory on your front ends and search for the error.

0

Here you can find a step by step tutorial to track the error cause: http://www.bluedoglimited.com/SharePointThoughts/Lists/Posts/Post.aspx?ID=189

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.