Thank you Herve. Good to know it is possible to get this to work and helpful to know that I need to focus on 10.5. I will keep hacking at this.
So I have Microsoft.SqlServer.Types.dll, version 10.50.3720.0, referenced in my project and set to copy always. As you said, I pulled this from my
C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies directory. When you look at the properties in VS for this reference, the target runtime is v2.0.50727 as you mentioned above. If 10.50.1750.9 definitely works, I would love to get my
hands on that version. I have no idea how I would find that specific release.
I also have the unmanaged SQLServerSpatial.dll, version 10.50.3720.0, included in the root of my project and set to always copy local. I got this file from my Windows\System32 dir. When I publish to Azure, this file is in the root directory and in bin.
With this configuration, I still get:
Unable to load DLL 'SqlServerSpatial.dll': The application has failed to start because its side-by-side configuration is incorrect.
In the event log, again I get the error:
Activation context generation failed for "E:\sitesroot\0\bin\SqlServerSpatial.dll". Dependent Assembly Microsoft.VC80.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.4027" could not be found. Please use
sxstrace.exe for detailed diagnosis.
I have run the sxstrace and it doesn't give me much more information. I have tried including the VC++ libs (msvcm80.fdll, msvcp80.dll & msvcr80.dll) in my project similarly to how I am including the SQLServerSpatial.dll, but I get errors on the initial
page loads when I do this. This is so frustrating, I hope someone has seen this before?