BigTree 发表于 2012-10-31 17:57:00

如何在.NET FRAMEWORK4.0下使用TX Text Control?

代客户提问:

在试用贵公司的TXTextControl 组件进行文档显示时,提示以下错误信息:

The TXTextControl components are built with framework v2.0.50727. To load a component in the 4.0 runtime add an application configuration file to the project.

开发环境
VS.NET2010 + .NET FRAMEWORK4.0
请问如何配置才可以解决这个运行时框架问题?

iceman 发表于 2012-10-31 18:29:00

回复 1楼BigTree的帖子

你好,
可以尝试在配置文件中设置 Framework 版本。
操作方法如图:




<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>


如果没有解决问题,请发 Demo 到论坛调试。

lee_spreed123 发表于 2012-11-2 11:55:00

我在VS.NET2010下开发WINFORM程序时,采用上述配置可以保证TX TEXTCONTROL 在.NET框架4下运行。但是我现在要把WINFORM程序移植到OFFICE插件中,进行窗体加载时,依然给出一个错误提示:

------------------------------
The TXTextControl components are built with framework v2.0.50727. To load a component in the 4.0 runtime add an application configuration file to the project.
------------------------------

------------------------------
请葡萄城的技术专家给出一个解决方案出来,基于 VS.NET2010 + .NET框架 4.0 + OFFICE2007 ADDIN应用中加载含TX TEXTCONTROL组件的窗体。谢谢!

lee_spreed123 发表于 2012-11-2 13:09:00

回复 2楼iceman的帖子

这个在ADDIN项目中好象还是不成功!

iceman 发表于 2012-11-2 18:29:00

回复 4楼lee_spreed123的帖子

你好,问题我已经重现了,具体调查结果周一回复。

iceman 发表于 2012-11-5 18:45:00

回复 4楼lee_spreed123的帖子

lee_spreed123 你好,
该问题我已经和开发人员取得联系,我这边正在等待结果。

iceman 发表于 2012-11-6 18:10:00

回复 4楼lee_spreed123的帖子

你好,
开发人员那边给出的结论是:TX Text Control DLL 是使用 Framework 2.0 开发。在 Framework 4.0 中无法作为插件使用。
页: [1]
查看完整版本: 如何在.NET FRAMEWORK4.0下使用TX Text Control?