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.
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?
As per @auburg's comment I created an installer project and manually included ace32.dll
. The error no longer occurs.