在这篇博客中,
下面的控制不能授权: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.



The following control could not be licensed: TXTextControl.TextControl。。解决方案的更多相关文章

  1. [转] Node.js使用MongoDB3.4+Access control is not enabled for the database解决方案

    今天使用MongoDB时遇到了一些问题 建立数据库连接时出现了warnings 出现这个警告的原因是新版本的MongDB为了让我们创建一个安全的数据库 必须要进行验证 后来在外网找到了答案 解决方案如 ...

  2. Sharepoint学习笔记—习题系列--70-576习题解析 -(Q138-Q140)

    Question  138 You are designing a SharePoint 2010 application that will deploy a Web Part assembly. ...

  3. C# 多线程详解 Part.02(UI 线程和子线程的互动、ProgressBar 的异步调用)

           我们先来看一段运行时会抛出 InvalidOperationException 异常的代码段: private void btnThreadA_Click(object sender, ...

  4. 解决Elementary OS和Windows时间不一致

    解决方案一:把Windows从硬件时间修改成修改成UTC时间,管理员身份运行 Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInforma ...

  5. cookie 编码问题

    问题描述:  Control character in cookie value or attribute. 解决方案: 1.前台编码 encodeURIComponent(str) 2.后台解码 原 ...

  6. ESRI.ArcGIS.AnalysisTools.Erase 结果是空?

    用ESRI.ArcGIS.AnalysisTools.Erase擦除,结果总是空的. 这几天一直纠结一个问题,就是在AE下使用ESRI.ArcGIS.AnalysisTools中的工具(例如:泰森多边 ...

  7. 盘点:七大.NET著名开源项目

    尽管过了相当长的时间,花费了不少资源,微软和.NET社区还是在最近几年加入到了开源运动的阵营中来了,这令人相当惊讶,因为两大阵营一直都是经常对立的.然而,事实是依靠开源,微软社区中的开源开发工具日益发 ...

  8. python+UIAutomation+libary

    #! /usr/bin/env python#Author: XIE TIAN# -*- coding:utf8 -*-from __future__ import unicode_literalsi ...

  9. FL2440 rt3070模块ap模式移植

    ---------------------------------------------------------------------------------------------------- ...

随机推荐

  1. Android / iOS 招聘

    1. 面试题 https://github.com/ChenYilong/iOSInterviewQuestions 2. 一些不错的idea CDI - Développeur iOS/Androi ...

  2. 关于JNDI技术链接操作数据库-2019.1.10

    Java 命名与目录接口(Java Naming and Directory Interface) ==需要使用的包为java.sql&javax.naming包==Mysql 步骤: 1.配 ...

  3. 抓包工具Fiddler使用教程

    一.基本原理 Fiddler 是以代理web服务器的形式工作的,它使用代理地址:127.0.0.1,端口:8888 二.Fiddler抓取https设置 1.启动Fiddler,打开菜单栏中的 Too ...

  4. jquery中通过添加readonly或者disabled属性实现行为禁止 / 去除某个属性的方法

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  5. 总结day24 ---- socket ,struct 的学习

    前情提要 一:套接字  socket()  1:三次握手 1:客户端像服务端链接,   (第一次握手) 2:服务端收到请求,告诉客户端服务端收到了内容    (第二次握手1) 3:服务端像客户端连接, ...

  6. Java中常见的jar包及其主要用途

    jar包        用途 axis.jar     SOAP引擎包 commons-discovery-0.2.jar     用来发现.查找和实现可插入式接口,提供一些一般类实例化.单件的生命周 ...

  7. C#-WebForm-组合查询(Queryable延迟查询、Intersect交集)、分页展示基础

    组合查询: 方法一:Queryable<> 延迟查询 其特点是:读到词句代码时不会立即执行,而是在进行数据绑定时执行 优点:此期间可以进行添加查询条件,以减少数据库查询内容,来减少内存占用 ...

  8. TeamView 连接2、3事

    问题1: 客户通过本地远程上服务器开TeamView让我们连,我们连上后发现开户一把她的远程关掉就卡住了. 如图,原来TeamView会启动多用户增强支持. 原来用的是用户ID连的,用户断掉远程后就不 ...

  9. win10 安装 mysql 5.7

    win10 安装 mysql 5.7 1.在mysql 官网下载mysql 5.7 的手动安装包 mysql--winx64.zip 2. 解压到mysql 目录的文件夹下面 D:\moudle\my ...

  10. java防范跨站脚本攻击(XSS)

    网络中心提示网站有数目众多的跨站脚本攻击(XSS)漏洞,经过查看代码,认为是JSP中绑定变量是未经处理直接写入的,而且整个项目中这样的做法太多,因为是多年前的,不好一个个更改,参照网上资料,通过加fi ...