locked
DSS Service Tutorials - Service Tutorial 1. Problems with no default folders RRS feed

  • Question

  • I want to create a service from DSS Service Tutorial - Service Tutorial 1, but I want put project binary files into my own directory. I.e. I have my own folder C:\DSS\Samples\ServiceTutorial1 with files servicetutorial1.sln, servicetutorial1.cs etc. And I have built Debug version into folder C:\DSS\Samples\ServiceTutorial1\bin\Debug. When I have run this service through dsshost.exe with command line
    /port:50000 /tcpport:50001 /manifest:"ServiceTutorial1.manifest.xml"
    I have got the message

    *** Service creation failure most common reasons:
        - Service contract identifier in manifest or Create request does not match Contract.Identifier
        - Service references a different version of runtime assemblies
        Additional information can be found in the system debugger log.

    What I must make for correct running service?
    Tuesday, June 2, 2009 8:32 AM

Answers

  • When you run DssHost it expects all of the compiled services to be in the bin folder. It creates a cached list of service contact identifiers by reading all of the DLLs in the bin folder. This is by design. Because DssHost is a network service, it can only access directories below the "mountpoint" (which is where RDS is installed) for security reasons.

    Trevor
    Tuesday, June 9, 2009 8:16 PM