Unable to add selected Web Part(s). Error

Sep 16, 2009 at 10:35 AM

Hi

I have successfully installed the part but when I try to add the web part, I get this error;

Unable to add selected Web Part(s).

ChartPart: 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.

Please help.

Thanx.

 

Coordinator
Sep 16, 2009 at 6:52 PM

Hi Peneplope,

have you installed all the prequisities, like the Microsoft Chart Controls?
Please check your SharePoint log files (12-hive/LOGS) and search for ChartPart, please post any errors here.

/WW

Sep 21, 2009 at 7:15 PM

Hi, I have the same problem and realized that I did not have the .NET 3.5 Chart Controls installed.  Install the Chart Controls fixed the problem.  

 

Jul 23, 2010 at 4:47 PM
I did that and have the same problem, my logs are: 7/23/2010 09:20:59.42 w3wp.exe (0x0584) 0x0CD4 Windows SharePoint Services General 72nz Medium Videntityinfo::isFreshToken reported failure. 07/23/2010 09:21:03.32 w3wp.exe (0x0584) 0x0CD4 Windows SharePoint Services Web Parts 8l4f Monitorable Error importing WebPart. Assembly ChartPart, Version=2.0.1.0, Culture=neutral, PublicKeyToken=b674fbef227b83bb, TypeName. ChartPart.ChartPartWebPart 07/23/2010 09:21:03.34 w3wp.exe (0x0584) 0x0CD4 Windows SharePoint Services Web Parts 89ku High Failed to add webpart http%253A%252F%252Fwin2k3std%252F%255Fcatalogs%252Fwp%252FChartPart%252Ewebpart;ChartPart. Exception Microsoft.SharePoint.ApplicationRuntime.SafeControls+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.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections) at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb) at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, SPWeb spWeb) at Microsoft.SharePoint.WebPartPages.WebPartQu... 07/23/2010 09:21:03.34* w3wp.exe (0x0584) 0x0CD4 Windows SharePoint Services Web Parts 89ku High ...ickAdd.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 07/23/2010 09:21:45.56 w3wp.exe (0x0584) 0x0E88 Windows SharePoint Services General 0 Medium Entering MRU trim routine. 07/23/2010 09:21:45.56 w3wp.exe (0x0584) 0x0E88 Windows SharePoint Services General 0 Medium Initial table size: 134390209 in 372 entries 07/23/2010 09:21:45.56 w3wp.exe (0x0584) 0x0E88 Windows SharePoint Services General 0 Medium Final table size: 134390209 in 372 entries
Aug 12, 2010 at 6:32 PM

I also am having problems loading the webpart after deployment. Is the WSP file safe? Also is it because the wsp file is not in the GAC? it is in the Inetpub. Here is my log error.

Error importing WebPart. Assembly  ChartPart, Version=2.0.1.0, Culture=neutral, PublicKeyToken=b674fbef227b83bb, TypeName. ChartPart.ChartPartWebPart 
Failed to add webpart https%253A%252F%252Fsharepoint%252Etrusant%252Ecom%252F%255Fcatalogs%252Fwp%252FChartPart%252Ewebpart;ChartPart. 
Exception Microsoft.SharePoint.ApplicationRuntime.SafeControls+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.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)    
at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)    
at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, SPWeb spWeb)   
at Microsoft.SharePoint.WebPartPages.WebPartQuickAdd.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 

 

I also used the following when deploying chartpart2.0

allcontenturls

allowgacdeployment

allowcaspolicies

immediate

force

Oct 26, 2011 at 7:53 PM

First off make sure you have MSChartControl installed on the server (Sharepoint Server)

Secondly, make sure your .Net 3.5 is up to date.  Install the MSChartControl.wsp to make the MS Chart Controls available from within Sharepoint 2007.

Third, Install the ChartPart install package (ChartPart 2.0.wsp), do the necessary addsolution and deploysolutions necessary.  including going to the site(s) to have the control used and activating the feature there for posterity sake.

Lastly, keep your eye on the Event Viewer while doing this deployment to see if anything pops up.