System.CrossAppDomainMarshaledException Docking

4 posts, 0 answers
  1. Marlos Távora
    Marlos Távora avatar
    2 posts
    Member since:
    Nov 2009

    Posted 16 Jun 2010 Link to this post

    Hello, I am getting the following message when loading a page in my docking:

    System.CrossAppDomainMarshaledException was unhandled
    Message: System.ArgumentNullException: Value cannot be null.
    Parameter Name: Text
       em System.Windows.Controls.TextBox.set_Text(String value)
       em Cockpit.Controls.ErrorWindow..ctor(String message, String details)
       em Cockpit.App.ReportError(String message, String details)
       em Cockpit.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)
       em MS.Internal.Error.CallApplicationUEHandler(Exception e)
       em MS.Internal.Error.CallAUEHandler(UInt32 hr, UInt32& bIsHandled)

    Some idea of the cause of the problem?

    My page:

    <UserControl x:Class="MyProject.MyView" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" 
        xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        xmlns:vm="clr-namespace:Cockpit.ViewModel" 
        mc:Ignorable="d" 
        d:DesignHeight="300" d:DesignWidth="600"
        <UserControl.Resources> 
            <vm:ViewQueryViewModel x:Key="MyViewModel"/> 
        </UserControl.Resources> 
        <Grid x:Name="LayoutRoot" DataContext="{StaticResource MyViewModel}"
            
            <radDock:RadDocking x:Name="radDocking"
            </radDock:RadDocking> 
        </Grid> 
    </UserControl> 

    My code where initialize the page:

    UserControl content = (UserControl)Activator.CreateInstance(typeof(MyView), new object[] { obj.Id }); 
    Document document = new Document(content, obj.Key.ToString(), obj.Name, "/MyProject;component/Assets/Images/Objetos/image1.png"); 
    this.Documents.Add(document); 
    this.groupDocuments.Items.Add(document); 



  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 21 Jun 2010 Link to this post

    Hello Marlos Távora,

    Could you send us example were we can reproduce this error?
    (You have to open a support ticket in order to attach files)

    Kind regards,
    Hristo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Marlos
    Marlos avatar
    13 posts
    Member since:
    Jul 2010

    Posted 29 Jul 2010 Link to this post

    My usercontrol you find yourself within that structure

    <radDock:RadDocking x:Name="docking"  Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Padding="0" Close="docking_Close" Margin="0,5,0,0">
                <radDock:RadDocking.DocumentHost>
                    <radDock:RadSplitContainer>
                        <radDock:RadPaneGroup x:Name="groupDocuments"  Background="#eaf1f9" >
     
                        </radDock:RadPaneGroup>
                    </radDock:RadSplitContainer>
                </radDock:RadDocking.DocumentHost>
            <radDock:RadSplitContainer radDock:DockingPanel.InitialSize="225,300" MaxWidth="600"
                        Name="LeftContainer" InitialPosition="DockedLeft">
            ...
            </radDock:RadSplitContainer>
    </radDock:RadDocking>

    The document is added to the codebehind RadPaneGroup through the following statement:

    UserControl content = (UserControl)Activator.CreateInstance(typeof(ViewPanel), new object[] { obj.Id });
                            Document document = new Document(content, obj.Key.ToString(),       obj.Name, "/Cockpit;component/Assets/Images/Objetos/dataconnector.png");
                            this.Documents.Add(document);
                            this.groupDocuments.Items.Add(document);

    Where Document class extend RadDocumentPane.

    Some idea of the cause of the problem?

  5. George
    Admin
    George avatar
    1332 posts

    Posted 03 Aug 2010 Link to this post

    Hello Marlos,

    Thank you for getting back to us.

    Your code looks fine. I tested your scenario and everything works fine on my side. Could you try with the ddls from our latest release (Q2 2010) whether the problem still persists. We need more detailed information about the issue. If you could give us some a sample project that reproduces the problem it would be very helpful.

    I will be glad to assist you further.

    Greetings,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top