Biztalk 开发之 重启Biztalk主机的秘密

当你从BizTalk Server浏览器中解除绑定业务流程时,建议你解除并停止所有的相关项,包括Biztalk Server主机。你想知道为什么要让你干这该死的事件——停止主机么?

答案很简单。除非整个.Net应用程序被卸载,否则.Net框架并不会从应用域中卸载单独的程序集。这意味着为了卸载程序集,你不得不重启主机。为了避免过期的程序集带来额外的迷惑,BizTalk Server浏览器提供了重启主机的快捷方法,从而为业务流程程序集的重新布署提供方便。然而,如果你需要重新布署管道或架构程序集,就不会再有“快速的解除绑定”对话框,你可能会在应用事件中收到一大串烦人的错误消息(我收到了许多,译者注^_^):

·执行接收管道时出错:"Microsoft.BizTalk.DefaultPipelines.XMLReceive"来源: "XML disassembler". 原因:加载文档规范…”
·或者是“由于消息处理出错,消息引擎已挂起来自适配器...”
·或是其他的一些经常在microsoft.public.biztalk.general或BizTalk相关的讨论组中出现的错误。

因此,如果在你刚刚重新布署程序集后,遇到了这些烦人的错误信息,别光顾着煞费苦心地找原因,重启一下主机,或许一切都解决了。


原文如下:

Restarting BizTalk host.
When you unenlist orchestration in BizTalk Server Explorer, it kindly suggests you to unenlist and stop all dependencies including BizTalk Server Host. Did you ever wonder about why does that darn thing is asking you to stop the host?

The answer is simple. .Net framework doesn’t provide mean to unload separate assembly from application domain – only whole app domain could be unloaded. BizTalk server host is a .Net process that loads assemblies in main app domain. This means that in order to unload assembly you have to restart the host. So, for avoiding extra confusions caused by outdated assemblies loaded by BizTalk host – BizTalk Server Explorer provides quick way of restarting the host and thus, smoothes redeployment of orchestration assembly. However, if you need to redeploy pipeline or schemas assembly – there is no such helpful “Express unenlist” dialog box, and you may end with a bunch of wired error messages in Application event log like:

·“There was a failure executing the receive pipeline:  "Microsoft.BizTalk.DefaultPipelines.XMLReceive" Source: "XML disassembler". Reason: Loading document specification…”

· or “The Messaging Engine has suspended "1" message(s) due to outbound processing errors. Please use Health and Activity Tracking to determine the cause of this failure.”

· or other equally cryptic error messages that you often can see posted in microsoft.public.biztalk.general and other BizTalk server related groups.
 

So, if you get some weird error message right after you redeploy some assembly, don’t panic and try to restart the host – it may help.

说明:本文给我提供了很大的帮助,相信对BizTalk初学者也会有很大的帮助,因此特别翻译了一下。不过,在你遇到这种情况时,可以先不重启主机,在服务管理器中将Biztalk Server应用程序重新启动一下试试。

对于文中出现的host,我译为主机,不知原作者是指主机还是宿主程序,初次翻译,请大家多多指教。

原文URL  http://www.harper.no/valery/PermaLink,guid,8360fa2a-2ffa-4085-84a4-d7cdaae9f80b.aspx
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值