I have a very odd situation that I’m hoping someone may have a bit of insight that I’m just missing at this point.
I have a customization that works perfectly without error in a Development environment. I have moved it to a Test environment. Suddenly, I am getting an error.
The customization is on a Dashboard Assembly that contains a UBAQ. When a button is clicked, it will invoke the RunCustomAction.
I’ve tested the custom action through the BAQ and I don’t receive an error. So, I’m only getting the error in the customization.
private void btnUpdateWhse_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
oTrans.PushDisposableStatusText("Updating warehouses", true);
var edvOrders = oTrans.Factory("V_EJP_OpenOrders_1View");
BAQRunCustomAction(edvOrders, "ChangeWarehouse");
Refresh();
oTrans.PushDisposableStatusText(string.Empty, true);
}
private void BAQRunCustomAction(EpiDataView iEdv, string iActionID)
{
BAQDataView BAQView = (BAQDataView)iEdv;
Assembly assembly = Assembly.LoadFrom("Ice.Lib.EpiClientLib.dll");
Type t = assembly.GetType("Ice.Lib.Framework.BAQUpdater");
BindingFlags bf = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy;
MethodInfo mi = t.GetMethod("BAQRunCustomAction", bf);
object[] param = new object[] { BAQView, iActionID };
mi.Invoke("Ice.Lib.Framework.BAQUpdater", param);
}
I do not get the error when I comment out the mi.Invoke("Ice.Lib.Framework.BAQUpdater", param);
line. Both environments are on the same version of Epicor.