Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmPicker control and mmPickListForm
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01260706
Message ID:
01260891
Views:
19
Hi Kevin,

1. I didn't have anything on my constructor, I closed Visual Studio and came back and was able to view the Form in design mode.

2. I am trying to using my inherited PickList Form and have followed the dev guide on how to do this, but I am getting and error

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Your help will be appreciated.

MyPickListForm Class
Imports System.Data
Imports System.ComponentModel

Imports OakLeaf.MM.Main
Imports OakLeaf.MM.Main.Windows.Forms

''' <summary>
''' Summary description for MyPickListForm
''' </summary>
Public Class  MyPickListForm
    Inherits mmPickListForm


    Public Sub New()
        '    ' This call is required by the Windows Form Designer.
        InitializeComponent()
    End Sub

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <param name="pickListParms"></param>
    ''' <remarks></remarks>
    Public Sub New(ByVal pickListParms As mmPickListParameters)
        ' This call is required by the Windows Form Designer.
        Me.New()
    End Sub

End Class


Below is the Stack Trace.

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

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at OakLeaf.MM.Main.Windows.Forms.mmPickListForm..ctor(mmPickListParameters pickListParms)
   at OakLeaf.MM.Main.Windows.Forms.mmPickListForm..ctor()
   at BVI.NationalAccount.GP.MyPickListForm..ctor()
   at BVI.NationalAccount.GP.MyPickListForm..ctor(mmPickListParameters pickListParms)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
   at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at OakLeaf.MM.Main.Patterns.mmFactoryGeneric.CreateObject(String classToken, Object[] args)
   at OakLeaf.MM.Main.Windows.Forms.mmPickListSearch.CreatePickListForm(mmPickListParameters pickListParams)
   at OakLeaf.MM.Main.Windows.Forms.mmPickListSearch.PerformSearch(mmPickListParameters pickListParams)
   at OakLeaf.MM.Main.Windows.Forms.mmPicker.PerformSearch()
   at OakLeaf.MM.Main.Windows.Forms.mmPicker.btnPicker_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.Dexterity.Bridge
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.20.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Dynamics/GP90/Microsoft.Dexterity.Bridge.DLL
----------------------------------------
msvcm80
    Assembly Version: 8.0.50727.762
    Win32 Version: 8.00.50727.762
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700/msvcm80.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interop.Dynamics
    Assembly Version: 9.0.63.0
    Win32 Version: 9.0.63.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Dynamics/GP90/Interop.Dynamics.DLL
----------------------------------------
BVI.Business
    Assembly Version: 1.0.2843.16136
    Win32 Version: 1.0.2843.16136
    CodeBase: file:///C:/Program%20Files/Microsoft%20Dynamics/GP90/AddIns/BVI.Business.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
Mere Mortals Framework 2005
    Assembly Version: 2.4.0.0
    Win32 Version: 2.4.0.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Mere%20Mortals%20Framework%202005/2.4.0.0__511bd18e16c7f771/Mere%20Mortals%20Framework%202005.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
BVI.NatAcctVSGPClient
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Dynamics/GP90/AddIns/BVI.NatAcctVSGPClient.dll
----------------------------------------
Mere Mortals Framework Windows Forms 2005
    Assembly Version: 2.4.0.0
    Win32 Version: 2.4.0.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Mere%20Mortals%20Framework%20Windows%20Forms%202005/2.4.0.0__57ceb69243304587/Mere%20Mortals%20Framework%20Windows%20Forms%202005.dll
----------------------------------------
Mere Mortals Framework Interfaces 2005
    Assembly Version: 2.4.0.0
    Win32 Version: 2.4.0.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Mere%20Mortals%20Framework%20Interfaces%202005/2.4.0.0__2312fefb461dbb0e/Mere%20Mortals%20Framework%20Interfaces%202005.dll
----------------------------------------
Application.Dynamics
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.259.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Dynamics/GP90/Application.Dynamics.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
BVI.NatAcctVSGPClient
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Microsoft%20Dynamics/GP90/BVI.NatAcctVSGPClient.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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform