Error Layout cycle detected. Layout could not complete.

Oct 7, 2011 at 10:05 AM
Edited Oct 7, 2011 at 10:07 AM

Hi,

when showing a dialog which is loaded via Prism in a region , unhandled exceptions occurs like:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Or

Error: Unhandled Error in Silverlight Application
Code: 4008   
Category: RuntimeError      
Message: Layout cycle detected.  Layout could not complete.    
MethodName: 

Any ideas whats going wrong here?

The xaml

 

<Modules:ViewBase x:Class="SL.Modules.Activities.Views.OrderCreation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Modules="clr-namespace:SL.Infrastructure.Modules;assembly=SL.Infrastructure" 
    xmlns:uia="clr-namespace:Thinktecture.UIAnnotations;assembly=Thinktecture.UIAnnotations.SL">
    <Grid x:Name="LayoutRoot">
            <TextBox x:Name="nameTextBox"
                         Text="Test"
                         uia:Annotations.IsRequired="True">
            </TextBox>

    </Grid>
</Modules:ViewBase>

Thanks
Chris