Learn how to a build a cloud-first strategyRegister Now

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

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.

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.

After upgrading Test Environment - MOSS 2007 SP1 to SP2 + all latest Cumulative Updates, I am getting the above errors for individual site's main page as I think it's customised in xml format with the following header:

<?xml version="1.0" encoding="utf-8"?><DocLibTree>      


Adding ?contents=1 to one of the test site, I can see the following:

Webpart Title                      Type                             Open on Page?
Error                                   ErrorWebPart               Yes

Checking on production site:

Document Library Index      DocLibIndexWebPart   Yes

What do I need to do in order to fix this?  Please note the test environment is an exact duplicate of our prod environment which was created last month.  So should I assume the webconfig should be the same as the production environment?

Cheers, Ezs
0
ezskol
Asked:
ezskol
  • 2
1 Solution
 
ezskolAuthor Commented:
Nevermind, I resolve the issue myself.

For some reason, one line of code was missing and I am not sure if it's been replaced by this line:

Src="~/_controltemplates/*" IncludeSubFolders="True" Safe="True" AllowRemoteDesigner="True"

I did a compare with two web.config and noticed that one of the third party web part was not added causing issues over 40 different pages.

phew.
0
 
ezskolAuthor Commented:
Fixed issue by adding a third party line into the web.config of the main intranet.
0

Featured Post

Technology Partners: 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!

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