This is caused by issues with the credentials normally on this line where the credentials are passed through. For some systems not setting the credentials will work as it will use the current users credentials

...PortClient.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential(userName, password, domain);

This issue is with the Navision Service and needs to be passed to the Navision consultant.