Geeks With Blogs
C# ASP.NET UTILS Programming blogus :-)
I got a problem on which was spent over two days in order to fix it. The discovery was that in the scenario: one WCF service application that for convinience is hosted in IIS and one WEB application that uses the WCF services the number of users was limited. So if the 11th user tried to access the application he was oblidged to wait an undetermined period of time(and in the end the log process was failing). The process started, first the idea was that maybe we were wrong in our layers, because of static methods used for our singletones and so on.
  So really the problem is in WCF configuration, I didn't see it by googling my problem. Now I got it, so all you'll have to do in order to increase the number of concurrent users of your application is to add <serviceThrottling /> tag into the <serviceBehaviors> and specify the maximum number of concurrent sessions, like so:

      <serviceBehaviors>
        <behavior name="BehaviorConfigurationServiceDOS">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceThrottling maxConcurrentSessions="100" />
          <dataContractSerializer maxItemsInObjectGraph="2147483647" />
        </behavior>
      </serviceBehaviors>

Hope this helps :------))))

Quite a simple solution, but it's not as well documented as it's impementation. Posted on Wednesday, November 26, 2008 7:03 PM How to ASP.NET C#? | Back to top


Comments on this post: Increase the number of sessions in WCF

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Diadiora Alexandru | Powered by: GeeksWithBlogs.net