Candra Burkhardt posted on September 17, 2008 23:46

Hints for Resolving 20402/20406 Errors with Customized Screens in Dynamics SL 7.0
Microsoft Dynamics SL 7.0 is now written in the latest version of Visual Basic 2005, making it .NET compliant and providing new functionality like insert/overwrite capabilities in data entry fields and interfaces to products like SQL Server Reporting Services. In previous versions, the Visual Basic installer, the VB msi, was a separate file included on the CD and was installed separately. Now installation of the VB is a part of the client install. If something on the workstation is incompatible with the version of VB or goes wrong during the VB portion of the client install you may not receive notification during the install. You will however, receive errors when loading some Dynamics SL screens (specifically customized screens) – in particular 20406, 20402, 20404 errors. If you receive these errors, you will need to search the local PC hard drive for the existence of any .kpr and .exd files and delete them. (These will be recreated the next time a customized screen is loaded.) Then uninstall and reinstall the Dynamics SL client.
After you uninstall the Dynamics SL client make sure you check for these three files:
- Any .kpr or .exd files on the workstation – in any directory – Delete these. In a typical install these files are placed in the C:\Documents and Settings\{username}\Local Settings\temp\APC\Swimapi directory.
- The Solomon.ini.tmp which is created in the c:\windows directory – Delete it if it exists.
- The Solomon.ini which is created in the Documents and Settings\{username}\Local Settings\Application Data\Microsoft Dynamics SL folder – Delete this entire MSDynamics SL folder.
If you are still having issues and have a working workstation, the VB files can be copied from that workstation to the non-working workstation. Simply copy the C:\Program Files\Common Files\Microsoft Shared\VBA from the working workstation to the non-working workstation. Then re-install the Dynamics SL client.
Candra Burkhardt
Help Desk Manager