Adding WCF service references to multiple projects

If you have multiple projects in your solution and more than one project references a common WCF service, you might have issues to get your application working as BizTalk will not be able to determine the destination schema. The schemas (created by the service references in each project) get deployed resulting in multiple schemas with the same target namespace.

You will see an exception similar to below:

Cannot locate document specification because multiple schemas matched the message type

In such scenarios, it is best to create a seperate project for service references. This project can then be referenced by other projects wanting to call the WCF service.

Create BizTalk Project …. Project Creation Failed

If you are using VS 2008 and start seeing the error below, you can fix this by repairing the BT 2009 installation by running the installer in “Repair” mode. Note that the first time you run it, your BT templates will disappear (strangely). You will need to run the setup again in repair mode to fix the first problem.

Create BizTalk Project …. Project Creation Failed