zoukankan      html  css  js  c++  java
  • The following control could not be licensed: TXTextControl.TextControl。。解决方案

    在这篇博客中,
    下面的控制不能授权:txtextcontrol.textcontrol
    这意味着,找不到合适的许可证来验证控制。一般情况下,许可证将被自动纳入应用程序,通常不必担心许可证的所有。

    “许可证”。licx文件必须在“属性”文件夹中存在(C #)或“我的项目”文件夹(VB。NET)。建立这样一个文件,在该文件夹中创建和命名的许可证,一个新的文本文件。licx”。打开该文件并添加下面的字符串:
    TXTextControl.TextControl, TXTextControl, Version=13.0.500.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638

    版本号对应本机所装的TX版本


    更新现有项目
    项目将自动更新,如果安装的是只有一个TX文本版本控制。如果你有TX文本控制安装了几个版本,执行以下步骤:
    装入你的视觉工作室。
    打开添加引用…项目中的对话框…菜单。
    删除当前TX文本版本控制的参考。
    添加一个引用到新的版本并关闭对话框。
    打开你的项目文件和licenses.licx改变引用的TX文本控件版本的更新的TX文本控件版本的版本号版本号。
    关闭vs
    重新开启vs

    重建您的项目,使用“重x新生成解决方案”菜单项。






    以下为原博客

    In this blog entry, I would like to explain the required steps to force Visual Studio to compile a specific license into a .NET application. This article should help you, if you get the following error message in Visual Studio:

    The following control could not be licensed: TXTextControl.TextControl

    That means that Visual Studio could not find an appropriate license to validate the control. Generally, the license will be automatically included into the application and typically do not have to worry about licensing at all.

    However, should you wish to do one of the following, it is necessary to take a closer look at licensing:

    Create TextControl dynamically
    Encapsulate TextControl in a user control
    Update an existing project with a newer version of TX Text Control
    Creating TextControl dynamically

    Two significant steps are necessary in order to add the license of TX Text Control into an application. These steps must be performed when creating a TextControl instance dynamically:

    The project must include a reference to the 'TX Text Control .NET for Windows Forms Component'. To include the reference, select Add Reference... from the Project main menu in Visual Studio. Browse for 'TX Text Control .NET for Windows Forms Component', select it and confirm by clicking OK.
    A 'licenses.licx' file must exist in the 'Properties' folder (C#) or the 'My Project' folder (VB.NET). To build such a file, create a new text file in this folder and name it 'licenses.licx'. Open the file and add the following string:
    TXTextControl.TextControl, TXTextControl, Version=13.0.500.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638
    The 'licenses.licx' file is not a TX Text Control specific file, but a Visual Studio file that is used by 'lc.exe' (which is part of the .NET SDK) to compile the licenses into the assembly. These above steps are done automatically, if you drag and drop a TextControl from the toolbox onto a form.

    Encapsulating TextControl in a user control

    Licensing
    If you wrap TextControl in a user control assembly, the license information must be in the calling application (exe). It is not sufficient that the user control contains a reference to 'TX Text Control .NET for Windows Forms Component'. Licenses can be only compiled into executable files. The following diagram shows the dependencies:

    Updating an existing project

    Projects will be updated automatically, if only one version of TX Text Control is installed. If you have several versions of TX Text Control installed, perform the following steps:

    Load your Visual Studio .NET project.
    Open the Add Reference... dialog box in the Project... menu.
    Delete the reference to the current TX Text Control version.
    Add a reference to the new version and close the dialog box.
    Open the licenses.licx file of your project and change the version number of the referenced TX Text Control version to the version number of the newer TX Text Control version.
    Close the Visual Studio .NET development environment.
    Reopen the Visual Studio .NET development environment.
    Rebuild your project using the Rebuild Solution menu item.






  • 相关阅读:
    还没解决的问题
    USACO 1.41 The clocks
    USACO Broken Necklace
    hdu 3265 Posters
    USACO1.52 Prime Palindromes
    hdu 3068 && pku 3974 (最长回文串)(Manacher 算法)
    USACO Calf Flac
    USACO Milking Cows
    旧版RTSP协议网页视频无插件直播EasyNVR视频平台为什么无法播放H264编码视频?
    mysql的基本查询
  • 原文地址:https://www.cnblogs.com/tianjiaxiaobaicai/p/4729794.html
Copyright © 2011-2022 走看看