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 6908251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:32:21+00:00 2026-05-27T08:32:21+00:00

So I created winforms client and added wcf class library to the solution. In

  • 0

So I created winforms client and added wcf class library to the solution.

In winforms I do

ServiceHost svc = new ServiceHost(typeof(...), new Uri("net.pipe://localhost/MyNamedPipe")

and then svc.Open() which executes fine.

Now, how do I add a service reference so in same winforms I can get proxy for that wcf?

I only was able to generate that by using ASP.NET Development Server which started when winforms was ran and so I copied that url, stopped debugging (Development Server was still running) and then added a service reference from there. But that isn’t correct I guess.

Of course I can reference wcf contract class directly and use it, but that is not proper either.

  • 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-27T08:32:22+00:00Added an answer on May 27, 2026 at 8:32 am

    When you are controlling both ends like that, I prefer to use ChannelFactory:

    NetNamedPipeBinding binding = new NetNamedPipeBinding();
    EndpointAddress address = new EndpointAddress("net.pipe://localhost/MyNamedPipe");
    ChannelFactory<YourInterface> factory = new ChannelFactory<YourInterface>(binding, address);
    YourInterface yourInterface = factory.CreateChannel();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a .NET winforms MVC. The Controller and View are in the same
I have created a setup project in VS2008. My WinForms app uses .NET 2.0,
I created a Winform in VB.NET, and I added a Splitter control to allow
I'm creating a smart client application using .NET 3.5. A Winforms client connecting through
We have created a WinForms application and store some configurations via the ConfigurationManager class.
I created a Winforms AutoComplete combobox control inheriting from ComboBox with the following method:
I have a Winforms application created in Visual Studio 2005 Pro, it connects to
I'm developing a WinForms c# 3.0 application. Our designer created quite a lot of
I have 2 programs (.exe) which I've created in .NET. We'll call them the
I am a seasoned .NET / SQL Server developer. I just started a new

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.