.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

net.tcp service does not recieve messages using WCF4 routing service multicast scenario

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :WCF

I am trying out the WCF 4.0 multicast scenario. i have two services exposed

Service A- using NetTcpBinding,

Service B-using basichttpbinding.

A WCF 4 Routing service is used to multicast messages to both the services.

When i send a message, only the service with basichttp binding recieves it. the other does not.

I modified service A to use basichttpbinding and it started recieving messages from multicast router.

Am I missing here something that nettcp service is not recieving messages from multicasting routing service.


View Complete Post

More Related Resource Links

WCF Routing Service BindingConfiguration does not applied

Hi i am having issues working with the routing service All works fine Until one of the functions of the web service returned big amounts of data from the server, The status: I am having: 1. Silverlight application (client) 2. UI server (Contains the routing service) 3. Application Server (Contains the WCF Service which getting data from the database) The silverlight application is currently hosted both on the UI server and Application server. The services of the application server configured with the following: <basicHttpBinding> <binding name="BigServicesBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" receiveTimeout="00:02:00" > <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxStringContentLength="2147483647" maxNameTableCharCount="2147483647" maxDepth="2147483647" </binding> </basicHttpBinding> I have also set the routing service bindingConfiguration to this binding configuration. When running the silverlight application against the Application server - it works well When running the silverlight application against the UI Server when returnning big amount of data i am getting exception: System.ServiceModel.CommunicationException: The remote server returned an

WCF Routing service with Backup List not working with MSMQ

Hi I developed routing service for round robin routing. I added backup lists to this routing service in round robin pattern in config file. My configuration is as below. <services>       <service behaviorConfiguration="routingConfiguration" name="System.ServiceModel.Routing.RoutingService">         <host>           <baseAddresses>             <add baseAddress="net.tcp://localhost/FDPRoutingService/router"/>           </baseAddresses>         </host>         <!--Set up the inbound endpoints for the Routing Service-->         <!--first create the general router endpoint-->         <endpoint address="" binding="netTcpBinding"                   name="NetTcpBinding_IFDService" contract="System.ServiceModel.Routing.ISimplexDatagramRouter"/>       </service>     </services>  &nbs

WCF routing Service and ServiceSecurityContext in endpoint behavior


I'm trying to fetch the caller information in endpoint behavior applied for a routing service. The ServiceSecurityContext appears to be null.

How to fetch principal in endpoint behavior of routing service? I was able to fetch the thread principal in serviceAuthorization behavior of the same routing service.

Integrated windows authentication was used.

Problem in Routing WCF Service call from another WCF Service

Dear All,
           I have few WCF Services hosted on a remote machine which access my remote DB.
I call the services from my windows application and everything works like a charm.

           Now I want to make the above service calls from machines which will not have internet.
But they will be on LAN where atleast one PC will have a active internet connection.
So I created another WCF service which is hosted on a Windows service on the internet enabled machine. I've added all the service referance in the new service and any service withoute any parameters work fine.

           But when I try to send any data as parameter I get error

"There was an error while trying to serialize parameter http://tempuri.org/:obj. The InnerException message was 'Type 'Consume_Win_WPF_Service.LOginService.ClsMessage' with data contract name 'ClsMessage:http://schemas.datacontract.org/2004/07/LoginService' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.'.  Please see InnerException for more details."

Can anyone tell me what steps I should impliment to en

wcf service sending messages

can a wcf service send messages to client connected to service?2 clients can send messages to each other using the service,but how can the service send messages by its own to all attached or new clients subscribed to it?what will i have to do for that?do respond..waiting

Mumtaz Surani

how to get xml messages from service broker?




i wana know how can i get your XML messages from service broker (in case of distributed brokers) and how to parse them to produce our data?



BING routing service



Can you help please ? When my client sends a request to the bing routing service where the trip is longer than a local journey say 30 miles I get the error

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

How do access this property to increase it from code. I am using the auto generated class wrappers for this service.



WCF Routing Service Request differentiation


I've two services "Service1" and "Service2" . Both of the Services expose method with same signature int getData(int input)

I've a ServiceAuthorizationBehavior in routing service. When i inspect the request the namespace appears to be http://schemas.microsoft.com/netfx/2009/05/routing/  

and the soap action name is getData

i want to differentiate based on the soap action name and the namespace. I do not want to use the endpoint as differentiator as i might expose same funtion of service using different protocols in different endpoints.

I do not want to use the namespace in "Service1", as i might host Service1 under a particular virtual folder and use same dll's hosted as Service 3. There are business cases for me to do this.

in short, is there a way to apply a logical namespace at routing service level ?

MSMQ Recieve Activty fails in workflow hosted in Windows Service



I am trying to implement a windows service hosted workflow service that polls from a message queue. The message queue is is populated by a separate windows service.

I followed the post below for my hosted workflow as it looked to be close to what I was trying to do.


Following the steps in the post I was able to get my service to work when the message body was a simple string and using the WCFTestClient.

I then changed the code to use a a custom .NET object as the Recieve parameter instead of the string. The class library in which the object is defined was added as a reference. The service that populates my queue uses the custom .NET object as the message body.

In this scenario, the service would run but only process a message from the queue if it was in the queue before the service started. Any new messages added are ignored and if I add the message after I start the queue it also does not get picked up.

My xamlx is below, followed by my app.config:



asp.net ajax autocomplete + web service not working under iis (with asp.net 4 and routing)



I've set up a textbox with autocomplete, it works fine when i run is in visual studio, but when I deploy it to iis, the list items just do not appear.

I think it has something to do with the fact that I'm using clean routes (with asp.net 4 routing).

The code:

<asp:TextBox ID="City" runat="server" CssClass="propTextBoxValid"></asp:TextBox>
                            <asp:AutoCompleteExtender ID="City_AutoCompleteExtender" runat="server" MinimumPrefixLength="1"
                                Enabled="True" ServiceMethod="GetCityList" ServicePath="~/Main/Proposal/WebService/AutoComplete.asmx"
                                TargetControlID="City" CompletionInterval="10" EnableCaching="true" CompletionSetCount="20"
                                CompletionListCssClass="autocomplete_completionListElement" CompletionListItemCssClass="autocomplete_listItem"


problems with trace.writeline not writing output messages on multiple instance/thread service



I've come across something strange and can't quite figure out what could be going wrong. I have a windows service which processes queue items in a threadpool (default 5 threads).

So, during testing, i "debug, start new instance" and spin up about 4-5 instances of the service, and on average there is about 25 threads going at same time.

My trace code:
Trace.WriteLineIf(traceOutput.TraceVerbose, string.Format("processing Item for {0}", item.id));


this seems to work for a while and writes the trace code to the output window, but after a while, the trace output just stops being output to the window.. has anyone else experienced this before or could know what might be going wrong?




looking out Versioning WF4 services using custom filters in Routing service


Happen to see Matt Snider's post on a thread at http:/ /social.msdn.microsoft.com/Forums/en/wfprerelease/thread/0fa38041-f85b-4882-b350-77eaf6998c4a
In this he has given a list of possible solutions for implementing workflow service versioning. The last solution that he explains is . . .

Utilizing constructed correlation data in order to distinguish between v1 and v2 conversations (a client should be tied to a given version for the length of a conversation).

This is the same solution that I wanted to implement in my system, But I have no idea on how to implement it.

Please assist me to implement the same.

Does anyone have an IIS-hosted WCF Routing Service sample for workflow versioning?


It seems, from what I've read today, that the main way to deal with versioning of persisted .xamlx wcf workflow services is to use the wcf routing service for content based routing, passing a version parameter to and from the xamlx operations, with the router sending the requests to the appropriate version of the service.

I've been trying to find a sample of this but I can't.  Does anyone have a sample where the routing service is hosted in IIS and which contains a client plus the new and old service versions, so that I can see how it's all supposed to bolt together?  I've been smacking my head into this one all day, to no avail.

URGENT- Unable to set Custom HEADER in WCF Routing Service


Hi All, 

I am having the below setup. 

WCF Client <===TCP Binding==> WCF Routing Service <==== basicHTTPBinding====> WCF Service 

My requirement is need to add the SessionID in the Cookie in the WCF Routing service. 


I am using the  IClientMessageInspector in Routing service as below and adding the HttpRequestMessageProperty properly. Before returning i check that cookie is added.

However, at the WCF server side i seen that Message.Properties is not received ( b

How to create a WCF service that is in compliance with Soap Messages with Attachments

Hi, I know that there are many ways to send attachments, but unfortunately i need to create a webservice that follows the "SOAP messages with Attachments" specification (http://www.w3.org/TR/SOAP-attachments). This specification can be sumarrizing as and Multipart MIME message that groups a Soap Envelope and more files as attachmens in differnent MIME parts, such as SOAP with Attachments MIME envelope -Root Body MIME part --Soap Envelope ---Soap Header ---Soap Body - Mime Part 2 --First File - Mime part 3 --Second File .... Hopefully that structure can be helpful,otherwise you can easily check in the specification page. I don't know how to do that: - Creating a Contract with one parameter that will a Message that will encapsules all the information, but this means that I need to create all the MIME parts manually. and lqater in the client I'll have to split the information and deserialized in objects. Any help would be great, Thanks in advance for your help. Cheers

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

WCF Tip: Using Properties in Service Contracts

you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend