Skip to content
  • There are no suggestions because the search field is empty.

Cannot browse for custom server

My client cannot find my custom server that I created using SLIK-DA. I can see other servers though. Can you help?

The problem is that the server is not registered with Windows.

  • Add the following lines of code to your program:
        Try
            Dim sCmdLine As String
            sCmdLine = Microsoft.VisualBasic.Command()

            Dim bExit As Boolean
            bExit = False

            If InStr(1, sCmdLine, "unregserver", CompareMethod.Text) > 0 Then
                SlikServer1.UnregisterServer()
                bExit = True
            ElseIf InStr(1, sCmdLine, "regserver", CompareMethod.Text) > 0 Then
                SlikServer1.RegisterServer()
                bExit = True
            Else

            End If

            If bExit Then
                Me.Close()
            End If

        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
  • Click Save All
  • Go to the Windows Start Menu and click on Run
  • Browse to the executable you have just created and select Open. This will appear in the Browse dialog box. DO NOT HIT OK YET
  • Add parenthesis around the path name and add "regserver" to the end
    i.e.:
    "C:\Users\admin\Desktop\SLIK-DAProject\Server\TestServer\bin\Release/SLIK-DA Tutorial.exe" regserver
  • When you click OK the server will be launched, registered and closed. This may happen so fast that you do no see anything happen on the screen. This is OK.
  • Next we will want to verify that the OPC Server is listed as an installed server. You can test this by opening up an OPC Client (such as the Software Toolbox OPC Quick Client) and browse for the available Servers on your computer. The OPC Server that we just created should be displayed.