title: System.Windows.LayoutCycleException in a silverlight application?
body: <p>I'me currently developing a silverlight application.</p>
  
  <p>In this application,  I've an exception handler which catch every uncaught exception in the app(this is set on the App.xaml.cs:</p>
  
  <pre><code>        UnhandledException += Application_UnhandledException;
  </code></pre>
  
  <p>I've a problem, everythime I click on a specific button(this button just call a method which is supposed to create a user control, put it in a tab and select it), the UnhandledException event is thrown and I receive a "System.Windows.LayoutCycleException", without any stacktrace, and the message "Cycle de disposition détecté. Impossible d'achever la disposition" (english trad: "Layout cycle detected. Layout could not complete.", this is the error 4008 on <a href="http://msdn.microsoft.com/en-us/library/cc189020(v=vs.95).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc189020(v=vs.95).aspx</a> ).</p>
  
  <p>I've several weird things now:</p>
  
  <ul>
  <li>if I put a breakpoint on my click event, and I follow the things, the last call I've is the return of a Converter which return true, so I really don't see what can be wrong here</li>
  <li>I've a development server where we have the same version, and I can do the actions</li>
  <li>I've clean the cache a lot of times, tried every browser I've(chrome, Firefox, IE 8, IE 9)</li>
  <li>The user control is displayed a little moment before the exception(in fact, when I have the exception, the user control is displayed)</li>
  <li>Every other actions on the application is working(and there is a lot of other actions possible)</li>
  <li>I've nowhere a LayoutUpdated event</li>
  </ul>
  
  <p>It just makes one day I'm on this problem, I'm going to be crazy if it continues, so every help, tip, ... would be very appreciated.</p>
  
  <p>This is a silverlight 4 application, which run on an asp.net 4.0 /IIS 7.5</p>
  
  <p>Thank you very much!</p>