locked
LayoutPaths.RootDir=null ? RRS feed

  • Question

  • Hi guys,

    I am trying to host a DSS Environment in my c# dll code. This C# dll code is invoked by VISSIM simulator.(VISSIM call DSS environment). But i got errors " invalid URI" in

    DssEnvironment.Initialize(50000, 50001,LayoutPaths.RootDir + LayoutPaths.SampleDir + @"config\ServiceTutorial1.manifest.xml");

    Then in Debug mode, i check it that LayoutPaths.RootDir while in the normal DSS Node "LayoutPaths.RootDir = C:\Microsoft Robotics(1.5)\bin" , any methods ?

    or because i hosted this DSS in VISSIM dll envrionment so the context is differnet , is this method feasible ?

    Friday, June 25, 2010 10:30 PM

Answers

  • yes, i  solved it using Robotics(2008) by adding some additional codes. Anyway, it's still useful in Robotics1.5 because it doesn't have

    "dssRuntimeConfig.HostRootDir " variable.

    "DssRuntimeConfiguration dssRuntimeConfig = new DssRuntimeConfiguration();
                    dssRuntimeConfig.HostRootDir = @"C:\Program Files\PTV_Demo\VISSIM520\Exe";
                    dssRuntimeConfig.PublicHttpPort = 50000;
                    dssRuntimeConfig.PublicTcpPort = 50001;
                    dssRuntimeConfig.SecuritySettings = @"C:\Program Files\PTV_Demo\VISSIM520\Exe\store\SecuritySettings.xml";
                    DssEnvironment.Initialize(dssRuntimeConfig, LayoutPaths.RootDir + LayoutPaths.SampleDir + @"config\MSRSProxy.manifest.xml");

    "

    • Marked as answer by Yuzhuo Thursday, July 1, 2010 10:54 PM
    Thursday, July 1, 2010 10:54 PM

All replies

  • Is your .exe outside of the RDS installation folder?

    Trevor

     

    Monday, June 28, 2010 1:06 AM
  • yes, i  solved it using Robotics(2008) by adding some additional codes. Anyway, it's still useful in Robotics1.5 because it doesn't have

    "dssRuntimeConfig.HostRootDir " variable.

    "DssRuntimeConfiguration dssRuntimeConfig = new DssRuntimeConfiguration();
                    dssRuntimeConfig.HostRootDir = @"C:\Program Files\PTV_Demo\VISSIM520\Exe";
                    dssRuntimeConfig.PublicHttpPort = 50000;
                    dssRuntimeConfig.PublicTcpPort = 50001;
                    dssRuntimeConfig.SecuritySettings = @"C:\Program Files\PTV_Demo\VISSIM520\Exe\store\SecuritySettings.xml";
                    DssEnvironment.Initialize(dssRuntimeConfig, LayoutPaths.RootDir + LayoutPaths.SampleDir + @"config\MSRSProxy.manifest.xml");

    "

    • Marked as answer by Yuzhuo Thursday, July 1, 2010 10:54 PM
    Thursday, July 1, 2010 10:54 PM