Assume that you use the BizTalk WCF Service Publishing Wizard to publish schemas as WCF services in BizTalk Server 2010. In this situation, a System.NullReferenceException exception may occur when the wizard tries to retrieve the schemas from the selected assembly file. Additionally, you receive the following error message:
BtsWcfServicePublishingWizard, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
C:\Program Files (x86)\Microsoft BizTalk Server 2010\BtsWcfServicePublishingWizard.exe
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.Schema..ctor(SchemaBase schemaBase, String rootName)
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.SchemaCollection..ctor(Assembly assembly, SchemaTypes schemaTypes)
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.AssemblyLoader.ObtainSchemas()
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.AssemblyLoader.ObtainSchemas()
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.AssemblyManager.ObtainSchemas()
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Wizard.SelectSchemaDialog.ListSchemas()
C:\Program Files (x86)\Microsoft BizTalk Server 2010\BtsWcfServicePublishingWizard.exe
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.Schema..ctor(SchemaBase schemaBase, String rootName)
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.SchemaCollection..ctor(Assembly assembly, SchemaTypes schemaTypes)
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.AssemblyLoader.ObtainSchemas()
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.AssemblyLoader.ObtainSchemas()
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Reflection.AssemblyManager.ObtainSchemas()
at Microsoft.BizTalk.Adapter.Wcf.Publishing.Wizard.SelectSchemaDialog.ListSchemas()