Hi Vijay,
In the past when this error has occurred we have typically advised regeneration and rebuild of all the code, but it sounds like you have already done that.
You can run Dependency Walker on mainmenu.dll to check for any potential dependency related problems (Dependency Walker (depends.exe) Home Page)
However if it was a dependency problem you would expect that the mainmenu.exe would also fail if it is using the same version of the mainmenu.dll. Are you sure you are picking up the correct version of mainmenu.dll from the new client?
Other than that:
a. You might want to check you are picking up the correct version of the Gen runtime corresponding to the version of Visual Studio you are using.
What version of Gen & Visual Studio are you using?
Are you testing the new client from the Build Tool or Windows Explorer?
b. Use the Diagram Trace Utility (DTU) to confirm the exact place the problem occurs and accuracy of any related data.
Hope it helps. If still no progress I would suggest to login to support.ca.com and create a new case for more detailed diagnosis by Support.
https://comm.support.ca.com/csupport/CaseManagement/cases/new
Regards,
Lynn