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

Top 5 Contributors of the Month
Post New Web Links

WCF Router service - How to implement Load Balance

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


Do you know if is possible to implement a Load Balance using this WCF Router Service ?

I know that WCF Router Service has routing and backuplist feature. 

By the way, how does WCF Routr Service deal with services that have Callback Contract ?


Luis Filipe (from Brazil: Sorry about the English!)

View Complete Post

More Related Resource Links

Service Station: Building a WCF Router, Part 2.


Here we present a deep look into the workings of Windows Communication Foundation routers, exploring the details of pass-through router implementations.

Michele Leroux Bustamante

MSDN Magazine June 2008

Service Station: Building a WCF Router, Part 1


Here we take a look at WCF clients and services, and explain how to tweak the addressing and message filtering behaviors so you can route services between them.

Michele Leroux Bustamante

MSDN Magazine April 2008

Workflow Service failing on high load

Hi, I am load testing my workflow service to ensure that it can sustain high loads for a high volume transaction application. I am using Visual Studio's Load Test to run on a simple unit test to call the workflow service. I have configured the bindings on my service as follows:  <bindings>      <netTcpBinding>        <binding portSharingEnabled="true" closeTimeout="00:10:00"                 openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"                 maxBufferPoolSize="20480000" maxBufferSize="20480000" maxConnections="10"                  maxReceivedMessageSize="20480000"  >                    <security mode="None" />        </binding>      </netTcpBinding>  &n

Is it possible to implement your own version of the Managed Metadata Service?

Hi, It would be nice to provision a new instance of the Managed Metadata Service where the service is not implemented by Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplication, but a custom provider. Is it possible to expose your own service as a Managed Metadata Service?

Load balancing using web service

Hi Friends                 Presently we are developing a windows product using dot net, combined with sas (another language). If sas not get installed in local machines then we are in need of using server machine which has sas with it, we are using socket programming to communicate with server machine, Problem is when more number of requests comes to the server for processing sas it is becoming slow, so we need  Load balancing If we go with web service which is having same domain name but different ip address mapped using Domain Name System (DNS) We will get work done faster     What i want is will this work fine, what else i have to done for achieving this, how can i test itWaitingBalaji Manoharan  

WCF 4 Router Service configuration issue


I've created a WCF 4 Router Service and am hosting it in IIS7. It works fine on my development machine, but when I deploy to the QA server is returns the following message:

The configuration section 'routing' cannot be read because it is missing a section declaration

The section it's complaining about is the standard WCF4 routing section:

<filters>          <filter name="MatchAllFilter1" filterType="MatchAll" /> 

Asynchronously Load LINQ Queries/Repeaters in Sections with Web Service



I'm trying to  figure out the best way to load my main page faster.  What I'd like to do is have the bare bones of the master page display right away and on the Default.aspx Page_Load, call some web services that would query the rest of the items, in chunks, and then display.  I have 3 or 4 queries, which would be the chunks I am talking about. 

How would I accomplish this?  I tried putting Update Panels around the repeaters, but that didn't make the page show any faster, and the page still only displayed once all the data was queried.

I found this article, http://msdn.microsoft.com/en-us/library/2e08f6yc.aspx.  Could I call a web service and return a Linq Query and populate a Repeater on Default.aspx?  Would I need an Update Panel around the Repeater still?

I also found this article, which was very interesting in that it parsed and returned the actual HTML to plug into the page, http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/

I've been reading both of these for a while to try to understand which may be the best method to proceed with.  I'd really appreciate any a

How to implement a subscription service


Hello all,

How do I setup a two way communication channel so that my clients can subscribe on the host? What we need to do is to maintain a list of clients so that the host can send a notification when it is shutting down. If someone could post some skeleton code to get me started, I would appreciate it. Thanks!


How to implement caching service in .net 3.5/4.0 framework ?



I need to develop a dedicated caching service to cache the data(monitoring data of application)  from

Database ( SQL Server 2005) which can then be consumed by 2-3 windows services( .net 3.5 WCf services)

so that they do not need to call DB repeatedly. So basically it is a additonal level of service layer

between these services and DB to reduce the performance penalty of calling DB   The data in Database is

large and very dynamic (events continously inserted in DB during the day) which we want to cache. Each

of the consuming windows service is dependent on another ( one service is retrieving data from one Table

in Db and aggegating the data and putting  in another table in DB which would then be consumed by

another service) . we have the following requirements :
1. Could have either Push or Pull model for pushing or retrieving data to/from DB and Services.
2. The cache must reduce the overall impact to the DB and load data by delta, rather than reloading the

data completely
3.The cache data must be updated if the source data in DB has changed. Sql cache expiration policy must

be defined.
4.Should have asynchronous method calls for Data retrieval from DB and cache update to minimise wait

5.The cache must support parallel requests to a single DB<

WCF Service configuration in Web Farm and Load Balancing envrionment.


I want to configure ASP.NET Website Project using WCF Service[NetTcp] (both in c#) for web-farm (for website) and NLB Load balancing (for service). I would like to configure following options for same.

NetTcpBinding.maxConcurrentCalls, NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections

Note: During single machine configuration when I changed value of NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections in WCF Service project to more that 10, which is default value. I got exception. When I changed this value in Website it was working fine. Due to this I had to keep in default configuration. Not sure why this is the case. If anyone could explain this it would be helpful.

Following reference gives idea how to configure in given environment but does not tell how to go about it.

Ref: http://msdn.microsoft.com/en-us/library/ee377061%28BTS.10%29.aspx

Let me simplify a bit. Lets say I have following configuration.

  • 2 IIS servers in Web Farm.
  • 3 WCF Service Servers (NetTcp) in NLB
  • Default config. for single instance.
    • NetTcpBinding.ListenBacklog: 10
    • NetTcpBinding.MaxConnections: 10
    • NetTcpBinding.maxConcurrentCalls: 16

Design Patterns to design and implement WCF Service


I want to create a service to that will interact with my DAL and BL and send the desired output to my client application.


So, how can I implement it, what design patterns should I use??? Please suggest.

Prabhanjan Kumar Mahapatra

Can Windows Service handle Data Staging and load operations?



I am developing an application which requires data staging, WCF module to consume web service app and data loading Module. The data staging module will work with SSIS package and data load module will use Stored Procedures and WCF module which will consume web service and send data from the staged tables.

All these modules will be part of single application which will be configured as a Windows Service at the server end. Development platform: VS2010,C#4.0

Given that, can Windows service handle all the above operations? How can I use error handling effectively? Since this is a background process, I need very good error and trace handling routines.

Appreciate any inputs or references on these. 





Service Configuration Editor (SvcConfigEditor) in VS 2010: An attempt was made to load a program wit


I am using Visual Studio 2010 Premium installed on Windows 2008 HPC with service pack 2. I am attempting to use the Service Configuration Editor (SvcConfigEditor.exe with File and Product version 4.0.30319.1) to create a new service configuration.

1. I opened the web.config file for the WCF service

2. I clicked the link "Create a New Service..." to bring up the "New Service Element Wizard"

3. I browsed to the WCF service \bin folder and selected the DLL. I received the error dialog box containing the message:

Could not load file or assembly 'file:///d:\...\MyService.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

4. I made sure that the WCF service and all referenced DLLs are configured for the same Target CPU of x86.

Below is the FUSLOG viewer entry when this error occurred:


*** Assembly Binder Log Entry (5/4/2010 @ 5:54:16 PM) ***

The operation failed.
Bind result: hr = 0x8007000b. An attempt was made to load a program with an incorrect format.

Assembly manager loaded from: D:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable D:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\SvcConfigEditor.exe
--- A detailed error log follows. 

=== Pre-bind state information =

Can I implement a custom protocol as a service?


Hi all;

Not sure where to post this - I think this is the most appropiate. I have implemented a custom protocol as a command line app. It works great except a DOS box pops up each time it runs. Is there a way to implement this as a service? And if so, how do I register it in the registry?

thanks - dave

Very funny video - What's your Metaphor?

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.

Realizing a Service-Oriented Architecture with .NET

This article is meant to be a practical discussion guide to building a .NET application in a service-oriented architecture. We will consider real-world goals, real-world obstacles, and experience-based solutions. I quickly concede the approaches discussed here are not exhaustive or infallible. This paper is focused on application development, not application integration. We will specifically consider architectural issues and component design issues.

The Potential of Web Services
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