I developed a windows service, on start there is the "log in" to Milestone server.On XProtect Corporate 2017 R3 it works fine.But on XProtect Corporate 2018 R1 it doeson't works.Anyone kowcan help me?

This is the code:

internal BasicCredentialsConnection(string endPtUrl, string username, string password)

   {

       uri = new System.Uri(endPtUrl);

       try

       {

           credentialCache = VideoOS.Platform.Login.Util.BuildCredentialCache(uri, username, password, "Basic");

           VideoOS.Platform.SDK.Environment.AddServer(uri, credentialCache);               

       }

       catch (System.Exception e)

       {

           throw new ConnectorException(e.Message + ". EndPointUrl: '" + EndPointUrl + "'", e);

       }

       Login();

   }

   /// <summary>

   /// Perform authentication.

   /// </summary>

   /// <exception cref="ConnectorException">Connection, or authentication error.</exception>

   private void Login()

   {          

       try

       {

           VideoOS.Platform.SDK.Environment.Login(uri, false);

           VideoOS.Platform.SDK.Environment.LoadConfiguration(uri);

       }

       catch (System.Exception e)

       {

           throw new ConnectorException(e.Message + ". EndPointUrl: '" + EndPointUrl + "'", e);

       }

   }

First check; please test whether you with the same user from the same PC can login using the Smart Client. If you cannot it is not a SDK issue but a more general setup issue..

If the Smart Client can login but your app cannot I would like to ask..

Do you get an exception? Which?