Dependencies of dependencies not included in build output

1

I have a C# solution in Visual Studio 2017. When I run it from my local machine, it works fine. However when I build the solution and move it to a new machine, it doesn't work because a dependency is missing.

System.DllNotFoundException: Unable to load DLL 'ace32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I don't directly reference this DLL, but I've found that it's referenced in a direct dependency Advantage.Data.Provider.dll.

The ace32.dll dependency is included in the SDK for Advantage Database Server.

enter image description here

Do I need to install the SDK on the target machine? Or is there some way to include dependencies of this dependency so that ace32.dll is included in the Release build?

c#
visual-studio
advantage-database-server
asked on Stack Overflow Jun 29, 2018 by ryansin

1 Answer

1

As per @auburg's comment I created an installer project and manually included ace32.dll. The error no longer occurs.

answered on Stack Overflow Jun 29, 2018 by ryansin

User contributions licensed under CC BY-SA 3.0