Thanks for the input. Indeed, your approach solves the issue.
Here is some background for everyone concerned:
Telerik.Web.UI assembly references Telerik.Charting assembly. So each time you drag a "Prometheus" control from the toolbox to a page or build a page that has controls from Telerik.Web.UI, Visual Studio will perform one of the following two steps:
<add assembly="Telerik.Charting, Version=220.127.116.11, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>
- If you have Telerik.Charting installed in GAC you will get the following line in the web.config file:
- If you do not have Telerik.Charting installed in GAC you will get Telerik.Charting.dll copied to the Bin folder of your web application.
If you have installed RadControls "Prometheus" using the automatic installer (.exe file) Telerik.Charting has been installed in GAC. Either way you should not experience any issues during development.
However, if you have Telerik.Charting in GAC, when you deploy your website you might get the following error:
Could not load file or assembly 'Telerik.Charting, Version=18.104.22.168,
Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' or one of its dependencies.
The system cannot find the file
The reason for this is obvious - web.config file refers to Telerik.Charting assembly but it is not present in the GAC on the server and it has not been deployed with your web site. Now you can choose one of the following:
- If you use RadChart "Prometheus" -- copy Telerik.Charting.dll to the Bin folder of your website.
- If you do not use RadChart "Prometheus" -- remove the above mentioned line from the web.config file in your website.
Hope this helps.
the Telerik team