"System.ArgumentException" error logged in the Application event log after you set a large port number in the SFTP adapter in BizTalk Server


If you set a large port number, such as 55222, as a send port of the SFTP adapter, the host instance that runs the port logs the following exception in the Application event log:

System.ArgumentException:  Port number cannot be negative


The fix that resolves this issue is included in the following update for BizTalk Server:

Cumulative Update 5 for BizTalk Server 2016


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


Learn about service pack and cumulative update list for BizTalk Server.

Learn about BizTalk Server hotfixes and cumulative update support.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.