Wednesday, January 31, 2007

BizTalk 2006 : can't create instance error (XLANG/S)

If you get error like:

Could not load type "B2BSchemas.PO_Num" from assembly "B2BSchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d7b72bf643e25262".

Check that:
  1. Your assembly is correctly deployed in BizTalk (i.e. check in Resources) - look at the version and ID
  2. Your assembly is in GAC (again version & ID)

If both are ok, BizTalk is "messed up" and you need to restart the host instance (ie. Platform Settings > Host Instances, select the instance you're using and right-click > Restart).

BizTalk 2006 : Installing assemblies manually

In the BT admin console, when you try to register assembly manually (under YourApp/Resources -> Add -> BizTalk Assembly), make sure that the 1st option in the Options part (bottom) is checked. It ensures that the DLL gets registered in GAC as well. If you register assembly w/o having it in GAC, at first it appears to act normal (e.g. you can start orchestrations, etc.), but it can't create instances or schemas, etc...