Unable to deploy the RFA.NET application on other machines

Akechi Sato
Akechi Sato Explorer

I can run the RFA.NET application on the development machine. However, after
installing on other machines, it is unable to run and throws the following
exception:

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly
'RFA7_NET110_x64.dll' or one of its dependencies. The specified module could not
be found.

All library files in RFA.NET package are installed properly on the machines.

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    You can use a Dependency Walker tool to verify all dependent modules of RFA7_NET110_x64.dll.

    Following is the result from Dependency Walker on the brand new Windows 7 machine.

    image

    The result shows that it is unable to find the MSVCR110.DLL file on the machine. MSVCR110.DLL is Visual C++ 2012 runtime.

    RFA.NET library is a .NET wrapper of RFA C++ library so
    to use it, C++ runtime must be installed in the system. RFA7_NET110_x64.dll is a library
    for Visual Studio 2012 64bit. Therefore, Visual C++
    Redistributable for Visual Studio 2012

    (vcredist_x64.exe) is required. It is available at https://www.microsoft.com/en-sg/download/details.aspx?id=30679.

Answers

  • zoya faberov
    zoya faberov ✭✭✭✭✭

    After build, at runtime, all the required dlls should be in the path or in the folder you are running from, Release or Debug. A convenient option is to use post-build to bring them there, for example:

    copy "$(ProjectDir)..\..\Libs\WIN_64_VS110\RFA7_NET110_x64.dll" "$(TargetDir)"