This is a migrated thread and some comments may be shown as answers.

Prometheus keeps adding Charting assembly to web.config

2 Answers 194 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
dingjing
Top achievements
Rank 2
dingjing asked on 20 Apr 2008, 03:12 AM
I use Prometheus RadGrid, RadCalendar, etc. in my applications.  But I do not use Charting. However, Prometheus automatically inserts Telerik.Charting assembly into my web.config.

<add assembly="Telerik.Charting, Version=1.7.2.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763" /> 

It doesn't cause a problem on my localhost, because the assembly is in GAC. But it fails my application on the production server, because the assembly is not there..

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 22 Apr 2008, 02:29 PM
Hi dingjing,

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:
  • If you have Telerik.Charting installed in GAC you will get the following line in the web.config file:
<add assembly="Telerik.Charting, Version=1.7.1.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

  • 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=1.7.1.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' or one of its dependencies. The system cannot find the file
specified.


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.



Best wishes,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve Elsbury
Top achievements
Rank 1
answered on 19 May 2008, 07:01 PM
Dinjgings point was that the line gets added to web.config automatically. If you remove it, it just adds itself back in again.
Tags
Chart (Obsolete)
Asked by
dingjing
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
Steve Elsbury
Top achievements
Rank 1
Share this question
or