web::http::http_exception at memory location

Apr 28, 2015 at 1:30 PM
I followed the instructions on https://ms-iot.github.io/content/Casablanca.htm
When I run the Solution (OOB) as described:

With the DLL taken from the Solution itself after using "Install-Package cpprestsdk -Version 2.2.0" and placing it on the Galileo, I'm getting this exception:
First-chance exception at 0x77010F63 in Galileo Wiring App REST SDK.exe: Microsoft C++ exception: web::http::http_exception at memory location 0x00ADF260.
Error exception:Error in: WinHttpSendRequest

When I instead download the "C++ REST SDK v2.2.0" as described in the Article and use this fresh compiled DLL on the Galileo, I'm getting:
First-chance exception at 0x75198D2A (cpprest120d_2_2.dll) in Galileo Wiring App REST SDK.exe: 0xC000001D: Illegal Instruction.

I should mention that I downloaded and Compiled the C++ REST SDK v2.5.0 before realizing my mistake with the wrong version, so I delete that solution again and did the same with C++ REST SDK v2.2.0. But this DLL is giving me the "Illegal Instruction" exception... shouldn't be, should it?
Apr 29, 2015 at 1:46 AM
Hi hockel,

I'm not the author of those instructions that you have linked so I can't really speak to whether or not they work. We don't have any binaries for Galileo in our NuGet package.

However with the 2.5.0 release Visual Studio project files have been added to build the C++ REST SDK for Galileo. They are the ones that contain 'wod' (Windows on devices. You can directly open the project file in Visual Studio or open our solution file containing all the project files. For example the Visual Studio 2013 one is located under [Release\src\build\vs12.wod](https://casablanca.codeplex.com/SourceControl/latest#Release/src/build/vs12.wod/casablanca120.wod.vcxproj). Once you build it you can take the dll, lib, and pdb to use with your application.