Hello The following code works successfully and is only shown here to give you an overview of what i am doing . My question is what property i have to set to be able to provide a username and password for the send port in case the host cannot access the network share? This can be done for a receive port by setting the RecieveLocation.TransportTypeData with the appropriate xml string. i would like to be able to achieve the same for a send port . Dim Sendport As SendPort = Application1.AddNewSendPort(False, False) Sendport.Name = row.Item("LocationId").ToString 'Configure protocol type For Each protocol As ProtocolType In catalog.ProtocolTypes If (protocol.Name = "FILE") Then Sendport.PrimaryTransport.TransportType = protocol Exit For End If Next Sendport.SendPipeline = catalog.Pipelines("Microsoft.BizTalk.DefaultPipelines.PassThruTransmit") Sendport.Filter = "<Filter><Group>" _ & "<Statement Property= 'BTS.ReceivePortName' Operator='0' Value='" _ & row.Item("LocationId").ToString _ & "'/>" _ & "</Group></Filter>"