Loading...

Error “A web part or Web Form Control on the page cannot be displayed or imported.”

Title

Error “A web part or Web Form Control on the page cannot be displayed or imported.”

Description

Error “A web part or Web Form Control on the page cannot be displayed or imported.”

Please wait...

When trying to configure the Quest Caption Display webpart the following error is received:
“Web Part Error: A web part or Web Form Control on the page cannot be displayed or imported . The type could not be found or it is not registered as safe.”

This error is intermittent it works fine and sometimes it gives the error.

Resolution

1. Open the web.config file of the web application giving the error in Notepad.

2. Search and add the safe control in the webpart if it is not present:

"<SafeControl Assembly="WA.DataViewer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b" Namespace="WA.DataViewer" TypeName="*" Safe="True" />
<SafeControl Assembly="WA.Display, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b" Namespace="WA.Display" TypeName="*" Safe="True" />
<SafeControl Assembly="WA.ListForm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b" Namespace="WA.ListForm" TypeName="*" Safe="True" />
<SafeControl Assembly="WA.Navigation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b" Namespace="WA.Navigation" TypeName="*" Safe="True" />
<SafeControl Assembly="WA.PersistentSelector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b" Namespace="WA.PersistentSelector" TypeName="*" Safe="True" />
<SafeControl Assembly="WA.SystemIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b" Namespace="WA.SystemIntegration" TypeName="*" Safe="True" />"

3. The error goes away once the safe control is added to the web.config file.

Leave a Reply