Options

Must choose server for every login (Role based)

stiastastiasta Member Posts: 106
edited 2011-11-10 in NAV Three Tier
Hello
Each time i login i get the "Choose server" dialog. (With URL filled in) (Without URL filled in)
Also, the columns and setup i have performed the last time i was logged in is not applied.
It seems that NAV does not remember the settings when i logout and login again.
What could be the problem here?

I have done some searching and found that i could be a SPN problem, but I am allowed to login and im not getting any errors.
What could be the problem?

EDIT: I am going to try to run an event viewer to see if i get any errors or warnings
EDIT: The architecture is 3 TIER with Dyn NAV Serv. and SQL Serv. on seperate computers

Answers

  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Can you tell us what URL value you are having in choose server window and what you want to have?
  • Options
    stiastastiasta Member Posts: 106
    Sorry. I had misinformed you.
    There is NO URL in the choose server window when rolebased client is started.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    I think you need to set the correct server name and instance name in clientusersettings file (not sure of file name)

    you can find it under
    C:\Users\<username>\AppData\Local\Microsoft\Microsoft Dynamics NAV
  • Options
    stiastastiasta Member Posts: 106
    is this not set when the URL is filled in the choose server window, and you successfully login?
  • Options
    stiastastiasta Member Posts: 106
    The customer has two databases and two Dyn. NAV servers running. The users that login to one service has all settings saved, and do not need to choose server for each login.
    The other users that login to the other service does not have settings saved, and needs to choose server for each time.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    try by saving the settings for second database users also..
  • Options
    stiastastiasta Member Posts: 106
    Sorry, but I didn't quite understand the last suggestion. Save the settings in the database?
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    stiasta wrote:
    The customer has two databases and two Dyn. NAV servers running. The users that login to one service has all settings saved, and do not need to choose server for each login.
    The other users that login to the other service does not have settings saved, and needs to choose server for each time.
    Save the server name and instance name in clientusersettings file under
    C:\Users\<username>\AppData\Local\Microsoft\Microsoft Dynamics NAV
    for all users to open the RTC without getting choose server option..
  • Options
    stiastastiasta Member Posts: 106
    I will try your suggestion. Thank you for your help.
    I will keep you posted on the result.
  • Options
    stiastastiasta Member Posts: 106
    More information:
    The client is a thin client.

    What i have tried.
    1.
    Log on the correct server.
    Close client
    Start client
    -> Logs on to the correct server.

    2.
    Log on the correct server
    close client
    Log off the thin client
    log on the thin client
    start the client
    -> Does not remember last server I was connected to.

    Edit: Have not tried your suggestion yet mohana
  • Options
    stiastastiasta Member Posts: 106
    Update:
    After the hint from Mohana I have investigated the clientusersetting.config file.
    When I login to the correct server the .config file contains this. (Just for some security i have removed the server ip :) )
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    	<appSettings>
      <add key="Server" value="**" />
      <add key="ServerInstance" value="HT" />
      <add key="ServerPort" value="7048" />
      <add key="ProtectionLevel" value="EncryptAndSign" />
      <add key="UrlHistory" value="**:7046/DynamicsNAV,**:7048/HT" />
      <add key="CompressionThreshold" value="64" />
      <add key="ChunkSize" value="28" />
      <add key="AllowNtlm" value="true" />
      <add key="ServicePrincipalNameRequired" value="False" />
      <add key="OpenConnectionTimeout" value="00:00:30" />
      <add key="ClientCredentialType" value="Windows" />
      <add key="DnsIdentity" value="" />
      <add key="UnknownSpnHint" value="(net.tcp://**:7046/DynamicsNAV/Service)=Spn;(net.tcp://**:7048/HT/Service)=Spn;" />
     </appSettings>
    </configuration>
    

    After i have logged off and on the thin client the .config file is not present at first. But when i start the client it is created and it looks like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    	<appSettings>
      <add key="Server" value="**" />
      <add key="ServerInstance" value="DynamicsNAV" />
      <add key="ServerPort" value="7046" />
      <add key="ProtectionLevel" value="EncryptAndSign" />
      <add key="UrlHistory" value="" />
      <add key="CompressionThreshold" value="64" />
      <add key="ChunkSize" value="28" />
      <add key="AllowNtlm" value="true" />
      <add key="ServicePrincipalNameRequired" value="False" />
      <add key="OpenConnectionTimeout" value="00:00:30" />
      <add key="ClientCredentialType" value="Windows" />
      <add key="DnsIdentity" value="" />
      <add key="UnknownSpnHint" value="(net.tcp://**:7046/DynamicsNAV/Service)=Spn;" />
     </appSettings>
    </configuration>
    

    As you can see, it looks like the .config file is flushed from the system at logg off, but when I logon, and start the client again it is created, and uses a config file that is retrieved from somewhere.
    Where is this config file retrieved from?
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Did you try manually updating the file and opening the RTC?
  • Options
    stiastastiasta Member Posts: 106
    Did you try manually updating the file and opening the RTC?
    No i did not try that.
    But if i have to manually update for each time i log off and log on the thin client it is the same as getting the choose server dialog each time i start the client.

    When i log off the thin client, the .config file is removed from the user folder (Since it is not there when i log on the thin client)
  • Options
    stiastastiasta Member Posts: 106
    Update:
    The personalization done in the company is remembered. For example, added columns in customers page.

    So now its only the choose server problem left.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    stiasta wrote:
    When i log off the thin client, the .config file is removed from the user folder (Since it is not there when i log on the thin client)
    I never noticed this..by default file will be hidden so make sure of that..
    I didnt you you are not trying by manually updating the file..

    You can check this blog for different idea
    http://blogs.msdn.com/b/nav/archive/2009/11/17/how-to-run-2-rtc-on-the-same-pc-and-connect-it-to-different-db-how-to-run-pages-reports-from-diff-db.aspx
  • Options
    stiastastiasta Member Posts: 106
    It looks like the thin client user has the folder where dynamics nav stores their clientusersettings.config flushed when they relog on the thin client.
    I have solved this by creating a shortcut to the exe file and used a parameter that points to the correct server and company.
    Info about the parameter settings can be read here:
    http://msdn.microsoft.com/en-us/library/dd338743.aspx
Sign In or Register to comment.