Viewer Error : Error connecting to server 'localhost': [-1]

-- Error Message

Error connecting to server 'localhost': [-1]

Please Check:

1) If this computer is allowed to access the remote server;

2) If the server accepts Thin Client connections;

3) If the server's max number of connections has not been exceeded;

4) If the Encrypted Channel settings on this computer -- in particular, the port number -- match those on the server; and

5) If the server's certificate meets the following requirements:
a) It should include the correct host names and IP addresses I its Subject Alternative Name field; and
b) If it is signed by a certificate authority (CA), it should be installed in this computer's Local Certificate Store.

-- End of message.

1. This is a local application, no remote server
2. This is a local application, no thin client connections
3. This is a local application, no connections used or needed
4. Did not have Encryption enabled.
5. This is a local application, no Server/Client certificates needed.

The application runs fine on my development PC. (W10 64bit, Pro, IWS8.1SP5 Engineering Only license)
It does not work as expected on the runtime PC (W10 64bit, LTSB, IWS8.1SP5 Windows Embedded license) Note: application was fine on this PC before OS changes.

I made some changes to the OS and now I get the above message. The changes I made were things like Computer Name, IP Address, etc. I would not think these changes would have any affect on the operation of InduSoft.

If I Enable the Encrypted Port on the data server, the application will run, but it asks me to enter log in information before it will run (unacceptable).
  • OK, I think I found the problem.

    Apparently InduSoft missed a file in their housekeeping. A file (Viewer.ini) is not needed in my project but it was in my …\Redist\WinEmbedded\Bin folder of my development PC (a remnant from another project) and therefore was sent to the embedded device when an 'Install system files...' was performed.

    To fix the problem (at least temporarily) simply delete the file (Viewer.ini) from the …\Bin folder of the embedded device AND delete the file from the …\Redist\WinEmbedded\Bin folder on your development PC.