无法获得“SoftwareFX.ChartFX.Chart”的设计时许可证C#错误解决方案
我正在尝试在 Visual Studio 2008 中构建由其他程序员编写的 C# 解决方案。 Visual Studio 抛出以下错误:
创建类型时发生异常 'SoftwareFX.ChartFX.Chart, ChartFX, 版本=6.2.1342.0,文化=中立, PublicKeyToken=a1878e2052c08dce' System.ComponentModel.LicenseException: 无法获得设计时许可证 'SoftwareFX.ChartFX.Chart'
我从未使用过 SoftwareFX 或 ChartFX。实际上我是 C/C++ 开发人员,不是 C# 开发人员,但必须调试这个项目。如何解决这个问题?
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我找到了一种方法:使
licenses.licx
文件成为 0 字节文件。此后解决方案构建。I've found a way: making
licenses.licx
file a 0 byte file. After this the solution builds.您需要安装 ChartFX 的许可版本,然后重新打开 Visual Studio,这应该会发生离开。
该错误消息表明您正在尝试构建一个使用 ChartFX 的项目,但没有有效的许可证。
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.
这是您需要做的。只需打开包含图表的表单,然后单击图表一次即可。这将创建您需要的 license.licx 文件。或者,只需创建一个新表单并将图表添加到该表单中。编译解决方案并删除新表单,您应该已经全部排序了!
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!
我的问题是 ChartFX 试用许可证已过期,我购买了新许可证来使用。
清除licenses.licx帮助我解决了我的问题。
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.