Unable to Load/locate module VF_AC006 error after deploying a VLF application in V12
|Date:||22 July 2010|
|Product/Release:||VLF & LANSA V12|
|Abstract:||Deploying a VLF application from V12, you may encounter an error on some PCs that VF_AC006 module cannot be located or is not a LANSA component.|
|Submitted By:||LANSA Technical Support|
When deploying a Visual LANSA Framework (VLF) application from Visual LANSA V12, after a successful install, you may generate an error on some target PCs when launching the application.
This error can occur when the target PC does not have the Visual Studio 7 runtime executable available.
Note: You may encounter variations of the error whereby other VLF DLLs may be referenced instead, for example, VF_EXEC. Alternatively, if you have created your own VLF entry point form, this may be the component referenced in the error message.
Visual LANSA V12 was built with Visual Studio 2008. But the version of VLF that is shipped in V12 requires Visual Studio 7.
When you create a package for an application using the Deployment Tool the VC90 runtime is included because the Visual LANSA runtime and V12 generated components requires it.
However, when you deploy a VLF application from V12, the VLF application also requires the Visual Studio 7 runtime executables to be available on the target PCs.
On some PCs, the runtime executable is not there and this causes the VF_AC006 error. The particular file that is being looked for is msvcr71.dll
This Microsoft provided runtime library file, msvcr71.dll is freely available for download from many locations on the internet. It can even be copied from a target PC that doesn't generate the error above when launching the VLF application. In most cases it will be documented to copy the file into the C:\WINDOWS\system32 directory. LANSA's recommendation is to place this file in the x_win95\x_lansa\execute directory instead of the C:\WINDOWS\system32 for the following reasons:
- To ensure that LANSA runtime will resolve to this version of the file
- You won't copy a version of this DLL over any previous version of this file in C:\WINDOWS\system32
- If some other software installs a version of this DLL into C:\WINDOWS\system32, the LANSA runtime will not be affected.
Note: As Visual LANSA V12 was built with Visual Studio 2008, a new package setup option Deploy with VC90 Runtime is included in most templates as the Visual C++ 2008 Redistributable is required on the target system to perform the package installation.
A compatible version of msvcr71.dll will be shipped with the next version of the VLF to avoid this situation.