.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

Need suggestion's and guidelines for designing and creating WCF client channel pool

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :WCF
  What factor's should be considered for creating a WCF client channel pool? 1)Whether it is advisable to create a pool of pre-opened channel's?or create a new channel as an when needed?which one is expensive operation? 2)what should be the pool size? 3)how pool will support if concurrent request's are coming which use different binding's? 4)what should be channel lifetime? 5)If all the connection's in the pool are busy,whether we should wait till the free channel's are available in the pool or create new one's which is expensive?which one is better? if anybody is able to provide some usefull links it will be helpfull.

View Complete Post

More Related Resource Links

C# - Creating web client for automating user activity on a HTTPS site

I've been wracking my brain for a couple of weeks on this.  I need to create a web client (I don't want to use the webBrowser control because I need this to be as lightweight as possible) to log in to a secure web site, and then effectively click links and fill in fields to get the data that would normally be displayed in the web browser.  I'm then going to parse the data and perform other actions with it. I have been working with HttpWebRequest and HttpWebResponse and many permutations of suggestions I have found while Googling my issue, but I can't get rid of my problem:  Sometimes when I effictively click the ultimate link that I need to click to get to my data, I get what I am looking for.  However, MOST of the timel, I get a response page that tells me my connection timed out and that I need to log in again.  I have tried messing with cookies and such, but to no avail. I know it's good form to post my code, but it is so sloppy and screwed up right now from tweaking this and trying that, that I'd rather not take the approach of fixing what's there, rather I'd like to start with solid, clean code to begin with. Your help will be greatly appreciated. Thanks, ALo

How do use an existing application pool when creating a new web application on Moss-2007 SP2

I have been asked to try and reduce how much memory is being used on our Moss 2007 SP2 farm by reusing existing web application pools. My problem is that when you go through creating a new webapplication and choose the option labled "Use existing application pool" under the section labled "Application Pool - Choose the application pool to use for the new web application" I can only select from a list of three application pools "(Default App Pool (network services), Shared Services, and OfficeServerApplicationPool (NetworkService)" The drop down list does not mention any of the other app pools I have created for previous web applications. My question is this, how do I pick an existing web application pool that I have created previously, rather than keep on creating new application pools for every new web application I create? The farm consists of 3 FE servers 1 search, 1 Query and a Clustered 64bit SQL backend running SQL 2005 all running 64bit W2003 server R2 Thanks for any help you can provide on this. Mr T.    MR T

PollingDuplexHttpBinding Client Channel Faults unexpectedly after few seconds

Hello, i have a Silverlight 4 application which communicates using Http Polling Duplex to an IIS 7, .NET 4 WCF Service (actually two of them, in the same app). I am obviously taking advantage of the callback features provided by this type of solution. Setup has been performed by following these documents: Service setup: http://msdn.microsoft.com/en-us/library/cc645027%28v=VS.95%29.aspx Silverlight setup: http://msdn.microsoft.com/en-us/library/ee844557%28v=VS.95%29.aspx All has been working fine until yesterday, when i went on upgrading the Silverlight Tools for VS2010 to version 10.0.30319.352 which has also upgraded my Silverlight runtime to 4.0.50826.0 . Running my app now, after few seconds from the first call to the services, the client inner-channel faulted event fires on both proxies without an apparent motivation (exception, user interaction, etc.). What i have been able to notice, by analyzing connections with Fiddler, is that as soon as the open connection to the service which holds a callback channel receives a response, the client-side proxies fail. I'll try to show how the HTTP connections appear to behave: Call to the first service, callback channel retreived, immediate response 200 OK, no content Call to the second service, business logic performed, immediate response 200 OK, no content Call to the first service, no response for a few seconds, response 200 OK

SQL client install was not creating the "ConnectTo" under msssqlserver\client

We detected the situation and found some info on it and there happened to be a workaround by either importing the key from another box or manually creating it. Then we can add in our alias’s, etc… we can now connect to a 32 bit SQL 2005 DB server.  Is MS aware of this problem and will there be a patch to fix to issue?  You can find more on the issue here: http://mossytips.blogspot.com/2008/10/installing-64-bit-moss-with-32-bit-sql.html  

CLR type reflection when creating a channel using the ChannelFactory

In the Xsd that represents our canonical model, a complex type has various choices (several xsd:elements within xsd:choice) – i.e. the property when deserialized into C# has several XmlElement attributes decorated above it….

[System.Xml.Serialization.XmlElementAttribute("exampleRequest1", typeof(ExampleRequest1))]

[System.Xml.Serialization.XmlElementAttribute("exampleRequest1", typeof(ExampleRequest2))]

[System.Xml.Serialization.XmlElementAttribute("exampleRequest1", typeof(ExampleRequest200))]

[System.Xml.Serialization.XmlElementAttribute("exampleRequest1", typeof(ExampleRequest201))]

Can a table name impact generating the service client when creating Service Reference?


I have a new WCF service I'm writing under VS2010 and IIS 7.5.  The service includes a table named Client.

When I built my test class and added the service reference, the first test was confirming the creation of the client.

My service reference did not generate any client that I could call .Open on!!!! I was wondering if it is due to that table name???

 Edited to add that I tested the service through the browser and it brings up the page and XAML fine.

Thanks for any assistance!

How to pass behavior when creating a WCF Client?


I am trying to programatically set the behaviors for an endpoint for a WCF Service.


For example:


BasicHttpBinding binding = WCFBindingConfigSectionHandler.GetBasicHttpBinding(mConfig, mLogger);

EndPointAddress address = WCFBindingConfigSectionHandler.GetEndPointAddress(mConfig, mLogger);

EndPointBehaviorElement behaviors = WCFBindingConfigSectionHandler.GetEndPointBehavior(mConfig, mLogger);

binding.Security.Mode = BasicHttpSecurityMode.None

// call the WCF service.   Binding and Endpoint address set but How do I set the behavior.  The step above gathers the information and now I just need to set the behavior programatically.   Please help.

mpClient = new MeasurandProviderServiceClient(binding, address);

//The client offers a way to read the behavior but not set it.

Any ideas?


JBOSS WS WCF Client - Could not establish secure channel for SSL/TLS with authority 'xxx.xxx.xxx.xx


Hi all,

Ive been asking a lot of questions the last weeks but nothing came up.

I have a webservice developed in Java and hosted in JBOSS.

The current scenario is that the service should be running in a two way certificate, means that the server has a certificate and the client has one too.

I have already installed the two certs in the console (mmc), i see the certs so that should be ok.

After several test i came to this situation. The certs are ok, in debug mode i see that .NET finds those.

The service is hosted in a pc that is in our intranet.


Here is my code.


ServiceRef.ServiceClient servicioJboss = new ServiceRef.ServiceClient();

ServiceRef.methodResponse resp = new ServiceRef.methodResponse();

ServiceRef.method metodo = new ServiceRef.method();

metodo.arg0 = 1;

metodo.arg1 = 1402251;

metodo.arg0Specified = true;

metodo.arg1Specified = true;



Programatically creating a custom Channel Sink Provider


I have the following remoting configuration to set in a custom channel sink provider:


    <channel ref="tcp" port="0">
      <formatter ref="b

Oracle.DataAccess.Client.OracleException: ORA-03113:end-of-file on communication channel in Oracle 1


ORA-03113: end-of-file on communication channel

Exception details: Oracle.DataAccess.Client.OracleException: ORA-03113:end-of-file on communication channel

 My database is Oracle 10g, I am using .NET Framework 3.5 with Visual Studio 2008.

 It happened only once when first time in the morning I open my URL in my test server then this error popup at very first page of my site.

Next time onwars it work perfectly fine.

 Any Idea friends, Have you face the similar error, please tell me in details.



Need help creating Secure Site that will require client certificate



I am trying to create a secure web service that will require certificate from clients. I'm not working with WCF, just a web service. This is what I did so far:

On the default web site, where I have other web sites that are not secured, I've configured one of the virtual directories in the following way: Directoy Security->Secure Communication -> Edit I've Tagged Require SSL, and Require client certificate. Then, I've created a Many to One Mapping rule that maps a certificate, by CN to a certain user account.

When I try to access the web site, with a client application (https://SERVERNAME/VIRTUALDIRECTORY/ASMXFILE.asmx) I get the following message :

"Unable to connect to the remote server"

Ofcourse I send a proper certificate.

What am I doing wrong?


Creating your SharePoint Governance Plan

One of the most common questions that I get from prospects as I'm talking to them about the creation of a governance plan and process is what does it look like. In other words, there are materials available which describe what should be in a governance plan but there isn't a ton of guidance on what the process of creating a governance plan and process are.

Use jQuery and ASP.NET AJAX to build a client side Repeater

By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

Client Side Gridview Pagination using JQuery

I would like to show how to use Client Side Gridview Pagination using Jquery Table Pagination Plugin by using Ryan Zielke.

Use jQuery and ASP.NET AJAX to build a client side Repeater

By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

To that end, I'm going to walk you through these four steps to effectively implementing a client side Repeater, using ASP.NET AJAX and jQuery:

Creating Paging for a Repeater Control

A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Creating an AJAX Repeater in ASP.NET MVC

The "TaskList" is a tried an true example of the most basic thing that you can do in any framework. Unfortunately, I had some problems finding a really good example of all the steps necessary to get a task list to work in ASP.NET MVC 1.0.
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