I try to publish a service using arcobjects[ArcMap version 10.3]. But runtime error occured at the below mentioned code snippet. How to resolve? Kindly suggest.
Dim pGISServerConnection As IGISServerConnection = New GISServerConnectionClass()
pGISServerConnection.Connect(serverMachineName) ''Error occured at this line