Environment
Novell ZENworks Configuration Management 11.2 Bundles
Situation
Error 'Object reference not set to an instance of an object' while launching bundle. Application fails to launch throwing the following exception:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at NextGen.Ics.MainApplication.Main.frmMain_Load(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at NextGen.Epm.Base.NGEPMBaseForm.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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)
Resolution
1) Create the following environment variable on the launch action failing to start:
Name: SESSIONNAME
Value: Console
2) Re-publish the bundle.