Error while passing CustomSettings.config file in RTC .exe

shettarvikasshettarvikas Member Posts: 106
edited 2012-06-12 in NAV Three Tier
Hi,

I am trying to open different database through RTC Shortcut by passing the “CustomSettings.config” in RTC .exe file, below is the command which is written in Target
"C:\Program Files (x86)\Microsoft Dynamics NAV\60\Service\Microsoft.Dynamics.Nav.Server.exe" -settings:"C:\Users\xxx\AppData\Local\Microsoft\Microsoft Dynamics NAV\CustomSettings.config"

And “CustomSettings.config” file contains,
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<appSettings>
  <add key="Server" value="xx.xx.xxx.xxx" />
  <add key="ServerInstance" value="ServerInstance" />
  <add key="ServerPort" value="7046" />
  <add key="ProtectionLevel" value="EncryptAndSign" />
  <add key="UrlHistory" value=" xx.xx.xxx.xxx:7046/DynamicsNav" />
  <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:// xx.xx.xxx.xxx: 7046/DynamicsNav01/Service)=NoSpn;(net.tcp:// xx.xx.xxx.xxx: 7048/ DynamicsNav02/Service)=NoSpn;" />
 </appSettings>
</configuration>
But on clicking the shortcut, I get
"-settings:"C:\Users\xxx\AppData\Local\Microsoft\Microsoft Dynamics NAV\CustomSettings.config is an Invalid command line argument. Use the /? switch for help"

Please let me know, how can I achieve this

Thanks & Regards,
Vikas

Comments

  • kinekine Member Posts: 12,562
    From the error message it looks like you are missing ending double quote.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ChristianDamm_[MSFT]ChristianDamm_[MSFT] Member, Microsoft Employee Posts: 15
    The settings file you are showing looks like the RTC settings file, but you're passing it to the server executable?
    Christian Heide Damm
    Developer @ Microsoft
  • kinekine Member Posts: 12,562
    Good catch!... I overlooked that "small" detail... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.