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

Single user: Cannot create instance of 'RadChart'

6 Answers 85 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 28 Mar 2011, 03:09 PM
I have a large .net application using RadChart's with hundreds of users across a wide range of setups who are not encountering any trouble at all.

Then there's a single user getting an exception:

Outer Exception Details:
Message: Cannot create instance of 'RadChart' defined in assembly 'Telerik.Windows.Controls.Charting, Version=2010.3.1110.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'.

The .net framework redistributable is packaged with my installer, so I know that it is present on his machine (I'm build against 3.5).
I have had him repair and reinstall the framework also but the issue remains.

I'm at a loss - it's obviously environment related else other users would be effected. Any advice greatly appreciated.

6 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 31 Mar 2011, 03:53 PM
Hello Adam,

One idea this might be happening is if there is a mismatch between the versions of deployed Telerik binaries. For example, the Telerik.Windows.Controls.Charting.dll depends on Telerik.Windows.Controls.dll and Telerik.Windows.Data.dll. The latter assemblies contain core functionality in use by the charts. If there is a version mismatch between the three, this could be the reason the user is seeing the error. Perhaps a re-deployment could solve the problem?

Kind regards,
Vladimir Milev
the Telerik team
0
Adam
Top achievements
Rank 1
answered on 31 Mar 2011, 04:51 PM
Vladimir, thanks for your reply.

This user has the same version of the software installed as hundreds of other users and is the only person experiencing this issue. If there was a mis-match in Radcontrols binaries it seems likely that this problem would be widespread. Can you see a scenario where a mismatch like this could create an issue for a single user?

Even with that said, this user has reinstalled the software with no change.

Telerik binaries deployed with this application are all version 2010.3.1110.35
Those are:
Telerik.Windows.Data
Telerik.Windows.Controls
Telerik.Windows.Controls.Charting
Telerik.Windows.Controls.Gauge
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation

I received response from the user to confirm the operating system: Windows 7 Home edition

Further assistance/advice would be greatly appreciated.
0
Vladimir Milev
Telerik team
answered on 05 Apr 2011, 07:34 AM
Hello Adam,

Is there any chance tha user GAC-ed some older versions of the controls by mistake? In some cases GAC assemblies could take priority over local binaries installed with the product.

Best wishes,
Vladimir Milev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Adam
Top achievements
Rank 1
answered on 05 Apr 2011, 01:29 PM
Vladamir,

That makes sense, but this is the first version of the product that I have released containing Telerik assemblies and I dont install anything to the GAC. In other words for him to have other Telerik assemblies in the GAC he would have to have got them from a different product. My product is for home use rather than business, so it's unlikely that he has come across any older Telerik assemblies, although I'll check his GAc to be sure.

In the meant time any other thoughts that you have would be greatly appreciated here.

Thanks,
Adam
0
Pete Davis
Top achievements
Rank 1
answered on 05 Apr 2011, 07:17 PM
Is it possible some other application is installed that also uses Telerik controls and perhaps that application has loaded them into the GAC?
0
Vladimir Milev
Telerik team
answered on 07 Apr 2011, 02:09 PM
Hi Pete Davis,

Well, this is a possibility, but I don't know for sure and you don't know for sure. One way to troubleshoot this problem is by using the assembly binding log viewer. It will display more information on why the error happens.

Regards,
Vladimir Milev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Adam
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Adam
Top achievements
Rank 1
Pete Davis
Top achievements
Rank 1
Share this question
or