Unable to connetct to server running on localhost
I successfully installed both host and server on the same machine.
The server works regularly, connects to printer, and is accessible by the webserver.
Similarly the host works nicely, slicing properly.
But they cannot talk one another. When I try the procedure for installing the printer on the host by Repetier-server, after I put in the API code, as I try to connect, I get a "socket error". It says that there is an exception in OnOpen.
I tried everyting, unsuccessifully.
Can you help me?
The server works regularly, connects to printer, and is accessible by the webserver.
Similarly the host works nicely, slicing properly.
But they cannot talk one another. When I try the procedure for installing the printer on the host by Repetier-server, after I put in the API code, as I try to connect, I get a "socket error". It says that there is an exception in OnOpen.
I tried everyting, unsuccessifully.
Can you help me?
Comments
Are you using 2.0.1 or an older version. Had some corrections for connection problems in 2.0.1.
The complete error message is: "Socket Error: An exception has occurred during the OnOpen event."
The complete error message is: "Socket Error: An exception has occurred during the OnOpen event."
25/05/2017 14:04:41|Error|WebSocket.open|System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception. ---> System.TypeLoadException: Could not load type of field 'Newtonsoft.Json.Utilities.EnumUtils:CS$<>9__CachedAnonymousMethodDelegate1' (1) due to: Could not load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. assembly:System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:<unknown type> member:<none>
https://stackoverflow.com/questions/24740193/could-not-load-file-or-assembly-system-runtime-serialization-after-publishing-vi
hope it helps.
Probably the problem has to be reported to mono project's developers...
Thank you very much indeed for the help.