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

  • Home
  • SEARCH
  • 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 8995783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:39:56+00:00 2026-06-15T23:39:56+00:00

i have two apps. one is winform server end where wcf service is hosted

  • 0

i have two apps. one is winform server end where wcf service is hosted and another is winform client app where i have to add service reference.there is no any svc file. so when i am trying to create service proxy at winform wcf client end just entering the url like

http://localhost:7998/WPFHost/ or
net.tcp://localhost:7997/WPFHost/
for adding service through service reference then getting error.
Metadata contains a reference that cannot be resolved: ‘net.tcp://localhost:7997/WPFHost/’.

here i am pasting my full app.config file data of wcf server end where wcf has been hosted. please guide me what is wrong in the app.config for which adding ervice reference not being able to add.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
    <services>
        <service name="WCFService.Service"
                 behaviorConfiguration="behaviorConfig">

            <host>
                <baseAddresses>
                    <add baseAddress="net.tcp://localhost:7997/WPFHost/"/>
                    <add baseAddress="http://localhost:7998/WPFHost/"/>
                </baseAddresses>
            </host>
            <endpoint address="tcp"
                      binding="netTcpBinding"
                      bindingConfiguration="tcpBinding"
                      contract="ServiceAssembly.IChat"/>

            <endpoint address="net.tcp://localhost:7996/WPFHost/mex"
                      binding="mexTcpBinding"
                      contract="IMetadataExchange"/>
        </service>
    </services>
    <behaviors>
        <serviceBehaviors>
            <behavior name="behaviorConfig">
                <serviceMetadata httpGetEnabled="true" httpGetUrl=""/>
                <serviceDebug includeExceptionDetailInFaults="true"/>
                <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100"/>
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <bindings>
        <netTcpBinding>
            <binding name="tcpBinding"
                     maxBufferSize="67108864"
                     maxReceivedMessageSize="67108864"
                     maxBufferPoolSize="67108864"
                     transferMode="Buffered"
                     closeTimeout="00:00:10"
                     openTimeout="00:00:10"
                     receiveTimeout="00:20:00"
                     sendTimeout="00:01:00"
                     maxConnections="100">
                <security mode="None">
                </security>
                <readerQuotas maxArrayLength="67108864"
                              maxBytesPerRead="67108864"
                              maxStringContentLength="67108864"/>
                <reliableSession enabled="true" inactivityTimeout="00:20:00"/>
            </binding>
        </netTcpBinding>
    </bindings>
</system.serviceModel>
    </configuration>
  • 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-06-15T23:39:56+00:00Added an answer on June 15, 2026 at 11:39 pm

    You should try to create the service proxy to mex address which is at port 7996:

    net.tcp://localhost:7996/WPFHost/mex
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two apps and I want one app to change preferences in another
I have two separate apps - one a client (in C#), one a server
I have two Rails apps, one client using ActiveResource and one service. I am
I have two QT apps. One app can be considered to hold a big
I have two Express.js apps running on my server. A plain vanilla app called
I have two WCF apps communicating one-way over named pipes. All is nice, except
I'm new to WCF. Let's say I have two asp.net apps, one that uses
I have two apps. One is a very simple app that I built with
I have two paid apps on app store. I want to create one app
Greetings and salutations, I have two Android apps: one is the server and one

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.