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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:34:26+00:00 2026-05-14T04:34:26+00:00

Scenario Ignoring that fact that some of the settings might be wrong and inconsistent

  • 0

Scenario

Ignoring that fact that some of the settings might be wrong and inconsistent or just not there!.

Why does the program fail to compile when I try and put these 2 separate configurations for WCF Services into the same APP.CONFIG file? One was writen by myself and another by a friend, yet I cannot get the application to compile. What have I missed?

ERROR

Type Initialization Exception

CODE

<configuration>
<system.serviceModel>

  <!--START Service 1 CONFIGURATION-->
  <bindings>
    <netTcpBinding>
      <binding name="tcpServiceEndPoint" closeTimeout="00:01:00"
       openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
       transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
       hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288"
       maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536">
        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
         maxBytesPerRead="4096" maxNameTableCharCount="16384" />
        <reliableSession ordered="true" inactivityTimeout="00:05:00"
         enabled="true" />
        <security mode="None">
          <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
          <message clientCredentialType="Windows" />
        </security>
      </binding>
    </netTcpBinding>
  </bindings>
  
  <client>
    <endpoint address=""
     binding="netTcpBinding" bindingConfiguration="tcpServiceEndPoint"
     contract="ListenerService.IListenerService"
     name="tcpServiceEndPoint" />
  </client>
  <!--END Service 1 CONFIGURATION-->


 <!--START Service 2 CONFIGURATION-->
  <services>
    <service name="UploadObjects.ResponseService">
      <!-- Define NetMsmqEndpoint -->
      <endpoint address=""
              binding="netTcpBinding"
              contract="UploadObjects.IResponseService"
              bindingConfiguration="TransactedBinding"/>
     </service>
    </services>
    <bindings>
    <netTcpBinding>
        <binding name="TransactedBinding">
        <security mode="None" />
       </binding>
      </netTcpBinding>
    </bindings>
    <!--END Service 2 CONFIGURATION-->

   </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-05-14T04:34:27+00:00Added an answer on May 14, 2026 at 4:34 am

    A couple of observations:

    1. Your <client> endpoint has no address:

      <client>
          <endpoint address=""
                    binding="netTcpBinding" 
                    bindingConfiguration="tcpServiceEndPoint"
                    contract="ListenerService.IListenerService"
                    name="tcpServiceEndPoint" />
      

      How do you expect your client code to know where to connect to?? You need to specify a full WCF service address in any client <endpoint>

    2. Your <service> endpoint also is lacking an address – you either need to specify a full address here, or than you have to have a base address defined in your service! One of the two must be present:

      <services>
         <service name="UploadObjects.ResponseService">
            <endpoint address="net.tcp://YourServer:5455/YourServiceAddress"
                      binding="netTcpBinding"
                      contract="UploadObjects.IResponseService"
                      bindingConfiguration="TransactedBinding"/>
         </service>
      

      or:

      <services>
         <service name="UploadObjects.ResponseService">
            <endpoint address=""
                      binding="netTcpBinding"
                      contract="UploadObjects.IResponseService"
                      bindingConfiguration="TransactedBinding"/>
            <host>
               <baseAddresses>
                  <add baseAddress="net.tcp://YourServer:5455/YourServiceAddress" />
               </baseAddresses>
            </host>
         </service>
      

    Also, from your question, it’s not clear what you’re trying to do when you get the error:

    • are you trying to start up a service host that hosts the service? A console app, or IIS?
    • are you trying to connect a client side to a running service?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: User is viewing a screen with an image and some accompanying text in
Scenario: I have a console application that needs to access a network share with
I have a sample of some kind that can create somewhat noisy output. The
Scenario: Most smartphones have a high resolution camera that generates photos that may range
Scenario: An MVC3 app that uses constructor injection to provide services for a given
Scenario: There are multiple C structs, each of which contains a function pointer to
Scenario : I have an ASP.NET MVC application developed in Visual Studio 2008. There
Scenario: I have an application that has a config table which stores the config
Scenario: I have a directory on a server that hosts my website that contains
Scenario I have an web application which needs some calculations and processing on data.

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.