Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat can cause an object reference error when using BizTalk to consume a WCF endpoint?
    primarykey
    data
    text
    <p>I'm on the other side of a BizTalk 2009 integration, and I have a fairly simple contract stood up that looks something like this:</p> <pre><code>[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); } </code></pre> <p>However, when the BizTalk group attempts to use the WCF Service Consuming Wizard, it chokes and provides this stack trace:</p> <pre><code>[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) </code></pre> <p>And then again here:</p> <pre><code>[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) </code></pre> <p><strong>Anyone know where to start looking on this one?</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload