none
No comprendo este error RRS feed

  • Pregunta

  • Estoy trabajando en visual Studio 2015, en el lenguaje de visual.net, y tengo dos vistas, la primera carga una lista de ordenes para compra que se prorgaman alli igual. pero tiene la opcion de pasar la orden a instalacion al final de terminada la orden. el inconveniente no esta en la orden al ser pasada de la vista 1 a la vista 2 sino que esta el problema en el formulario dos ya cargado con todo. en un datagrid paso multiples datos, donde se deberia llenar. pero al hacer eso me manda este error.

    Activado Evento Hora Duración Subproceso
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Excepción no controlada</Description><AppDomain>Rivas_Opstaele_Final.vshost.exe</AppDomain><Exception><ExceptionType>System.ArgumentNullException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>El valor no puede ser nulo.
    Nombre del parámetro: binding</Message><StackTrace>   en System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
       en Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer`2.OnInitializeDisplayElement(DataColumnBase dataColumn, D uiElement, Object dataContext)
       en Syncfusion.UI.Xaml.Grid.Cells.GridCellTextBoxRenderer.OnInitializeDisplayElement(DataColumnBase dataColumn, TextBlock uiElement, Object dataContext)
       en Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase`2.OnPrepareUIElements(DataColumnBase dataColumn, Object record, Boolean isInEdit)
       en Syncfusion.UI.Xaml.Grid.Cells.GridCellRendererBase.PrepareUIElements(DataColumnBase dataColumn, Object record, Boolean isInEdit)
       en Syncfusion.UI.Xaml.Grid.DataColumn.OnInitializeColumnElement(Object dataContext, Boolean isInEdit)
       en Syncfusion.UI.Xaml.Grid.DataRow.CreateColumn(Int32 index, Int32 columnHeightIncrementation)
       en Syncfusion.UI.Xaml.Grid.DataRow.OnGenerateVisibleColumns(VisibleLinesCollection visibleColumnLines)
       en Syncfusion.UI.Xaml.Grid.RowGenerator.CreateDataRow(Int32 rowIndex, VisibleLinesCollection visibleColumns, RowRegion region)
       en Syncfusion.UI.Xaml.Grid.RowGenerator.PregenerateRows(VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
       en Syncfusion.UI.Xaml.Grid.VisualContainer.PreGenerateItems()
       en Syncfusion.UI.Xaml.Grid.VisualContainer.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       en System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean&amp;amp; hasDesiredSizeUChanged)
       en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       en System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en System.Windows.ContextLayoutManager.UpdateLayout()
       en System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       en System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       en System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       en System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.DispatcherOperation.InvokeImpl()
       en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Windows.Threading.DispatcherOperation.Invoke()
       en System.Windows.Threading.Dispatcher.ProcessQueue()
       en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
       en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
       en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
       en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       en System.Windows.Application.RunDispatcher(Object ignore)
       en System.Windows.Application.RunInternal(Window window)
       en System.Windows.Application.Run(Window window)
       en System.Windows.Application.Run()
       en Rivas_Opstaele_Final.Application.Main()
       en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.ArgumentNullException: El valor no puede ser nulo.
    Nombre del parámetro: binding
       en System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
       en Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer`2.OnInitializeDisplayElement(DataColumnBase dataColumn, D uiElement, Object dataContext)
       en Syncfusion.UI.Xaml.Grid.Cells.GridCellTextBoxRenderer.OnInitializeDisplayElement(DataColumnBase dataColumn, TextBlock uiElement, Object dataContext)
       en Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRendererBase`2.OnPrepareUIElements(DataColumnBase dataColumn, Object record, Boolean isInEdit)
       en Syncfusion.UI.Xaml.Grid.Cells.GridCellRendererBase.PrepareUIElements(DataColumnBase dataColumn, Object record, Boolean isInEdit)
       en Syncfusion.UI.Xaml.Grid.DataColumn.OnInitializeColumnElement(Object dataContext, Boolean isInEdit)
       en Syncfusion.UI.Xaml.Grid.DataRow.CreateColumn(Int32 index, Int32 columnHeightIncrementation)
       en Syncfusion.UI.Xaml.Grid.DataRow.OnGenerateVisibleColumns(VisibleLinesCollection visibleColumnLines)
       en Syncfusion.UI.Xaml.Grid.RowGenerator.CreateDataRow(Int32 rowIndex, VisibleLinesCollection visibleColumns, RowRegion region)
       en Syncfusion.UI.Xaml.Grid.RowGenerator.PregenerateRows(VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
       en Syncfusion.UI.Xaml.Grid.VisualContainer.PreGenerateItems()
       en Syncfusion.UI.Xaml.Grid.VisualContainer.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       en System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean&amp;amp; hasDesiredSizeUChanged)
       en System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       en System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
       en System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       en System.Windows.UIElement.Measure(Size availableSize)
       en System.Windows.ContextLayoutManager.UpdateLayout()
       en System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       en System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       en System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       en System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.DispatcherOperation.InvokeImpl()
       en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Windows.Threading.DispatcherOperation.Invoke()
       en System.Windows.Threading.Dispatcher.ProcessQueue()
       en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
       en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
       en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
       en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       en System.Windows.Application.RunDispatcher(Object ignore)
       en System.Windows.Application.RunInternal(Window window)
       en System.Windows.Application.Run(Window window)
       en System.Windows.Application.Run()
       en Rivas_Opstaele_Final.Application.Main()
       en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Threading.ThreadHelper.ThreadStart()</ExceptionString><DataItems><Data></Data></DataItems></Exception></TraceRecord> 27,46s

    quiero saber porque ocurre esto luego de cargar la vista con el navigationservices.

    de antemano. muchas gracias

    miércoles, 19 de octubre de 2016 19:06

Todas las respuestas

  • Hola:

     Con este mensaje:

     El valor no puede ser nulo.
    Nombre del parámetro: binding</Message><StackTrace>   en 

     Me dice que estas tratando de definir el DataSource de un Grid en nulo, valida por favor esto.


    Saludos desde Monterrey, Nuevo León, México!!!

    miércoles, 19 de octubre de 2016 19:24
  • No, no intento cargar con null el datasource. 

    el codigo que se ejecuta es:

    Try
                comprobar()//esta es una funcion de verificacion de base de datos
                cnn.con.Open()//la coneccion
                Dim sql As String
                sql = "SELECT * FROM equipo_configuracion WHERE id_equipo ='" & I_ID & "' order by posicion"//I_ID es un integer que se asigna como nuevo id
                Dim sal As New SqlCommand(sql, cnn.con)
                Dim max As New SqlDataAdapter(sal)
                Dim mix As New Data.DataTable
                max.Fill(mix)
                grid_verificacion.ItemsSource = mix.DefaultView
                sal.Dispose()
                max.Dispose()
                mix.Dispose()
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try

    todo esto tiene que trabajar con xaml en el editor de visual studio 2015

    muchas gracias por responder

    miércoles, 19 de octubre de 2016 21:53