Issue

When attempting to publish a K2 Connect service object in Visual Studio, the following error appears:

"K2 Blackpearl server and K2 Connect server names are not the same"

Symptoms

In Visual Studio, when opening the K2 Service Object Designer and selecting the K2 Blackpearl Settings icon: The server names under K2 Blackpearl Server and K2 Connect Service are not the same server.

Image

Troubleshooting Steps

The server name in K2 Blackpearl Server is read from the SmartObject Server environment field in your Environment Library. Please check your default Environment Library, and make sure the connection string in SmartObject Server is pointing to the correct server.

Image

If your SmartObject Server environment field is correct, yet the server name in K2 Service Object Designer is still showing the wrong server, then it is likely your Visual Studio is connected to a different K2 environment. In that case:

  1. Open K2 Object Browser
  2. Click on the arrow besides the Environment header
  3. Select Change Server
  4. Change the server to the correct environment's server

    Image

Once that is done, check if the server names in K2 Service Object Designer has been updated. Once the server names match, republish the service object again.

Image