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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:25:06+00:00 2026-05-30T04:25:06+00:00

I have created a WCF service with some endpoints(with mex endpoint). If i create

  • 0

I have created a WCF service with some endpoints(with mex endpoint).
If i create for example a Console Host now and put this in my main:

 ServiceHost host = new ServiceHost(typeof(HelloWorld));

 host.Open();

 Console.WriteLine("The service is ready at!");
 foreach (ServiceEndpoint se in host.Description.Endpoints)
          Console.WriteLine(se.Address.ToString());
      Console.WriteLine("Press <Enter> to stop the service.");
 Console.ReadLine();

// Close the ServiceHost.
host.Close();

Is it possible to generate a app.config on the hostside by adding a service reference, or do i need to create the app config my self and make it similar to the wcf service endpoints?

Next to this, how is it possible that some other computer on the LAN can access this host?

(PS what the heck does this mean: A service may inlcude an mex endpoint, which obtain the ABC’s of the service and returns the WSDL. (NOW THE NOT UNDERSTANDABLE PART) After the WSDL is obtained, two artifacts are generated: a proxy class in the language of the project and an app.config file. The proxy class mirrors the signature of the endpoint operations so that client code can simply “call”an endpoint. The proxy interface doesn’t have to be identical to the service signature, but the proxy needs to ensure that the message transmitted to the service is precisely what is described by the service contract.(OK WHAT?)

  • 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-30T04:25:07+00:00Added an answer on May 30, 2026 at 4:25 am

    1) You have to specify endpoints(A-Address,B-Binding,C-contract) in the app.config and this app.config must be with your host app(Your console app in this case)
    2) This service can be recognized in the LAN if some client runs visual studio’s command prompt and runs this-

    SvcUtil http://localhost/MyService/MyService.svc /out:c:\Proxy.cs (sample command change various values as per your case…)

    Here Proxy.cs contains Proxy class, the client should add this to the solution and calls the method of proxy class, in the same directory where this Proxy.cs exists, you will find 1 .config file, paste this file’s contents to the client’s app.config.
    3) MEX endpoint is required to exchange meta information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a WCF service, now this WCF service has to call a
I have created a basic WCF service in IIS. I am aware that this
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have created a WCF service in Visual Studio 2010 along with some supporting
I have created WCF service in project. Now using Jquery I am successfully able
I have created a WCF service in my project and I have some classes
I have created a WCF service for uploading images , which accepts System.IO.Stream as
We have created a WCF service hosted in a windows service that handles Authentication
I am a WCF / Security Newb. I have created a WCF service which
I have created a simple wcf service which used the WCF Service Library template.

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.