I've got a Visual Studio solution that I'm trying to test a deploy for. The solution has multiple projects in it and references a bunch of different components from the .Net framework and elsewhere. All of my components are in C#, except one which is in VB.Net (will get upgraded at some point, but needs to be done in one shot and is large).
The project structure is:
Everything works well on my dev machine. However, when I deploy to a test machine, which is Windows 10 + updates, and purposely no internet connection (a valid test), I get an issue when running part of the program within the Dolphin component.
The code erroring on the test machine is:
oValue = New SqlGeometry() <-- this does not error
oValue.Parse("LINESTRING (100 100, 20 180, 180 180)") <--- this errors
The error is:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
I'm looking to use SqlGeometry and SqlGeography in AppData and AppBuilder. I have both SqlServerSpatial110.dll and Microsoft.SqlServer.Types.dll in the same folder as the EXE and DLLs.
If I try and add a references within Dolphin (VB.Net) to SqlServerSpatial110.dll, I get the following error message indicating that this cannot be done:
If I try and manually register SqlServerSpatial110.dll on the test machine from within the target app directory using regsvr32, I get the error:
The module 'SqlServerSpatial110.dll' failed to load.
Make sure the binary is stored at the specified path or debug it to check for problems with the binary of dependent .DLL files.
The specified module could not be found.
SqlServerSpatial110.dll is in the System32 directory on my dev machine, but not on the test machine. My experience level in writing manifest files is none at all, and I'm hoping to keep it that way. For reference I'm using a deployment product called DeployMaster, but that is fairly irrelevant to the question. All components are set to x86 compilation. It's a winforms app
In short, how do I reference SqlServerSpatial110.dll from Dolphin to get it deployed and used correctly?