question

Upvote
Accepted
129 6 14 23

Unable to deploy the RFA.NET application on other machines

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.

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
38.1k 69 35 53

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.

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.


depends.png (10.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
23k 22 9 14

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)"

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea