How to NOT update clientusersettings.config ?

mgnmgn Member Posts: 39
Is there a way to NOT automatically update the clients clientusersettings.config file?
When changing a server in the Windows client, the clientusersettings.config file is automatically updated by the client. Keys like "ServerInstance", "UrlHistory" and "UnknownSpnHint" are updated. The next time the Windows client is opened a connections is made to the value in "ServerInstance".
I prefer not to change these keys. The file does not change when I set the file property Read-Only, but then an error is raised in the Windows client when connecting to another service. Is there a way to give the user the ability to open any service instance (without errors) and not update the clientusersettings.config file?

Answers

  • afarrafarr Member Posts: 287
    I don't know how to do that, but a workaround would be to have a copy of the clientusersettings.config, and put some code in Codeunit 1 (or Codeunit 40 - Login Management) that overwrites clientusersettings.config with the copy.

    Of course, if you ever DO want to change the values in clientusersettings.config you would also need to change the copy.
    Alastair Farrugia
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2018-02-04
    mgn wrote: »
    When changing a server in the Windows client, the clientusersettings.config file is automatically updated by the client. Keys like "ServerInstance", "UrlHistory" and "UnknownSpnHint" are updated. The next time the Windows client is opened a connections is made to the value in "ServerInstance".
    I prefer not to change these keys.
    So, in other words, your real requirement is to make sure that each time the user starts the RTC the client connects to some preferred NST, rather than to the most recently opened one, right?

    If this is the case you can look at the RTC command-line parameters, edit the shortcuts and add predefined server address there.

    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • mgnmgn Member Posts: 39
    Thanks Slawek, that seems to be solution.
    I remember I tried this option some years ago and then I ran into some limitations. It seems that some parameters have been added and those issues are solved.
    Next time I will be more clear when asking a question ;).
Sign In or Register to comment.