Connected Service for Azure IoT Hub Extension for Visual Studio currently not working for ARM projects (V 1.2.0) – Workaround
I am a frequent user of the great “Connected Service for Azure IoT Hub” Extension for Visual Studio to add support for sending messages to Azure IoT Hub to my IoT client projects.
I am using Visual Studio 2015 Enterprise with Update 2
In the latest build, the tool now defaults to using AMQP instead of HTTP as transport protocol and adds a slew of new NUGet references to the project.
The Output window of Visual Studio lists them as:
[4/27/2016 4:06:36.687 PM] Adding Azure IoT Hub to the project.
[4/27/2016 4:06:40.266 PM] Installing NuGet package ‘Newtonsoft.Json’ version 6.0.8.
[4/27/2016 4:06:40.333 PM] Installing NuGet package ‘Microsoft.Azure.Amqp’ version 1.1.1.
[4/27/2016 4:06:40.344 PM] Installing NuGet package ‘PCLCrypto’ version 2.0.147.
[4/27/2016 4:06:40.366 PM] Installing NuGet package ‘PInvoke.BCrypt’ version 0.3.2.
[4/27/2016 4:06:40.377 PM] Installing NuGet package ‘PInvoke.Kernel32’ version 0.3.2.
[4/27/2016 4:06:40.391 PM] Installing NuGet package ‘PInvoke.NCrypt’ version 0.3.2.
[4/27/2016 4:06:40.413 PM] Installing NuGet package ‘PInvoke.Windows.Core’ version 0.3.2.
[4/27/2016 4:06:40.432 PM] Installing NuGet package ‘Validation’ version 2.2.8.
[4/27/2016 4:06:49.846 PM] New service instance IoTMonitoring created
[4/27/2016 4:06:49.894 PM] Successfully added Azure IoT Hub to the project.
Trying to compile the project yields the following errors:
Error File C:\Users\xxx\Documents\Visual Studio 2015\Projects\Tests\Win10IoT Thermo IoTSuite %28Start%29\Win10IoT Thermo\obj\ARM\Debug\Validation\en\Validation.Strings.resw not found. Win10IoT Thermo C:\Users\xxx\Documents\Visual Studio 2015\Projects\Tests\Win10IoT Thermo IoTSuite (Start)\Win10IoT Thermo\MakePRI
Error Processing Resources failed with error: The system cannot find the file specified. Win10IoT Thermo C:\Users\xxx\Documents\Visual Studio 2015\Projects\Tests\Win10IoT Thermo IoTSuite (Start)\Win10IoT Thermo\MakePri
The workaround is to switch the protocol used to talk to IoT Hub from AMQP to HTTP by editing the generated “AzureIoTHub.cs” class:
var deviceClient = DeviceClient.CreateFromConnectionString(deviceConnectionString, TransportType.Amqp);
var deviceClient = DeviceClient.CreateFromConnectionString(deviceConnectionString, TransportType.Http1);
And remove all the references added by the Connected Service for Azure IoT Hub Extension except for Newtonsoft.Json:
Remove NuGet package ‘Microsoft.Azure.Amqp’ version 1.1.1.
Remove NuGet package ‘PCLCrypto’ version 2.0.147.
Remove NuGet package ‘PInvoke.BCrypt’ version 0.3.2.
Remove NuGet package ‘PInvoke.Kernel32’ version 0.3.2.
Remove NuGet package ‘PInvoke.NCrypt’ version 0.3.2.
Remove NuGet package ‘PInvoke.Windows.Core’ version 0.3.2.
Remove NuGet package ‘Validation’ version 2.2.8.
After these steps, the project compiles again and successfully sends messages (HTTP) to the Azure IoT Hub.
Here is the list of the top 10 free online learning videos from Microsoft published on Channel 9 by views in Switzerland.
So if you want to get a head start on know-how in Microsoft technology, this is a great place to start.
And if you watch one of these trainings until March 31, you have a chance to win prizes every day! Check it out on http://aka.ms/learnandwin
This month, our team is running a cool competition!
Get a head start on Microsoft technology know-how with Microsoft’s free online learning platforms.
In March 2016 you will have a chance to win daily prizes: just watch selected top online trainings for developers, IT and database professionals and students and you might be a winner!
Every day, we are raffling off one Microsoft Office 365 Home Edition and one of the following prizes: Microsoft Surface 3 Tablets, Nokia Lumia 830, Microsoft Azure backpacks, Microsoft Arc mice, Microsoft universal foldable keyboards and various Xbox One games.
Visit our “31 Days of Learning” page on http://aka.ms/learnandwin.
I really loved the game Dying Light. If you haven’t had a chance to play it, this may be a chance to pick it up: A single copy of a new “Spotlight Edition” has just gone on sale.
You get 4 copies of the game, pro acting lessons, a supporting role in the coming Dying Light movie, you can live in a camper on the set and have the FX crew give you a complete Zombie makeup.
The only downside: Its price tag is $ 10’000’000.
Geneva, Switzerland / May 16, 2014
Route des Jeunes 35
Geneva, 1227 Switzerland
10:00 AM -10:30 AM Registration/Event Welcome
10:30 AM – 11:30 AM Keynote – new features, converged apps…
11:30 AM – 13:00 AM Open Coding Session with Expert(-s) Support
13:00 PM – 14:00 PM Lunch/Webcast
14:00 PM – 17:30 PM Open Coding Session with Expert(-s) Support
17:30 PM – 18:00 PM App Showcase/Judging & Awards
18:00 PM – 19:00 PM Dinner/ Webcast
19:00 PM – 22:00 PM Open Coding Session with Expert(-s) Support
Bring your existing app and game projects to Microsoft’s //publish/ event to code with developers from around the world. Collaborate and get help with app design, performance, testing, publishing, porting from Unity – you name it.
Receive onsite support from community experts to remove blockers and add the finishing touches to your project.
Join a testing group of your peers and try your app out on a range of devices.
Connect online with developers and Microsoft product specialists from all over the globe in simultaneous worldwide events. Show off your completed project at the App Showcase.
Heads up! Elder Scrolls Online on PC installer can delete your files if a custom folder is selected.
If you don’t stick to the default installation directory, you HAVE to create an empty folder somewhere and point to that as the Elder Scrolls Online installer will erase anything it finds in the folder that it is given for installation instead of creating a subfolder itself.
So I wanted to install the “Elder Scrolls Online” on PC yesterday which ended up with me restoring large portions of my PC for several hours. And a lot of foul language was included. So here is what happened.
By default, the installer wants to install the game into “%systemdrive%\Program Files\Zenimax Online”. If you plan not to change this, you are OK.
But if you are crazy enough – like I am obviously – to have games installed to a custom folder, “%systemdrive%\Games” in my case, the installer lets you select a different folder.
I picked my “%systemdrive%\Games” folder at which point the installer said: “%systemdrive%\Games” – but not “%systemdrive%\Games\Zenimax Online”. This got me thinking for a split second, but then I pressed “Install”.
At this point, the installer created “%systemdrive%\Games\Elder Scrolls Online” and all seemed good.
But then my Steam client crashed and the Origin client started to show weird errors.
I soon noticed, that besides creating the new folder, the installer had completely erased everything inside “%systemdrive%\Games”, including the Steam client, Origin and the Blizzard launcher.
It sure seems like I failed the first quest of the Elder Scrolls Online miserably
Windows Phone 8 devices that have been updated to Windows Phone 8.1 using the developer preview can now project their screens to a computer connected via USB.
The first step is to download and install this desktop driver and client app.
it’s enough to just connect the phone to the PC using USB and start the “Project My Screen App” on the PC.
The phone will ask for permission to activate screen projection.
Tap “Yes” and the desktop app shows the screen.
Use “F1” to see all key bindings and “ESC” to exit full-screen mode.
If you have problems, getting it to work, Monkey Slaps has a debugging guide posted.