AX 2012 R2 Class Application startupPost method customized code error abort AX client.
How to enter AX again? i can't login again to correct the wrong coding because of this fatal error.
"Microsoft Dynamics AX client has stopped working.
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
I cannot enter my AX anymore! Why? because i put a wrong code in Class Application StartupPost method
// No SYS code must exist in this method
// If you need the startup command, look in the class SysStartupCmd
void startupPost()
{
// <GTH>
Args args = new Args();
#isoCountryRegionCodes
if (hasGUI()
&& isRunningMode()
&& !SysModelStore::isInstallMode()
&& SysCountryRegionCode::isLegalEntityInCountryRegion([#ISOTH])
&& isConfigurationkeyEnabled(configurationKeyNum(TaxThailandGovCertification)))
{
TaxThaiGovCertificationHelper::promptSysAboutForm(false);
}
// </GTH>
new MenuFunction(MenuItemDisplayStr(RBMT_Main),MenuItemType::Display).run(Args);
}
my problem code is *new MenuFunction(MenuItemDisplayStr(RBMT_Main),MenuItemType::Display).run(Args);*
yeah i should have put it in an 'if (curUserId() == "me")' yeah i should have ... it should have never been there.
i modified in the USR layer. Tried to login again but the AX client can't enter into AX so i can't modify anything. Tried to login in lower layer but still i can't come in.
tried to use Visual Studio 2010 Application Explorer to save class to XPP and open notepad to modify and reload to application explorer, but still can't login.
I am unwelcome.
Is there a way in to AX without going through Class Application startupPost method?
it's like i can't enter my home even if i got my keys.
more problem is i have 2 other developer mates who can't login so they're really pissed, they need their codes too.
Please anybody knows how to overpass Class Application startupPost method?
I can't get in my AX!
Thanks very much.
ElanG.