title: WCF service completely locked
body: <p>I have a WCF service configured like this:</p>
  
  <pre><code>InstanceContextMode = InstanceContextMode.PerCall,
  ConcurrencyMode = ConcurrencyMode.Multiple
  </code></pre>
  
  <p>I have a method where I call the service about ten times per second for about 30 seconds. Randomly, the service stop to work and the client is stopped on the line where the service is called.</p>
  
  <p>On the server side, I have a static object "MyStaticObject" (Not declared in my service, this is an other class on the server). This object is a Dictionnary that contains some instanced objects in which there is a backgroundworker.</p>
  
  <p>I don't think there is a deadlock in the database since it lock when I try to access the service and not when I try to access the database.</p>
  
  <p>I currently lock my dictionnary this way:</p>
  
  <pre><code>lock (MyClass.MyStaticLockObject)
  {
      MyClass.MyStaticObject...;
  }
  </code></pre>
  
  <p>I'd like to know what could cause this kind of weird behavior.</p>