我在 BizTalk 2009 集成的另一边,我有一个相当简单的合同,看起来像这样:
[ServiceContract(Name = "ReceiverService", Namespace = "http://services.company.org/")]
public interface IReceiverService : ILoadBalanced
{
[OperationContract]
void FinishedRouting(long applicationId);
[OperationContract]
void ResponsePending(long applicationId, string stringId, short count);
[OperationContract]
void ReportException(long applicationId, string errorMessage, string stringId);
[OperationContract]
void SaveResponse(WebResponseDto decision);
}
但是,当 BizTalk 组尝试使用 WCF 服务使用向导时,它会阻塞并提供此堆栈跟踪:
[5096] System.NullReferenceException: Object reference not set to an instance of an object.
[5096] at Microsoft.BizTalk.Adapter.Wcf.Consuming.Exporters.BindingInfoExporter.CreatePrimaryTransport(ServiceEndpoint serviceEndpoint, Boolean custom)
[5096] at Microsoft.BizTalk.Adapter.Wcf.Consuming.Exporters.BindingInfoExporter.CreateSendPort(ServiceEndpoint endpoint, Port port, Boolean custom)
[5096] at Microsoft.BizTalk.Adapter.Wcf.Consuming.Exporters.BindingInfoExporter.Export(ServiceEndpointCollection endpoints, ServiceDescriptionCollection wsdlDocuments, Boolean custom)
[5096] at Microsoft.BizTalk.Adapter.Wcf.Consuming.Consumer.CreateBindingFiles(MetadataSet metadataSet, String serviceName)
然后在这里:
[5096] System.NullReferenceException: Object reference not set to an instance of an object.
[5096] at Microsoft.BizTalk.Adapter.Wcf.Consuming.Implementation.ClientImplementation.AddFilesToProject(String schemaNamespace)
[5096] System.NullReferenceException: Object reference not set to an instance of an object.
[5096] at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
[5096] at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
[5096] at Microsoft.BizTalk.Adapter.Wcf.Consuming.Consumer.Consume(ISynchronizeInvoke synchronizeInvoke, DTE dte, MetadataSet metadataSet, Project project, String importNamespace)
有人知道从哪里开始看这个吗?