Click here to Skip to main content
16,004,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

XML
<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
Updated 25-Mar-13 1:56am
v4
Comments
rk_2010 25-Mar-13 8:34am    
Try this link:
http://msdn.microsoft.com/en-us/library/vstudio/hh323697(v=vs.100).aspx

1 solution

You have to check following things :-

Concurrency Management

Instance Management

How you have maintained these things in your WCF service contract.
 
Share this answer
 
Comments
Sambasivarao Morla 26-Mar-13 2:03am    
Thanks for your reply sir,

I have set like this in my wcf service .svc file.

<servicebehavior(concurrencymode:=concurrencymode.multiple, instancecontextmode:="InstanceContextMode.PerSession)"> _

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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900