Hey guys, we recently migrated to Kinetic early last month and we’ve slowly made head way on updating all failing customizations.
We have a customization under Inventory Transfer. The customization compiles fine, there is no “error” or “warnings” under customization maintenance.
However when you open it, you get this error:
Application Error
Exception caught in: mscorlib
Error Detail
============
Message: Exception has been thrown by the target of an invocation.
Inner Exception Message: Object reference not set to an instance of an object.
Program: CommonLanguageRuntimeLibrary
Method: InvokeMethod
Client Stack Trace
==================
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Ice.Lib.Customization.CustomScriptMethodInvoker.InvokeScriptMethod(MethodInfo scriptMethod, Object[] parameters)
at Ice.Lib.Customization.CustomScriptMethodInvoker.InvokeCustomFormLoadIfExists(String methodName, Object sender, EventArgs e)
at Ice.Lib.Customization.CustomScriptManager.<>c__DisplayClass104_0.<OnCustomCodeFormLoad>b__0()
at Ice.Lib.Customization.CustomScriptManager.TryActionShowExceptionBoxOrLogVerificationErrorIfException(Action action, String exceptionBoxTitle)
Inner Exception
===============
Object reference not set to an instance of an object.at Script.InvTransferForm_Load(Object sender, EventArgs args)
I’ve encountered this before, and instead just re-created the customization off of the base.
The problem now with that is I’m getting these errors:
Error: CS0246 - line 129 (700) - The type or namespace name ‘WarehseAdapter’ could not be found (are you missing a using directive or an assembly reference?)
I’ve added the custom assemblies and verified the match the working customization on our old productions server (E10).
Any idea what I could be missing?
I can paste the entire code, but it’s an old jumbled mess that probably just needs to be cleaned up. Any help would be GREATLY appreciated.
Here’s the first snippet that fails:
rivate void cToWhse_Leave(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
if (cToWhse.Text != "")
{
//Update whse from entry in cWhse field and manually select bin
try
{
WarehseAdapter adWhse = new WarehseAdapter(this.oTrans);
adWhse.BOConnect();
string stringId = cToWhse.Text;
bool result = adWhse.GetByID(stringId);
if (result)
{
string ToWhseName = adWhse.WarehseData.Warehse.Rows[0]["Description"].ToString();
EpiDataView view = ((EpiDataView)(this.oTrans.EpiDataViews["view"]));
view.dataView[view.Row]["ToWarehouseCode"] = cToWhse.Text;
view.dataView[view.Row]["ToWarehouseDesc"] = ToWhseName;
oTrans.NotifyAll();
EpiTextBox BinText = (EpiTextBox)csm.GetNativeControlReference("e4286565-e4c0-4e9e-ae3d-3ceb8e0bcc2d");
BinText.Focus();
}
adWhse.Dispose();
} catch (System.Exception ex)
{
MessageBox.Show(Convert.ToString(ex));
}
}
}

Here are the custom assemblies.
