Geeks With Blogs
Bill Osuch - Random geek notes

I recently was testing some new functionality in a BizTalk solution by adding it to a second orchestration (before I went screwing around with my main one...) and received an error in the event log when dropping a file to the receive location: "xlang/s engine event log entry: Failed while creating a <Orchestration Name> service." (the full stack trace is shown at the end of this post)

So, I tried to simplify things - I deleted that orchestration and started a new one, with just send and receive shapes connected to ports. Dead simple... Same error message when I dropped a file in. Some Googling showed various ideas, none of which seemed to apply to this situation - file permissions on the receive port directories, multiple versions of the assembly or schemas, etc.

Turns out it's just a simple matter of "burning the gunk out" (to use an obscure Bill Cosby standup reference):

  1. Delete the assembly from the GAC, either by browsing to it, using GACUTIL from a command line, or using the BizTalk Assembly Viewer
  2. Rebuild (rather than just Build) the solution (Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not.)
  3. Deploy

This got it working for me, but as always, your mileage may vary...


xlang/s engine event log entry: Failed while creating a <Orchestration Name> service.
       
Exception type: ServiceCreationException
The following is a stack trace that identifies the location where the exception occured

   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.Threading.Thread.InternalCrossContextCallback(Context ctx, 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[] reqStmBuff, 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:

        Could not load type '<Orchestration Name>' from assembly '<My Assembly>'.
       
Exception type: TypeLoadException
Source: mscorlib
Target Site: Void* _GetTypeByName(System.String, Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef, Boolean)
The following is a stack trace that identifies the location where the exception occured

   at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError)
   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 Center at http://go.microsoft.com/fwlink/events.asp.

Posted on Thursday, October 7, 2010 9:29 AM BizTalk | Back to top


Comments on this post: BizTalk - Failed while creating a service

# re: BizTalk - Failed while creating a <Orchestration Name> service
Requesting Gravatar...
Hi,

I tried precisely the same thing as is suggested by you. But, am getting an error - "Verify the schema deployed properly."
Left by Abhishek on Oct 08, 2010 3:33 AM

# re: BizTalk - Failed while creating a <Orchestration Name> service
Requesting Gravatar...
Thanks for your help, it was a small issue, I resolved it.
Left by Abhishek on Oct 08, 2010 4:32 AM

# re: BizTalk - Failed while creating a <Orchestration Name> service
Requesting Gravatar...
Hi,

Can you tell me the resolution for the error you got. I am experiencing the same error.
Left by venkprav on Jul 29, 2011 1:29 PM

# re: BizTalk - Failed while creating a <Orchestration Name> service
Requesting Gravatar...
Thank you that was really helpful. My DLL was missing from GAC after copying the custom BizTalk integration from 1 server to another.
Left by Tony on Apr 15, 2015 2:42 AM

Your comment:
 (will show your gravatar)


Copyright © Bill Osuch | Powered by: GeeksWithBlogs.net