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?

Comments

  • Can you tell the complete exception message?
    Are you using 2.0.1 or an older version. Had some corrections for connection problems in 2.0.1.
  • I am using repetier host 2.0.1 and repetier server 0.80.3.
    The complete error message is: "Socket Error: An exception has occurred during the OnOpen event."
  • Repetier said:
    Can you tell the complete exception message?
    Are you using 2.0.1 or an older version. Had some corrections for connection problems in 2.0.1.
    I am using repetier host 2.0.1 and repetier server 0.80.3.
    The complete error message is: "Socket Error: An exception has occurred during the OnOpen event."
  • Repetier said:
    Can you tell the complete exception message?
    Are you using 2.0.1 or an older version. Had some corrections for connection problems in 2.0.1.
    I can add these other infos:
    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>

  • Here a thread, see last entry where someone had the same problem that System.Runtime could not be loaded:
    https://stackoverflow.com/questions/24740193/could-not-load-file-or-assembly-system-runtime-serialization-after-publishing-vi
    hope it helps.
  • Repetier said:
    Here a thread, see last entry where someone had the same problem that System.Runtime could not be loaded:
    https://stackoverflow.com/questions/24740193/could-not-load-file-or-assembly-system-runtime-serialization-after-publishing-vi
    hope it helps.
    I tried the solution, and it worked.
    Probably the problem has to be reported to mono project's developers...
    Thank you very much indeed for the help.
Sign In or Register to comment.