【问题标题】:Getting Dynamic Linking working on classic ASP pages让动态链接在经典 ASP 页面上工作
【发布时间】:2012-09-19 11:01:24
【问题描述】:

我目前正在全新安装 Tridion 2011。我们之前使用的是 5.3,并且正在保留数据库。到目前为止,我已经安装了数据库、内容管理器、两个内容交付服务器,现在正在设置演示服务器。我们所有的网页都是使用经典的 asp 构建的。有人建议我如果希望我的 ASP 页面使用动态链接(请参阅 https://stackoverflow.com/a/12428237/1113475),我应该手动安装 API(链接、代理和 WAI)

我已通读文档,其中解释了如何将 API 安装为 .NET Web 服务。我不认为这是我想要的,因为我的网页都是经典的 asp。我假设我需要对 Content Delivery\roles\api\windows 目录中的 exe 文件做一些事情,但是当我运行它们时它们什么也不做。

在我的 asp 页面上运行以下代码时

Server.CreateObject("cd_link.ComponentLink")

我得到了错误

服务器对象错误“ASP 0177:800401f3”

Server.CreateObject 失败

/about/index.asp,第 196 行

800401f3

...但这显然会发生,因为我没有安装链接器

附加信息

服务器是 64 位 Windows Server 2008。运行 IIS 7.5,但我的 Tridion 2011 应用程序池在 32 位模式下运行。

创建其他第三方对象可以正常工作。就像 Chilkat Crypt 库一样。

【问题讨论】:

    标签: tridion tridion-2011


    【解决方案1】:

    来自Live Documentation

    1. 在每台运行 Content Delivery Server 角色的计算机上,打开 Windows 命令提示符,访问 SDL Tridion 2011 SP1 安装媒体,导航到文件夹 Content Delivery\roles\api\windows。
    2. 通过运行以下命令安装已弃用的 Windows 服务:

    cd_broker.exe -安装

    cd_wai.exe -安装

    cd_link.exe -安装

    【讨论】:

    • 即使文档没有提及,根据我的经验,最好先将 exe 文件复制到 /Tridion_Root/bin 文件夹,然后从那里运行命令
    • 好点@Puntero,它可能会尝试从 current 位置安装服务,该位置可能在网络上或 c:\temp...
    • 感谢您的回复。我将 exe 复制到 Tridion/bin 文件夹并按照建议安装了服务。但是,这些服务实际上并未启动。我收到一条消息The Tridion Dynamic Linking service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.。在事件日志中,我收到一条消息 The description for Event ID 100 from source TCDLink cannot be found. Either the com... 和其他信息 Could not load Java runtime libraries at。肯定安装了 Java 6 v35。
    • 您需要安装 Java 32 位才能使旧的链接服务正常工作。我猜你可能已经安装了 64 位。在您的情况下,您需要同时安装它们(是的,它们是兼容的)。
    • 是的,所有的 COM/ASP 服务都是 32 位的。是的,是时候考虑最终摆脱 Classic ASP...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多