简体   繁体   English

更新Biztalk程序集而不删除/取消部署使用它的从属端口

[英]Updating the Biztalk assemblies without removing/undeploying the dependent ports which uses it

I am trying to add a resource using the BTSTASK command line and it works fine. 我正在尝试使用BTSTASK命令行添加资源,并且工作正常。

BTSTASK.EXE  AddResource -Type:BizTalkAssembly /Source:dllpath  /ApplicationName:myapp /Options:GacOnAdd,GacOnImport,GacOnInstall /Overwrite

But when the Biztalk assembly such as pipeline has the been used in some other application it won't work unless the port which uses this pipeline is being removed. 但是,当Biztalk程序集(例如管道)已在其他一些应用程序中使用时,除非删除使用该管道的端口,否则它将无法工作。 If i remove the port from the application which uses this pipeline and then using BTSTASK i can add the resource. 如果我从使用此管道的应用程序中删除端口,然后使用BTSTASK,则可以添加资源。 How this can be easily handled without removing the port of other dependent application. 如何在不删除其他依赖应用程序端口的情况下轻松处理此问题。

You can't. 你不能 The Artifact, Pipeline in your case, is in use and essentially 'locked'. 工件(在您的情况下为管道)正在使用中,并且实际上是“锁定”的。

"been used in some other application" - You should never share artifacts between Applications. “在其他应用程序中使用过”-绝对不要在应用程序之间共享工件。 Doing so just created this otherwise unnecessary problem. 这样做只会造成这个原本不必要的问题。 Create a Pipeline in the local Application/Solution. 在本地应用程序/解决方案中创建管道。

Using a tool such as BizTalk Deployment Framework, you can just redepoy the entire app taking typically just a few minutes. 使用BizTalk部署框架之类的工具,您通常只需几分钟即可重新部署整个应用程序。 Almost the same as deploying single Assembly. 几乎与部署单个Assembly相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM