Upgrading pages with existing charts from pre-2.0

Sep 28, 2009 at 7:55 PM

Hi.

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?

Thanks,

Craig

Coordinator
Sep 29, 2009 at 5:49 AM

Hi,

you can upgrade your current ChartParts using assembly redirection.

Add this to your web.config

<runtime> 
<assemblyBinding> 
<dependentAssembly> 
<assemblyIdentity name="ChartPart" publicKeyToken="b674fbef227b83bb" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="2.0.1.0" /> 
</dependentAssembly> 
</assemblyBinding> 
</runtime>

Read the documentation on downloads for more information.

/WW