Sterling Automation Error

Discussion in 'Automated Trading' started by WhiteOut56, Dec 13, 2010.

  1. This program was running fine on my computer. XP

    Then I purchased a server and am now colocated: Windows Server 2003 R2

    I get this error.
    "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"

    Basically when sterling is calling a quote, this exception pops up. Any clue guys?


    Full error
    4) Here is the full text of the exception:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text *
    System.InvalidCastException: Unable to cast COM object of type
    ‘SterlingLib.STIQuoteClass’ to interface type ‘SterlingLib.ISTIQuote’. This
    operation failed because the QueryInterface call on the COM component for
    the interface with IID ‘{F8D282CC-FEE7-45EC-A080-4276E43E8214}’ failed due
    to the following error: The RPC server is unavailable. (Exception from
    HRESULT: 0x800706BA).
    at SterlingLib.STIQuoteClass.DeRegisterAllQuotes()
    at SterServer.SterMain.SterMain_FormClosing(Object sender,
    FormClosingEventArgs e)
    at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
    at System.Windows.Forms.Form.WmClose(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
    IntPtr wparam, IntPtr lparam)
  2. Can you remote desktop/VNC into the server and can you manually trade from that machine?

    Try selling 100shs of C at $300 or buying 100shs of AAPL at $2 (then obv cancel the orders)

    Did you change your server IPs over from the demo to the live environment? Are you using the demo environment and trying to pull quotes on stocks not available or "special" stocks that return error codes on purpose?
  3. promagma


    Did you just copy the program files? It seems like a DLL isn't registered properly. Try uninstall and reinstall Sterling, and make sure you have the right flavor for your server 32 or 64 bit :)
  4. I'm able to remote desktop into the server. I can buy and sell "c" no problem w/ sterling
  5. Yup, just copied the program files. I did try uninstall / reinstall sterling but no success. But really sure where I find "the right flavor" didn't see different options of download sterling
  6. I love all the guys running parity on C. lol