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

yasith_udawatte
Member Posts: 6
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".

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
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".

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
0
Answers
-
Check your instance, it must be working.
Otherwise Issue must be in your config File of the Clickonce folder. Please check it.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
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?
0 -
Replace Server value with Public IP.
<add key="Server" value="az-weu-nav02.cloud.ism-hosting.net" />
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
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.
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions