Silverlight: InstanceContextMode and ConcurrencyMode

We have a web service that's accessed from Silverlight that needs to be able to accept multiple requests however it's apparent that's not occurring.  Below are snippets of the service definition and behavior definition, please assist me in understanding why this service won't accept multiple requests.  Thanks in advance!

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class RiteTrackServer
{ ... }

<service behaviorConfiguration="RiteTrackServer.RiteTrackServerBehavior" name="RiteTrackServer.RiteTrackServer">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="RiteTrackServerBinding" contract="RiteTrackServer.RiteTrackServer"/>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
Who is Participating?
HandelITConnect With a Mentor Author Commented:
This was resolved by us internally.  The issue was that you needed to remove this line from the service code definition:
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

And you needed to set this tag in the Web.config to "false":
    <serviceHostingEnvironment aspNetCompatibilityEnabled="false"/>

Please close this question and refund the points.
InstanceContextMode.Single should be used for only singleton lifetime behavior. Are you trying to create singleton object ? else change the InstanceContextMode to "PerSession" or "PerCall"

Have some clarifications on ur implementation of wcf.

Good practice or thumb rule for implementing WCF is "ServiceContract" should be used with Interface and "ServiceBehavior" should be used with a class which implements the service.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.