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

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

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

问题

  1. 我有一个要求,在IIS中使用BTDF部署两个不同的服务到两个不同的应用程序下。
  2. 使用 **IISMetabasePath** ,我可以部署多个服务,但它们将部署在IIS中相同的应用程序/虚拟目录下。我该如何将 **IISMetabasePath** 参数化,类似于:
  3. ```xml
  4. <IISMetabasePath>IIS://localhost/w3svc/{AppId}/Root</IISMetabasePath>

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

目前,我的 VDirList 配置如下:

  1. <ItemGroup>
  2. <VDirList Include="*">
  3. <Vdir>GetCTCNumber</Vdir>
  4. <Physdir>..\CTCNumberService</Physdir>
  5. <AppPool>CTCNumberAppPool</AppPool>
  6. <AppPoolNetVersion>v4.0</AppPoolNetVersion>
  7. </VDirList>
  8. <VDirList Include="*">
  9. <Vdir>GetCTCusingTICCode</Vdir>
  10. <Physdir>..\TICCodeService</Physdir>
  11. <AppPool>TICCodeAppPool</AppPool>
  12. <AppPoolNetVersion>v4.0</AppPoolNetVersion>
  13. </VDirList>
  14. </ItemGroup>

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

  1. <details>
  2. <summary>英文:</summary>
  3. I have a requirement wherein I need to deploy two different services under two different application in IIS using BTDF.
  4. `&lt;IISMetabasePath&gt;IIS://localhost/w3svc/1/Root&lt;/IISMetabasePath&gt;`
  5. 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
  6. `&lt;IISMetabasePath&gt;IIS://localhost/w3svc/{AppId}/Root&lt;/IISMetabasePath&gt;`
  7. so that I can specify the Id in **VDirList** configuration
  8. Currently I have below **VDirList** config

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

  1. &lt;VDirList Include=&quot;*&quot;&gt;
  2. &lt;Vdir&gt;GetCTCusingTICCode&lt;/Vdir&gt;
  3. &lt;Physdir&gt;..\TICCodeService&lt;/Physdir&gt;
  4. &lt;AppPool&gt;TICCodeAppPool&lt;/AppPool&gt;
  5. &lt;AppPoolNetVersion&gt;v4.0&lt;/AppPoolNetVersion&gt;
  6. &lt;/VDirList&gt;

</ItemGroup>

  1. Appreciate the responses!
  2. Thanks.
  3. I have tried doing **IISMEtabasePath** parametric however I could not find the ways I could pass values to it from **VDirList**
  4. </details>
  5. # 答案1
  6. **得分**: 0
  7. VDirList功能已弃用,除了向后兼容性之外,不应使用。相反,您应该使用IISAppIISAppPool
  8. 您没有提到您使用的BTDF版本,但您可以参考Framework附带的IIS示例应用程序。您还会在BTDF文档中找到对IISApp/IISAppPool的详细说明。
  9. [这是一个链接][1]到v5.7版本的PDF格式文档。
  10. [1]: https://github.com/BTDF/DeploymentFramework/releases/download/v5.7.0/DeploymentFrameworkForBizTalkDocsV5_7.pdf
  11. <details>
  12. <summary>英文:</summary>
  13. The VDirList functionality is deprecated and should not be used except for backwards compatibility. Instead, you should use IISApp and IISAppPool.
  14. 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.
  15. [Here&#39;s a link][1] to the v5.7 version of the docs in PDF format.
  16. [1]: https://github.com/BTDF/DeploymentFramework/releases/download/v5.7.0/DeploymentFrameworkForBizTalkDocsV5_7.pdf
  17. </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:

确定