Xceed DataGrid for WPF 的许可证异常
我使用 Xceed 优秀的 DataGrid for WPF(UX 版版本 3.7)开发了一个简单的数据库编辑应用程序,现在可以部署了......除了当我在构建它的开发机器以外的机器上运行它时,我收到无效许可的运行时异常。
我已将我的许可证密钥完全包含在 App.xaml.cs 中 Xceed 文档中指定的,如下所示:
public partial class App : System.Windows.Application
{
protected override void OnStartup(StartupEventArgs e)
{
Xceed.Wpf.DataGrid.Licenser.LicenseKey = "DGF37-xxxxx-xxxxx-xxxx";
base.OnStartup(e);
}
}
正确版本的 DataGrid DLL 包含在安装程序和应用程序的程序目录中,并且目标计算机上没有其他版本。
除了当代码尝试使用 DataGrid 时抛出的 LicenseException 之外,调试没有显示任何有用的信息,并显示消息“Xceed.Wpf.DataGrid.Licenser.LicenseKey 属性必须设置为在使用该产品之前检查您的应用程序代码...”
知道这里出了什么问题吗?
I have developed a simple DB-editing app using Xceed's excellent DataGrid for WPF (UX Edition version 3.7), which is now ready for deployment... except that when I run it on a machine other than the development one where it was built, I am getting the runtime exception for invalid licensing.
I have included my license key in the App.xaml.cs exactly as specified in the Xceed docs, like so:
public partial class App : System.Windows.Application
{
protected override void OnStartup(StartupEventArgs e)
{
Xceed.Wpf.DataGrid.Licenser.LicenseKey = "DGF37-xxxxx-xxxxx-xxxx";
base.OnStartup(e);
}
}
The correct version of the DataGrid DLLs are being included in the setup and the application's program directory, and there are no other versions on the target machine.
Debugging doesn't show me anything useful other than the LicenseException that is thrown when the code tries to use the DataGrid, with the message that reads "Xceed.Wpf.DataGrid.Licenser.LicenseKey property must be set to a valid license key in the code of your application before using this product..."
Any idea what's going wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,便便……弄清楚了,这是一个愚蠢的错误。我的 OnStartup 事件放错了位置,位于应用程序的命名空间之外。
Oh, poop... figured it out, and it was a stupid mistake. My OnStartup event was misplaced, outside of the app's namespace.