System.NullReferenceException: Object reference not set to an instance of an object.

4 posts, 0 answers
  1. Luis
    Luis avatar
    11 posts
    Member since:
    Dec 2018

    Posted 01 Feb Link to this post

    Hi finally ended with the proyect, the problem now  is when the user of the app try to use with .exe, show this error

    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.WinForms.Controls.Spreadsheet.Worksheets.Commands.Descriptors.WorksheetCommandDescriptors.<.ctor>b__6d()
       at Telerik.WinForms.Controls.Spreadsheet.Commands.Descriptors.CommandDescriptor.<>c__DisplayClass2.<.ctor>b__0()
       at Telerik.Windows.Documents.Spreadsheet.Utilities.DelayedExecution.ExecuteAction(Boolean asynch)
       at Telerik.Windows.Documents.Spreadsheet.Utilities.DelayedExecution.Timer_Tick(Object sender, EventArgs e)
       at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.RunDialog(Form form)
       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
       at System.Windows.Forms.Form.ShowDialog()
       at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       at System.Windows.Forms.Control.WndProcException(Exception e)
       at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.RunDialog(Form form)
       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
       at System.Windows.Forms.Form.ShowDialog()
       at SPL.MDIMain.ShowFormGeneraPlantilla(Object sender, EventArgs e) in C:\Users\502699069\Documents\SPL Con Telerik_1\SPL\MDIMain.cs:line 115
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    SPL
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/SPL.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3314.0 built by: NET472REL1LAST_B
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1590.0 built by: NETFXREL2
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    SPL_EntityLibrary
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/SPL_EntityLibrary.DLL
    ----------------------------------------
    Telerik.WinControls.UI
        Assembly Version: 2018.3.1016.40
        Win32 Version: 2018.3.1016.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.WinControls.UI.DLL
    ----------------------------------------
    Telerik.WinControls
        Assembly Version: 2018.3.1016.40
        Win32 Version: 2018.3.1016.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.WinControls.DLL
    ----------------------------------------
    Oracle.DataAccess
        Assembly Version: 4.112.3.0
        Win32 Version: 4.112.3.0
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/Oracle.DataAccess/v4.0_4.112.3.0__89b483f429c47342/Oracle.DataAccess.dll
    ----------------------------------------
    System.Data
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Transactions
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.Data.Entity
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Entity/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Entity.dll
    ----------------------------------------
    System.EnterpriseServices
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1590.0 built by: NETFXREL2
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
    TelerikCommon
        Assembly Version: 2018.3.1016.40
        Win32 Version: 2018.3.1016.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/TelerikCommon.DLL
    ----------------------------------------
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Telerik.Windows.Documents.Spreadsheet
        Assembly Version: 2018.3.1010.40
        Win32 Version: 2018.3.1010.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.Windows.Documents.Spreadsheet.DLL
    ----------------------------------------
    Telerik.WinControls.RadSpreadsheet
        Assembly Version: 2018.3.1016.40
        Win32 Version: 2018.3.1016.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.WinControls.RadSpreadsheet.DLL
    ----------------------------------------
    WindowsBase
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
    ----------------------------------------
    Telerik.Windows.Documents.Core
        Assembly Version: 2018.3.1010.40
        Win32 Version: 2018.3.1010.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.Windows.Documents.Core.DLL
    ----------------------------------------
    PresentationFramework
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
    ----------------------------------------
    PresentationCore
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
    ----------------------------------------
    Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf
        Assembly Version: 2018.3.1010.40
        Win32 Version: 2018.3.1010.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.DLL
    ----------------------------------------
    Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml
        Assembly Version: 2018.3.1010.40
        Win32 Version: 2018.3.1010.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.DLL
    ----------------------------------------
    Telerik.Windows.Documents.Fixed
        Assembly Version: 2018.3.1010.40
        Win32 Version: 2018.3.1010.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.Windows.Documents.Fixed.DLL
    ----------------------------------------
    System.Xaml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
    ----------------------------------------
    Telerik.Windows.Zip
        Assembly Version: 2018.3.1010.40
        Win32 Version: 2018.3.1010.40
        CodeBase: file://app_dt/App-DIS/Apl/Exes_Desa/SPL/Aplicaci%C3%B3n/Ejecutable/Telerik.Windows.Zip.DLL
    ----------------------------------------
    System.Deployment
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

     

     

    *****************************************************************************

     

    the compilation was on Release of the solution 

     

     

     

     

     

  2. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 04 Feb Link to this post

    Hi Luis,

    Thank you for writing.

    We are not aware of an issue in RadSpredsheet resulting in an error with a similar stack trace. Can you please open up a support ticket and send your project reproducing the exception? That would be the fastest way to investigate it.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Luis
    Luis avatar
    11 posts
    Member since:
    Dec 2018

    Posted 07 Feb in reply to Hristo Link to this post

    Hi Hristo,

     

    I´m working with the Trial Version, I guess the issue may be for that, because, when try to open the radspread component, appears the warning of purchased the license of telerik.

     

     

  4. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 08 Feb Link to this post

    Hello Luis,

    We are aware of this issue with the Trial version. The bug is already fixed internally and it will be released with the service pack, scheduled for later this month. Here is the link to the item on the feedback portal: https://feedback.telerik.com/winforms/1380948-exception-at-runtime-trial-bug.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top