Upgrading pages with existing charts from pre-2.0

Sep 28, 2009 at 8:55 PM


I have existing aspx pages that have a bunch of pre-2.0 chartparts.  After I load the new 2.0 release, the aspx page loads but the web parts are all showing errors. 

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.

If I create a new ChartPart webpart, it loads fine.

Please tell me there is a way to keep my old charts with this upgrade?



Sep 29, 2009 at 6:49 AM


you can upgrade your current ChartParts using assembly redirection.

Add this to your web.config

<assemblyIdentity name="ChartPart" publicKeyToken="b674fbef227b83bb" culture="neutral" />
<bindingRedirect oldVersion="" newVersion="" /> 

Read the documentation on downloads for more information.