I am doing a project which having some functions on Geographical distance calculation. So I use geographical datatypes in entity framework by adding nuget package SqlServerSpatial110.dll
for that function.
I think my code is correct. Everything is working on local server. But when I uploaded it to server it shows the error below:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'SqlServerSpatial110.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
please tell me the steps to upload SqlServerSpatial110.dll
to server.
Copy Local = true
would probably correct that for the 3rd party .dll.. another alternative would be to add aLib
Folder to the project and place all the .dll's there that you know would be necessary for all builds and deployment.. – Shekinah