Reputation: 13025
I'm trying to build a C# solution in Visual Studio 2008 written by other programmer. Visual Studio throws the following error:
Exception occurred creating type 'SoftwareFX.ChartFX.Chart, ChartFX, Version=6.2.1342.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce' System.ComponentModel.LicenseException: Couldn't get Design Time license for 'SoftwareFX.ChartFX.Chart'
I've never used SoftwareFX or ChartFX. Actually I'm C/C++ developer, not C# developer but have to debug this project. How to resolve this issue?
Thanks in advance.
Upvotes: 3
Views: 7956
Reputation: 11
My problem was that ChartFX trial license had expired and I had bought a new license to use. Clearing licenses.licx helped me solved my problem.
Upvotes: 1
Reputation: 161
Here is what you need to do. Simply open the form which contains the chart and just click on the chart once. This will create the license.licx file you need. Alternatively just create a new form and add the chart to this form. Compile the solution and delete the new form and you should be all sorted!
Upvotes: 1
Reputation: 13025
I've found a way: making licenses.licx
file a 0 byte file. After this the solution builds.
Upvotes: 5
Reputation: 564433
You need to install a licensed version of ChartFX, then reopen Visual Studio, and this should go away.
The error message is saying that you're trying to build a project that uses ChartFX, but do not have a valid license.
Upvotes: 1