This question is locked. New answers and comments are not allowed.
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); |