I was preparing a training session about Dynamics NAV 2015 and I was using a Cronus database that was already installed in my computer.
I’ve added the Customer Card to Web Services and published it, just to test it. When I was going to connect to the webservice using .NET WS Studio, I got the error:
System.InvalidOperationException: General Error http://localhost:50220/DynamicsNAV80/WS/CRONUS%20International%20Ltd/Page/CustomerCard —> System.Net.WebException: There was an error downloading ‘http://localhost:50220/DynamicsNAV80/WS/CRONUS%20International%20Ltd/Page/CustomerCard’. —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:50220
Now what? Is it a firewall problem? The page was not published properly?
No, the problem is that I must enable the SOAP services in the NAV Server, which is not enabled by default.
After that, save the changes and restart the NAV Server.