I got the following error after successful deployment of assemblies in BizTalk. I have BizTalk installed in federated (distributed) way. 4 BizTalk servers associated with same deployment and I have to install orchestration assembly in one server and gac it all other servers. after installing and gacing when it starts processing I encountered unique and weird problem. some time my orchestration picks up message and some other time throws following error.
Event Type: Error
Event Source: XLANG/s
Event Category: None
Event ID: 10001
Date: 2009-1-23
Time: 15:42:01
User: N/
Computer: SPDB-EA2-APP
Description:
Failed while creating a EA_CostCenterList.EACostCenterList service.
Exception type: ServiceCreationException
The following is a stack trace that identifies the location where the exception occured
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ createOrRehydrateRealService (Guid & instanceId, IBTMessage currMsg)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ serviceCreator (Guid & instanceId, Object objCurrMsg)
At Microsoft. XLANGs. Core. ResourceContainer. _ allocateResource (Guid & key, UInt32 hashKey, ResourceCreator resCreator, Object creationContext)
At Microsoft. XLANGs. Core. ResourceContainer. Dispense (Guid & key, ResourceCreator resCreator, Object creationContext)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ dispenseService (Guid & instanceId, IBTMessage currMsg)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ tryReceiveOneMessage (Boolean & loggedError, Guid & instanceId, IBTMessage currMsg)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ receiveOneMessage (Guid & instanceId, Guid & serviceId, IBTMessage currentMsg)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. ReceiveMessages (IBTMessage [] messages, Int32 firstIdx, Int32 count)
At Microsoft. BizTalk. XLANGs. BTXEngine. AppDomains. AppDomainRoot. Microsoft. XLANGs. BizTalk. ProcessInterface. IAppDomainStub. ReceiveMessages (Object objMsg)
At Microsoft. XLANGs. BizTalk. CrossProcess. AppDomainStubProxy. Microsoft. XLANGs. BizTalk. ProcessInterface. IAppDomainStub. ReceiveMessages (Object msgs)
At System. Runtime. Remoting. Messaging. StackBuilderSink. _ PrivateProcessMessage (IntPtr md, Object [] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object [] & outArgs)
At System. Runtime. Remoting. Messaging. StackBuilderSink. PrivateProcessMessage (RuntimeMethodHandle md, Object [] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object [] & outArgs)
At System. Runtime. Remoting. Messaging. StackBuilderSink. SyncProcessMessage (IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
At System. Runtime. Remoting. Messaging. StackBuilderSink. SyncProcessMessage (IMessage msg)
At System. Runtime. Remoting. Messaging. ServerObjectTerminatorSink. SyncProcessMessage (IMessage reqMsg)
At System. Runtime. Remoting. Messaging. ServerContextTerminatorSink. SyncProcessMessage (IMessage reqMsg)
At System. Runtime. Remoting. Channels. CrossContextChannel. SyncProcessMessageCallback (Object [] args)
At System. Threading. Thread. CompleteCrossContextCallback (InternalCrossContextDelegate ftnToCall, Object [] args)
At System. Threading. Thread. InternalCrossContextCallback (Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object [] args)
At System. Runtime. Remoting. Channels. CrossContextChannel. SyncProcessMessage (IMessage reqMsg)
At System. Runtime. Remoting. Channels. ChannelServices. SyncDispatchMessage (IMessage msg)
At System. Runtime. Remoting. Channels. CrossAppDomainSink. DoDispatch (Byte [] req1_buff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage & smuggledMrm)
At System. Runtime. Remoting. Channels. CrossAppDomainSink. DoTransitionDispatchCallback (Object [] args)
At System. Threading. Thread. CompleteCrossContextCallback (InternalCrossContextDelegate ftnToCall, Object [] args)
Additional error information:
Value does not fall within the expected range.
Exception type: ArgumentException
Source: Microsoft. XLANGs. BizTalk. Engine
Target Site: Int32 GetCapabilities (System. Guid ByRef)
The following is a stack trace that identifies the location where the exception occured
At Microsoft. BizTalk. Interop. IBTPEPInfoLookup. GetCapabilities (Guid & receivePort)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXLogicalPortBinding .. ctor (Guid bindingId, PortInfo portInfo)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXPortBase. CreatePortBinding (PortInfo portInfo, Guid bindingId)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXPortBase. InitializeBinding (PortInfo portInfo, IDictionary portToLrp)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXServiceStaticState. _ initializePortBindings (Type serviceType, IDictionary portToLrp)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXServiceStaticState. Resolve ()
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ createNewService (Guid & serviceId, Guid & instanceId, BTXServiceStaticState staticState)
At Microsoft. BizTalk. XLANGs. BTXEngine. BTXSession. _ createOrRehydrateRealService (Guid & instanceId, IBTMessage currMsg)
For more information, see Help and Support CenterHttp://go.microsoft.com/fwlink/events.asp.
When I checked the installation logs there was no error and also checked whether the orchestration was present in the gac on all the servers and it was there.
So there is something must happened the way it was installed which made BizTalk engine to run the orchestration on and off mode.
And finally it got resolved; below you can find what I did to resolve it.
1. If you encounter the problem like abve check all the servers have the assembly gaced.
2. If not gac the dlls in all the server and install the assembly in one server (either by deployment wizard or scripts ).
3. Most important thing you shoshould do always is restart the host service for the orchestration in all the servers(Restart the host service that your orchestration belonged)
FW: http://www.hajamaideen.com/2007/03/30/servicecreationexception-failed-while-creating-a-xyz-orchestraion/