Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:29:58+00:00 2026-05-23T02:29:58+00:00

I have a WCF which I can call from a VB.NET application like this:

  • 0

I have a WCF which I can call from a VB.NET application like this:

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)

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.

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#:

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);

Any ideas?

Thanks in advance,
Jason

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:29:59+00:00Added an answer on May 23, 2026 at 2:29 am

    Your arguments appear in a different order between the two.

    Compare:

    tcp.StartExStream(datPath, optPath, ExStreamPath)
    

    With:

    MyTCP.StartExStream(ExStreamPath, datPath, optPath);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service which I'm trying to call from a simple .NET
Hello I have a simple wcf service like this, with a test method which
I have a WCF visual studio project, which contains many SVC files. Can I
I have a WCF service which would like to support basicHttpBinding and webHttpBinding. When
Ok, I have developed this WinForms client, which interacts with a server (ASPX Application)
I have a simple WCF service that I call server side from code behind
My use-case: I already have a working ASP.NET application I would like to implement
I have an ASP.NET MVC web app whose controllers use WCF to call into
can anyone help? I have created a WCF library (not application) and i will
I have written a .NET Windows service which has a WCF service built into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.