indigodai 发表于 2014-7-10 08:33:00

ServerTextControl.Create();提示 Server version must be install

在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.”

求大侠解释。在线等。

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/support/documentation/activex/o_intro_server.htm
里提到的Copy txregsvr.exe from Text Control's \tools subdirectory to the a directory on the server

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

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目录下。

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

indigodai 发表于 2014-7-10 15:07:00

回复 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

回复 4楼iceman的帖子

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

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

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

源错误:

indigodai 发表于 2014-7-10 15:33:00

回复 4楼iceman的帖子

我的本机操作系统是64位的。

iceman 发表于 2014-7-10 15:42:00

回复 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

回复 8楼iceman的帖子

你好,替换为64位文件下的文件,还是有错误。
This feature is not available. The TX Text Control Server version must be installed.
这个可否麻烦远程桌面帮忙解下哈。

indigodai 发表于 2014-7-10 18:16:00

回复 8楼iceman的帖子

我用的是19.0的。你发给我的是20.0的,是不是和licence有关系么?
或者是因为我用的tx的版本不支持ServerTextControl的缘故?
页: [1] 2
查看完整版本: ServerTextControl.Create();提示 Server version must be install