如何在IIS中使用BTDF在两个不同的应用程序下部署两个服务。

huangapple go评论66阅读模式
英文:

How to deploy two services under two different applications in IIS using BTDF

问题

我有一个要求,在IIS中使用BTDF部署两个不同的服务到两个不同的应用程序下。
使用 **IISMetabasePath** ,我可以部署多个服务,但它们将部署在IIS中相同的应用程序/虚拟目录下。我该如何将 **IISMetabasePath** 参数化,类似于:

```xml
<IISMetabasePath>IIS://localhost/w3svc/{AppId}/Root</IISMetabasePath>

这样我就可以在 VDirList 配置中指定 Id。

目前,我的 VDirList 配置如下:

<ItemGroup>
	<VDirList Include="*">
		<Vdir>GetCTCNumber</Vdir>
		<Physdir>..\CTCNumberService</Physdir>
		<AppPool>CTCNumberAppPool</AppPool>
		<AppPoolNetVersion>v4.0</AppPoolNetVersion>
	</VDirList>

    <VDirList Include="*">
	    <Vdir>GetCTCusingTICCode</Vdir>
	    <Physdir>..\TICCodeService</Physdir>
	    <AppPool>TICCodeAppPool</AppPool>
	    <AppPoolNetVersion>v4.0</AppPoolNetVersion>
    </VDirList>
</ItemGroup>

感谢回复!我尝试过将 IISMetabasePath 参数化,但无法找到从 VDirList 传递值给它的方法。


<details>
<summary>英文:</summary>

I have a requirement wherein I need to deploy two different services under two different application in IIS using BTDF.

`&lt;IISMetabasePath&gt;IIS://localhost/w3svc/1/Root&lt;/IISMetabasePath&gt;`

using **IISMetabasePath** I can deploy multiple services but that will be deployed under same application/virtual directory in IIS, How can I make the IISMetabasePath parametric something like

`&lt;IISMetabasePath&gt;IIS://localhost/w3svc/{AppId}/Root&lt;/IISMetabasePath&gt;`

so that I can specify the Id in **VDirList** configuration

Currently I have below **VDirList** config


<ItemGroup>
<VDirList Include="*">
<Vdir>GetCTCNumber</Vdir>
<Physdir>..\CTCNumberService</Physdir>
<AppPool>CTCNumberAppPool</AppPool>
<AppPoolNetVersion>v4.0</AppPoolNetVersion>
</VDirList>

&lt;VDirList Include=&quot;*&quot;&gt;
    &lt;Vdir&gt;GetCTCusingTICCode&lt;/Vdir&gt;
    &lt;Physdir&gt;..\TICCodeService&lt;/Physdir&gt;
    &lt;AppPool&gt;TICCodeAppPool&lt;/AppPool&gt;
    &lt;AppPoolNetVersion&gt;v4.0&lt;/AppPoolNetVersion&gt;
&lt;/VDirList&gt;

</ItemGroup>



Appreciate the responses!

Thanks.

I have tried doing **IISMEtabasePath** parametric however I could not find the ways I could pass values to it from **VDirList**

</details>


# 答案1
**得分**: 0

VDirList功能已弃用,除了向后兼容性之外,不应使用。相反,您应该使用IISApp和IISAppPool。

您没有提到您使用的BTDF版本,但您可以参考Framework附带的IIS示例应用程序。您还会在BTDF文档中找到对IISApp/IISAppPool的详细说明。

[这是一个链接][1]到v5.7版本的PDF格式文档。


  [1]: https://github.com/BTDF/DeploymentFramework/releases/download/v5.7.0/DeploymentFrameworkForBizTalkDocsV5_7.pdf

<details>
<summary>英文:</summary>

The VDirList functionality is deprecated and should not be used except for backwards compatibility. Instead, you should use IISApp and IISAppPool.

You didn&#39;t say which version of BTDF you are using, but you can refer to the IIS sample application that is included with the Framework. You&#39;ll also find IISApp/IISAppPool well-documented in the BTDF docs.

[Here&#39;s a link][1] to the v5.7 version of the docs in PDF format.


  [1]: https://github.com/BTDF/DeploymentFramework/releases/download/v5.7.0/DeploymentFrameworkForBizTalkDocsV5_7.pdf

</details>



huangapple
  • 本文由 发表于 2023年6月8日 02:15:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76426042.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定