Note that there are some explanatory texts on larger screens.

plurals
  1. POFilePaths in C# and VB.NET (via WCF)
    primarykey
    data
    text
    <p>I have a WCF which I can call from a VB.NET application like this:</p> <pre><code>Dim tcp As New TCPService2.Service1Client ExStreamPath = "C:\Program Files\Exstream\Dialogue 6.1\Engine.exe" datPath = "-FILEMAP=DataFile,\\Dev-srv1\Exstream\LetterWriterApp\Input Files\Data Files\SAVEezkazivaftf40s452ndayb45.dat" optPath = "-CONTROLFILE=C:\Exstream\Development\LetterWriter\ControlFiles\Letter.opt" tcp.StartExStream(datPath, optPath, ExStreamPath) </code></pre> <p>The previous code kicks off a subroutine in a WCF (written in VB.NET), which uses the process object to start a 3rd party executable (with the arguments listed above). The code works great.</p> <p>But, I'm having problems making the same type of call with C#. I think it might have something to do with a VB WCF being passed C# filepaths (the whole double-\\ thing), but I'm not sure. When trying to run the following code, I'm getting a 'File Not Found' error. The paths have been copied and pasted, so I know the paths are identical. Here's the C#:</p> <pre><code>tcpExstream.Service1Client MyTCP = new tcpExstream.Service1Client(); string ExStreamPath; string datPath; string optPath; ExStreamPath = @"C:\Program Files\Exstream\Dialogue 6.1\Engine.exe"; datPath = @"-FILEMAP=DataFile,\\Dev-srv1\Exstream\LetterWriterApp\Input Files\Data Files\SAVEezkazivaftf40s452ndayb45.dat"; optPath = @"-CONTROLFILE=C:\Exstream\Development\LetterWriter\ControlFiles\Letter.opt"; MyTCP.StartExStream(ExStreamPath, datPath, optPath); </code></pre> <p>Any ideas?</p> <p>Thanks in advance, Jason</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload