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

The Archive Base Latest Questions

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

I´m having problems using the .Net 4.0 Routing Service connecting to a service using

  • 0

I´m having problems using the .Net 4.0 Routing Service connecting to a service using callbacks. To my understanding both binding and callbacks are supported by the Routing Service. Service and Client alone are operating fine.

What I did, was taking the MS WCF and WF Samples located here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=35ec8682-d5fd-4bc3-a51a-d8ad115a8792&displaylang=en

and changed the configuration to match the binding of my service. I can call operations via the routing service from the client to the service, only callbacks from service to the client are not received by the client.

The routing service is configured as follows, using a console application as a host

using (ServiceHost serviceHost =
            new ServiceHost(typeof(RoutingService)))
        {
            serviceHost.Open();
            Console.ReadLine();
        }
<system.serviceModel>
<diagnostics>
  <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true"
    logMessagesAtTransportLevel="true" />
</diagnostics>
<services>
  <!--ROUTING SERVICE -->
  <service behaviorConfiguration="routingData" name="System.ServiceModel.Routing.RoutingService" >
    <host>
      <baseAddresses>
        <add  baseAddress="http://localhost:8000/routingservice/router"/>
      </baseAddresses>
    </host>
    <endpoint address=""
              binding="wsDualHttpBinding"
              name="reqReplyEndpoint"
              contract="System.ServiceModel.Routing.IRequestReplyRouter"
              bindingConfiguration="UnSecureBinding"/>
    <endpoint address="mex"
              binding="mexHttpBinding"
              contract="IMetadataExchange"  />
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="routingData">
      <serviceMetadata httpGetEnabled="True"/>
      <serviceDebug includeExceptionDetailInFaults="true" />
      <routing filterTableName="routingTable1" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <wsDualHttpBinding>
    <binding name="UnSecureBinding">
      <security mode="None" />
    </binding>
  </wsDualHttpBinding>
</bindings>
<client>
  <endpoint name="NotificationService"
            address="http://localhost/CommServices/NotificationService.svc"
            binding="wsDualHttpBinding"
            bindingConfiguration="UnSecureBinding"
            contract="*" />
</client>
<!--ROUTING SECTION -->
<routing>
  <filters>
    <filter name="MatchAllFilter1" filterType="MatchAll" />
  </filters>
  <filterTables>
    <filterTable name="routingTable1">
        <add filterName="MatchAllFilter1" endpointName="NotificationService" />
    </filterTable>
  </filterTables>    

If I enabling ServiceModel tracing, I can see an ArgumentException deep in the WCF Stack, a trace I´havent followed so far.

Can anyone give a hint into the right direction, or correct me If my assumptions concerning the callback capabilities of the RoutingService are wrong.

TIA & Cheers
Dominik

  • 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:52:43+00:00Added an answer on May 23, 2026 at 2:52 am

    In case someone stumbles like I did, the problem was the contract on the router endpoint. RequestReplyRouter does not support callbacks but IDuplexSessionRouter does.

    <endpoint address=""
                  binding="wsDualHttpBinding"
                  name="reqReplyEndpoint"
                  contract="System.ServiceModel.Routing.IDuplexSessionRouter"
                  bindingConfiguration="UnSecureBinding"/>
    

    Regards
    Dominik

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

Sidebar

Related Questions

I am having problems converting a string in the format yyyy-MM-ddZ using VB.net. For
I'm having problems with the following: http://jsfiddle.net/x55LD/1/ I'm trying to parse custom tags using
MicrosoftMvcJQueryValidation.js is used by ASP.NET MVC 2 for client side validation. Having problems with
I'm having problems using JQuery inside an ASP.Net User Control I've created a sample
I'm having problems with sending data over SocketChannels between a Host and Client using
I am having problems using a ASP.NET Regular Expression Validator on text boxes. This
Having problems with my ASP.NET MVC2 project. I'm using Fluent NHibernate as ORM, and
I am having problems when using a VB.NET dll in a VB6 program. I
I'm having some strange problems with a site using .net 2.0 and IIS 6.
I was having problems updating information in my SQL database using my vb.net application,

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.