找回密码
 立即注册

QQ登录

只需一步,快速开始

indigodai

初级会员

2

主题

11

帖子

387

积分

初级会员

积分
387

活字格认证

最新发帖
indigodai
初级会员   /  发表于:2014-7-10 08:33  /   查看:12418  /  回复:12
在ASP.NET应用程序里,进行初始化ServerTextControl。
var textControl = new ServerTextControl();
textControl.Create();

当在Visual Studio里运行是成功的。
但是当部署到IIS里,运行就会提示错误 “This feature is not available. The TX Text Control Server version must be installed.”

求大侠解释。在线等。

12 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2014-7-10 09:51:00
沙发
回复 1楼indigodai的帖子

帮助文档中有两个章节讲述了部署 ServerTextControl,请你先参考下:
Distributing a TX Text Control .NET Server Project
Redistributable Files

着重看下你是否部署了相应的 DLL,例如:TXTextControl.Server.dll (20.0.500.500)

或者可以把你的测试工程发上来,我们尝试部署下。
回复 使用道具 举报
indigodai
初级会员   /  发表于:2014-7-10 10:51:00
板凳
回复 2楼iceman的帖子

http://www.textcontrol.com/en_US ... /o_intro_server.htm
里提到的Copy txregsvr.exe from Text Control's \tools subdirectory to the a directory on the server

安装目录并没有找到txregsvr.exe文件。

Test.zip

102.99 KB, 下载次数: 250

程序

回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-7-10 14:38:00
地板
回复 3楼indigodai的帖子

链接中是 ActiveX 版本 TX 的部署方法。
我在没有安装 tx 的机器上部署成功了,需要添加 C:\Program Files\Text Control GmbH\TX Text Control 20.0.NET for Windows Forms\Assembly\bin 文件夹的 dll 到 release 文件的bin目录下。

你可以下载我的部署文件尝试部署:

txpublish.zip (3.73 MB, 下载次数: 251)
回复 使用道具 举报
indigodai
初级会员   /  发表于:2014-7-10 15:07:00
5#
回复 4楼iceman的帖子

在bin目录下加入了C:\Program Files\Text Control GmbH\TX Text Control 19.0.NET for Windows Forms\Assembly\bin目录下的所有文件。
同时也在bin下加入了C:\Program Files\Text Control GmbH\TX Text Control 19.0.NET for Windows Forms\Assembly下的所有DLL。
在IIS部署运行还是不行。
回复 使用道具 举报
indigodai
初级会员   /  发表于:2014-7-10 15:09:00
6#
回复 4楼iceman的帖子

错误提示:
未能加载文件或程序集“txic”或它的某一个依赖项。试图加载格式不正确的程序。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.BadImageFormatException: 未能加载文件或程序集“txic”或它的某一个依赖项。试图加载格式不正确的程序。

源错误:
回复 使用道具 举报
indigodai
初级会员   /  发表于:2014-7-10 15:33:00
7#
回复 4楼iceman的帖子

我的本机操作系统是64位的。
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-7-10 15:42:00
8#
回复 7楼indigodai的帖子

TX X10 的 64位 dll 信息位置如下:
C:\Program Files\Text Control GmbH\TX Text Control 20.0.NET for Windows Forms\Assembly\bin64
回复 使用道具 举报
indigodai
初级会员   /  发表于:2014-7-10 15:54:00
9#
回复 8楼iceman的帖子

你好,替换为64位文件下的文件,还是有错误。
This feature is not available. The TX Text Control Server version must be installed.
这个可否麻烦远程桌面帮忙解下哈。
回复 使用道具 举报
indigodai
初级会员   /  发表于:2014-7-10 18:16:00
10#
回复 8楼iceman的帖子

我用的是19.0的。你发给我的是20.0的,是不是和licence有关系么?
或者是因为我用的tx的版本不支持ServerTextControl的缘故?
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部