Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET WCF VB.NET
It's very urgent Please.
 
Can you Please give me any suggestion.?
 
We are using WCF service using Asp.net with vb.net.
The service is hosted in one server and application is hosted in to an other server.
The problem is: When multiple users access the application from their terminals, then the application hangs for a while (10 to 15 mintes).
 

My wcf service config file like this.
 
<system.serviceModel>
        <services>
            <service behaviorConfiguration="EstromWcfService.PrincorpBehavior" name="EstromWcfService.Princorp">
                <endpoint address="" binding="wsHttpBinding" contract="EstromWcfService.IPrincorp">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
            <service behaviorConfiguration="EstromWcfService.PrinCorpServiceBehavior" name="EstromWcfService.PrinCorpService">
                <endpoint address="" binding="wsHttpBinding" contract="EstromWcfService.IPrinCorpService">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
            <service behaviorConfiguration="EstromWcfService.EstormPrincorpBehavior" name="EstromWcfService.EstormPrincorp">
                <endpoint address="" binding="wsHttpBinding" contract="EstromWcfService.IEstormPrincorp">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior name="EstromWcfService.PrincorpBehavior">
                    <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure"/>
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>
                    <serviceTimeouts transactionTimeout="10.00:00:00"/>
 
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="false" />
                </behavior>
                <behavior name="EstromWcfService.PrinCorpServiceBehavior">
                    <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure"/>
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>
                    <serviceTimeouts transactionTimeout="10.00:00:00"/>
 
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="false"/>
                </behavior>
                <behavior name="EstromWcfService.EstormPrincorpBehavior">
                    <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure"/>
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>
                    <serviceTimeouts transactionTimeout="10.00:00:00"/>
 
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="false"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>
Posted 25-Mar-13 2:41am
Edited 25-Mar-13 2:56am
v4
Comments
rk_2010 at 25-Mar-13 8:34am
   
Try this link:
http://msdn.microsoft.com/en-us/library/vstudio/hh323697(v=vs.100).aspx

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You have to check following things :-
 
Concurrency Management
 
Instance Management
 
How you have maintained these things in your WCF service contract.
  Permalink  
Comments
samba.84 at 26-Mar-13 2:03am
   
Thanks for your reply sir,
 
I have set like this in my wcf service .svc file.
 
_
 
but we are getting same issue.
 
Can you please tell me the where exactly we have add concurency and istancing mode?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Afzaal Ahmad Zeeshan 256
1 OriginalGriff 251
2 BillWoodruff 240
3 Maciej Los 230
4 Sergey Alexandrovich Kryukov 195
0 OriginalGriff 6,419
1 Sergey Alexandrovich Kryukov 6,008
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,070


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 26 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100