[NAV ClickOnce] The program could not create a connection to the server

Hi Experts,

I have a NAV 2015 ClickOnce environment with Multi tenants setup in Azure server. This was working fine and I able to create NAV ClickOnce Client login with NavUserPassword authentication. But recently there a domain change and now I am unable to login to any NAV tenant using NAV ClickOnce.

Now when I do a ClickOnce deployment, required files are get copied to the client mechine and installation happen. After that authentication screens comes and when I entered the correct user name and password it gives error "The program could not create a connection to the server".

cd4utb9jzu09.png

I already adjust existing powershell scripts with the new domain, which use to configure ClickOnce deployment environment.

Any idea which could be went wrong after this domain change?

Thanks you in advance.

best regards,
Yasith

Answers

  • RockWithNAVRockWithNAV Member Posts: 1,139
    Check your instance, it must be working.

    Otherwise Issue must be in your config File of the Clickonce folder. Please check it.
  • yasith_udawatteyasith_udawatte Member Posts: 6
    Hi

    Yes Instance is working. I can log in to the tenant from the server side.
    I compared ClientUserSettings.config file with older ClientUserSettings.config file which worked fine before.

    Older config file (which was worked fine before the domain change)
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <appSettings>
    <add key="Server" value="az-weu-nav02.cloud.ism-hosting.net" />
    <add key="ClientServicesPort" value="8346" />
    <add key="ServerInstance" value="DynamicsNAV80SC9200_SanaCloud" />
    <add key="TenantId" value="ws100venuja08" />
    <add key="ClientServicesProtectionLevel" value="EncryptAndSign" />
    <add key="UrlHistory" value="az-weu-nav02.cloud.ism-hosting.net:8346/DynamicsNAV80SC9200_SanaCloud" />
    <add key="ClientServicesCompressionThreshold" value="64" />
    <add key="ClientServicesChunkSize" value="28" />
    <add key="ClientServicesKeepAliveInterval" value="120" />
    <add key="MaxNoOfXMLRecordsToSend" value="5000" />
    <add key="MaxImageSize" value="26214400" />
    <add key="ClientServicesCredentialType" value="NavUserPassword" />
    <add key="ACSUri" value="" />
    <add key="AllowNtlm" value="true" />
    <add key="ServicePrincipalNameRequired" value="False" />
    <add key="ServicesCertificateValidationEnabled" value="false" />
    <add key="DnsIdentity" value="az-weu-nav02.cloud.ism-hosting.net" />
    <add key="HelpServer" value="az-weu-nav02.cloud.ism-hosting.net" />
    <add key="HelpServerPort" value="49000" />
    <add key="ProductName" value="" />
    </appSettings>
    </configuration>

    New config file after domain change (not working)
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <appSettings>
    <add key="Server" value="az-weu-nav02.cloudapp.net" />
    <add key="ClientServicesPort" value="8346" />
    <add key="ServerInstance" value="DynamicsNAV80SC9200_SanaCloud" />
    <add key="TenantId" value="TestTenantNew" />
    <add key="ClientServicesProtectionLevel" value="EncryptAndSign" />
    <add key="UrlHistory" value="az-weu-nav02.cloudapp.net:8346/DynamicsNAV80SC9200_SanaCloud" />
    <add key="ClientServicesCompressionThreshold" value="64" />
    <add key="ClientServicesChunkSize" value="28" />
    <add key="ClientServicesKeepAliveInterval" value="120" />
    <add key="MaxNoOfXMLRecordsToSend" value="5000" />
    <add key="MaxImageSize" value="26214400" />
    <add key="ClientServicesCredentialType" value="NavUserPassword" />
    <add key="ACSUri" value="" />
    <add key="AllowNtlm" value="true" />
    <add key="ServicePrincipalNameRequired" value="False" />
    <add key="ServicesCertificateValidationEnabled" value="false" />
    <add key="DnsIdentity" value="az-weu-nav02.cloudapp.net" />
    <add key="HelpServer" value="az-weu-nav02.cloudapp.net" />
    <add key="HelpServerPort" value="49000" />
    <add key="ProductName" value="" />
    </appSettings>
    </configuration>

    The only deference between those two configs are the domain. (except tenant)

    Is there something wrong here or anything else to concern?

  • RockWithNAVRockWithNAV Member Posts: 1,139
    Replace Server value with Public IP.

    <add key="Server" value="az-weu-nav02.cloud.ism-hosting.net" />

  • yasith_udawatteyasith_udawatte Member Posts: 6
    Hi,

    I able to find the cause of the problem.
    When I tried to access the NAV ClickOnce from a different network, I able to get following error message.
    8oaaiyr7bh00.png

    Then I realize the problem was with the DnsIdentity.
    When I changed the full domain name to the machine name, problem solved.

    <add key="DnsIdentity" value="az-weu-nav02.cloudapp.net" />
    changed as
    <add key="DnsIdentity" value="az-weu-nav02" />

    Thank you very much for your concern.

    Cheers.
Sign In or Register to comment.