今天使用SERVER 2008,做Citrix 5.0实验,一路安装完成后,打开客户端登录,点击发布的应用程序,没任何反应。
查看应用程序日志同时引出31003和30016两个错误,查询CITRIX网站指出是XML服务异常或farm配置不正确导致。检查farm配置正常,重新加载XML服务无效。
论坛中有人指出可以把XML与IIS集成可以尝试解决问题,方法如下:
Configuring XML Service to Share a Port with IIS on 32 and 64 Bit Versions of Windows Server 2008
Document ID: CTX125107 / Created On: 2010-5-7 / Updated On: 2011-9-14
View products this document applies to
Summary
This article contains information about configuring XML Service to share a port with Internet Information Systems (IIS) on 32 and 64 bit versions of Windows Server 2008.
Procedure
To configure XML Service to share the port with IIS on Windows Server 2008 for 32 and 64 bit versions, complete the following procedures:
- Stopping and Unregistering the Citrix XML Service
- Configuring the Citrix XML Service to Share a Port with IIS 7.xAdding and
- Adding and Allowing ISAPI Extensions for CtxScriptsPool
Stopping and Unregistering the Citrix XML Service
To stop and unregister the Citrix XML service, complete the following procedure:
- Run the following command from the command prompt to stop the XML Service:
net stop ctxhttp - Run the following command from the command prompt to unregister the Citrix XML Service:
ctxxmlss /u
Configuring the Citrix XML Service to Share a Port with IIS 7.x
To configure the Citrix XML service to share the port with IIS 7.x, complete the following procedure:
- Select Run from Start menu and type \Inetpub.
- Create the Scripts folder in the \Inetpub folder.
- Copy the following files to the IIS Scripts folder on the Web server:
ctxconfproxy.dll
ctxsta.config
ctxsta.dll
ctxxmlss.txt
radexml.dll
wpnbr.dll
Notes:
- For a 64 bit server you must change the application pools advanced setting to enable 32 bit applications
- The 64-bit script files are installed in the \Program Files\Citrix\System32 folder and 32-bit script files are installed in the \Program Files(x86)\Citrix\System32 folder during XenApp installation. In this procedure, only 64-bit installation is considered.
- For 32-bit installation, replace the folder path appropriately.
- The default Scripts folder is available in the \Inetpub folder.
- When installing IIS 7.x, the virtual Scripts folder is not created by default.
- In the IIS Scripts folder, create the CtxAdmin folder and copy the ctxadmin.dll file from the \Program Files\Citrix\System32 folder to the \Inetpub\Scripts\CtxAdmin folder.
- In the IIS Scripts folder, create the resource folder.
- Create the en sub-folder of the resource folder.
- Copy the ctxstaui.dll file from the \Program Files\Citrix\System32\resource\en folder to the\Inetpub\Scripts\resource\en folder.
- Open the IIS Manager console.
- In the left pane, double-click the Server node.
- On the server node home page, double-click ISAPI and CGI Restrictions, as displayed in the following screen shot:
- From the Actions section, select Add.
- In the Add ISAPI or CGI Restrictions dialog box, browse and select the \inetpub\scripts\CtxConfProxy.dll file for the ISAPI or GGI path field.
- Optionally, type the description of the ISAPI or CGI path in the Description field.
- Select the Allow extension path to execute option, as displayed in the following screen shot:
- Click OK.
- Repeat Step 11 through Step 15 to add and allow the following ISAPI extensions:
- \inetpub\scripts\CtxConfProxy.dll
- \inetpub\scripts\ctxsta.dll
- \inetpub\scripts\radexml.dll
- \inetpub\scripts\wpnbr.dll
- \inetpub\scripts\CtxAdmin\ctxadmin.dll
The following screen shot displays the required ISAPI extensions added and allowed:
Adding and Allowing ISAPI Extensions for CtxScriptsPool
To add and allow ISAPI extensions for CtxScriptsPool, complete the following procedure:
- On the left pane of the IIS Manager console, right-click Application Pools.
- From the shortcut menu, select Add Application Pool, as displayed in the following screen shot:
- In the Add Application Pool dialog box, type CtxScriptsPool in the Name field as, displayed in the following screen shot:
- From the.NET Framework version list, select NET Framework v2.0.50727.
- From the Managed pipeline mode list, select Classic.
- Select the Start application pool immediately option.
- Click OK.
Note: To add and allow ISAPI extensions for CtxAdminPool, complete all the steps in the preceding procedure.
Managing and Displaying a List of Application Pools
To manage and display a list of Application Pool, complete the following procedures:
- Right-click CtxScriptsPool in the Application Pools dialog box and select Advanced Settings from the shortcut menu.
- In the Advanced Settings dialog box, select Identity from the Process Model section.
- From the Built-in-account list, select NetworkService, as displayed in the following screen shot:
- Click OK.
- Click OK.
- Repeat Step 1 through Step 5 to manage CtxAdminPool in the Application Pool.
- Right-click CtxAdminPool in the Application Pools dialog box and select Advanced Settings.
- To enable the application to run on 64-bit mode, select True for the Enable 32-bit Applications option, as displayed in the following screen shot:
Note: By default, the applications are created as False so they run in 64-bit mode.
Adding Application and Virtual Directory
To add an Application and Virtual Directory in IISC Manager, complete the following procedures:
- In the left pane of the IIS Manager console, select and right-click Default Web Site.
- Select Add Application, as displayed in the following screen shot:
- In the Add Application dialog box, type Scripts in the Alias field, as displayed in the following screen shot:
- Select CtxScriptsPool for Application Pool.
- Browse and select the \inetpub\Scripts file for the Physical path field.
- Click OK.
- In the left-pane of the IIS Manager console, right-click on Scripts and select Add Application.
- Type CtxAdmin in the Alias field, as displayed in the following screen shot:
- Select CtxAdminPool for Application Pool.
- Browse and select the \inetpub\Scripts\ctxadmin file for the Physical path field.
- Click OK.
- In the left pane of the IIS Manager, right-click on Scripts and select Add Virtual Directory.
- Type CtxIntegrated in the Alias field, as displayed in the following screen shot:
- Browse and select the \inetpub\Scripts file for the Physical path field.
- Click OK.
- In the left pane of the IIS Manager, double-click to select Scripts.
- In the center pane, double-click Handler Mappings, as displayed in the following screen shot:
- From the right pane, select Edit Feature Permissions.
- Select Execute in the Edit Feature Permissions dialog box, as displayed in the following screen shot:
- Click OK.
Note: As a result of the setting inheritance from the Scripts application, the ISAPI-Dll mapping is Enabled.
- From command prompt, stop and restart the Web server by running the iisreset command. This setting takes effect after the Web server restarts.
Minimum Role Services Required for Web Server (IIS) role
The following table contains information about the Applications and minimum Role Services required for the Web Server (IIS) role:
Application
Role Services
Application Development
ISAPI Extensions and ISAPI Filters
Security
Windows Authentication
IIS 6 Management Compatibility
All
More Information
Refer to the following Knowledge Center articles for more information about operating systems:
- CTX104063 – Explaining and Changing the Citrix XML Service Port
- CTX107683 – How to Configure the XML Service to Share with IIS
It is possible that once the manual steps explained in the Knowledge Center article CTX125107 - Configuring XML Service to Share a Port with IIS on 32 and 64 Bit Versions of Windows Server 2008 are complete, IIS files are not updated if a patch that contains updates to the files in the IIS\Scripts directory is applied to the system
Caution! This fix requires you to edit the registry. Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.
Note: If end-users complete the procedures in this article they must change the registry key manually and then copy the IIS files to the IIS\Scripts directory manually.
This document applies to:
- XenApp 5.0 for Windows Server 2008 x64
- XenApp 5.0 for Windows Server 2008 x86
- XenApp 6.0 for Windows Server 2008 R2
依葫芦画瓢配置完,重启IIS,再登录,却引出报错:无法连接服务器。又引出新的报错,相当郁闷,赶忙查系统日志,已经没有报错。不得其解下,想起防火墙没关,马上关闭,再登录,问题解决,哈哈。。。
本文文档引用:
配置XML服务,共享32位和64位版本的Windows Server 2008IIS端口
http://support.citrix.com/article/CTX125107
对于SERVER 2003:
配置XML服务共享IIS端口
http://support.citrix.com/article/CTX107683
本文转自 sfih 51CTO博客,原文链接:http://blog.51cto.com/dayday/712009