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



最新文章

  1. 【架构设计】分布式文件系统 FastDFS的原理和安装使用
  2. Java并发包源码分析
  3. [AlwaysOn Availability Groups]AlwaysOn健康诊断日志
  4. 大熊君JavaScript插件化开发------(实战篇之DXJ UI ------ ItemSelector重构完结版)
  5. 字符编码(ASCII,Unicode和UTF-8) 和 大小端
  6. OpenCV2.4.10 Mac Qt Configuration
  7. Javascript Regexp match and replace
  8. DHCP协议讲解
  9. C逻辑型变量——时控灯例子
  10. Java 程序检查远程服务器状态
  11. WebBindingInitializer学习
  12. 郁闷的Delphi新闻
  13. 反恐训练营(LCS)
  14. ACM 海贼王之伟大航路(深搜剪枝)
  15. Float精度丢失
  16. 【BZOJ1501】【NOI2005】智慧珠游戏(搜索)
  17. 第一次接触Android Studio
  18. 阿里妈妈前端团队出品的开源接口管理工具RAP第二代 http://rap2.taobao.org
  19. myeclipse无法部署项目的解决
  20. Java学习05 (第一遍) - JSP与Servlet

热门文章

  1. CSharp读取json配置文件内容
  2. Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  3. linux命令之用户管理及用户信息查询命令(上)
  4. css3 animation动画使用
  5. Java多线程编程 — 锁优化
  6. Java中将图片保存到数据库中
  7. 爬虫7:selenium
  8. 微信小程序ofo小黄车+thinkphp5.0打造全栈应用
  9. php prepare
  10. mkdoc安装与使用说明