Recently I was testing a new BizTalk solution version with a couple of new features when I came across with the following error:
Uncaught exception (see the ‘inner exception’ below) has suspended an instance of service ‘MyService(4dfd3eeb-5cb2-9ca5-2e15-59dd321e72ed)’.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
Exception thrown from: segment -1, progress -1
Inner exception: Could not load type ‘type name’ from assembly ‘assembly name, Version=220.127.116.11, Culture=neutral, PublicKeyToken=…’.
Exception type: TypeLoadException
Target Site: Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions)
This error occurs after invoking the service or after dropping a file to the receive location.
- You didn’t install the assembly specified in the error.
- Your DLL depend on other DLL’s to get its job done and if you didn’t copy or install those too, you’d indeed get this error message.
- Or you have installed an older version of the assembly.
This error occurs often when we use C# HelperClass to support the orchestrations, but can occur in other situations.
Make sure that you have the last version of the assembly installed.
- Rebuild the solution.
- Deploy the correct solution.