﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Damir Dobric Posts : Windows</title><link />http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx<description>Tags: Windows</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>How to find out Callback URI of the Windows 10 App?</title><link />http://developers.de/blogs/damir_dobric/archive/2017/08/14/how-to-find-out-callback-uri-of-the-windows-10-app.aspx<pubdate>Mon, 14 Aug 2017 05:20:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1808284</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=1808284</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2017/08/14/how-to-find-out-callback-uri-of-the-windows-10-app.aspx#comments</comments><description>&lt;p&gt;Usually, when implementing AAD authentication in application, according to OAuth protocol, you will have to provide so called Callback-URI. This is the URL of the endpoint capable of receiving redirected request from authority.&amp;#160; Because the specification as originally written for web applications, this kind of URL is not natural for native apps.&lt;/p&gt;  &lt;p&gt;Depending on type of operative system or even better, depending on client library, which you use, this URL might look different. In a case of UWP (Universal Windows Application), the URL&amp;#160; can be extracte as follows:&lt;/p&gt;  &lt;p&gt;string URI = string.Format(&amp;quot;ms-appx-web://Microsoft.AAD.BrokerPlugIn/{0}&amp;quot;, WebAuthenticationBroker.GetCurrentApplicationCallbackUri().Host.ToUpper());&lt;/p&gt;  &lt;p&gt;As a result you will get something like this:&lt;/p&gt;  &lt;p&gt;&lt;a title="ms-appx-web://Microsoft.AAD.BrokerPlugIn/S-1-15-2-1706387387-4189788551-2724562175-3977038930-2290055178-977454683-1391943604"&gt;&lt;font&gt;ms-appx-web://Microsoft.AAD.BrokerPlugIn&lt;/font&gt;/S-1-XX-2-00000000-11111-22222-4444-2290055178-222222-1111111&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;This URL is what you have to set in application blade in Azure AAD portal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1808284" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/azure/default.aspx">azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Microsoft+Azure/default.aspx">Microsoft Azure</category></item><item><title>DesktopAppConverter error : qualified file name must be less than 260</title><link />http://developers.de/blogs/damir_dobric/archive/2017/07/22/desktopappconverter-error-qualified-file-name-must-be-less-than-260.aspx<pubdate>Sat, 22 Jul 2017 12:53:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1807798</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=1807798</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2017/07/22/desktopappconverter-error-qualified-file-name-must-be-less-than-260.aspx#comments</comments><description>&lt;p&gt;When working with Desktop Converter, you might get following error: &lt;/p&gt;  &lt;p&gt;&lt;font color="#ff0000"&gt;C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.0.2.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 : The     &lt;br /&gt; specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and      &lt;br /&gt; the directory name must be less than 248 characters.      &lt;br /&gt; At line:1 char:1      &lt;br /&gt; + &amp;amp;&amp;#39;C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.0.2.0_ ...      &lt;br /&gt; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; + CategoryInfo&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; : NotSpecified: (:) [Write-Error], WriteErrorException      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;This error has nothing to do with the length f any of your application files. The problem is destination argument of following command:&lt;/p&gt;    &lt;p&gt;&amp;gt; DesktopAppConverter.exe -Installer &lt;font&gt;C:\Temp\NodejsApp\NodejsApp&lt;/font&gt; -AppExecutable node.exe -Destinat    &lt;br /&gt; ion &lt;font&gt;C:\Temp\NodejsApp\NodejsApp\packages&lt;/font&gt; -PackageName &amp;quot;MyNodeApp&amp;quot; -Publisher &amp;quot;CN=MyPublisher&amp;quot; -Version 0.0.0.1&lt;/p&gt;  &lt;p&gt;This command creates the package from application in path ‘&lt;font&gt;C:\Temp\NodejsApp\NodejsApp&lt;/font&gt; ’ and will try to store it to path &lt;font&gt;C:\Temp\NodejsApp\NodejsApp\packages&lt;/font&gt; .&lt;/p&gt;  &lt;p&gt;Because creating process will read specified path, but in the same time will create packages under the reading path, it will recursively grow until it crashes.&lt;/p&gt;  &lt;p&gt;Solution is very easy. You should create a package out of application root:&lt;/p&gt; DesktopAppConverter.exe -Installer &lt;font&gt;&lt;font&gt;C:\Temp\NodejsApp\&lt;/font&gt;NodejsApp&lt;/font&gt; -AppExecutable node.exe -Destinat  &lt;br /&gt; ion &lt;font&gt;&lt;font&gt;C:\Temp\NodejsApp&lt;/font&gt;\packages&lt;/font&gt; -PackageName &amp;quot;MyNodeApp&amp;quot; -Publisher &amp;quot;CN=MyPublisher&amp;quot; -Version 0.0.0.1&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1807798" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/WinRT/default.aspx">WinRT</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category></item><item><title>How to enable Windows 10 Start Button?</title><link />http://developers.de/blogs/damir_dobric/archive/2016/07/31/how-to-enable-windows-10-start-button.aspx<pubdate>Sun, 31 Jul 2016 19:27:04 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1795529</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=1795529</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2016/07/31/how-to-enable-windows-10-start-button.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Sometimes on Windows 10 start menu might be disabled. One of solutions is to switch of the option “Use Start full screen” option.   &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_67AD90F6.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_0E0F7442.png" width="809" height="773" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Unfortunately, it is not possible to enter these settings usual way. If you want to change personalization settings while disabled Start-Menu on Windows 10, try following. Start Task Manager (Ctrl+Shift+ESC) and then run new task:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_0998F37B.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_306709BB.png" width="244" height="139" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;As next start Command Prompt:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_42439D88.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_6911B3C8.png" width="580" height="364" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Finally run the shell extension called ‘Personalization’:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C:\WINDOWS\system32&amp;gt;start ms-settings:personalization&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_0FDFCA09.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_649B3301.png" width="828" height="312" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1795529" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category></item><item><title>Build error “error APPX1706:”</title><link />http://developers.de/blogs/damir_dobric/archive/2016/06/24/build-error-error-appx1706.aspx<pubdate>Fri, 24 Jun 2016 07:38:41 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1792868</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=1792868</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2016/06/24/build-error-error-appx1706.aspx#comments</comments><description>&lt;p&gt;In a time of transition form .NET framework to .NET core, you might run into issues, which you never ha before.   &lt;br /&gt;This is the price for open source. &lt;img class="wlEmoticon wlEmoticon-smile" style="border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;" alt="Smile" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/wlEmoticon_2D00_smile_5F00_3AD46119.png" /&gt;&lt;/p&gt;  &lt;p&gt;For example, look at following error:&lt;/p&gt;  &lt;p&gt;error APPX1706: The .winmd file &amp;#39;Windows.Foundation.UniversalApiContract.winmd&amp;#39; contains type &amp;#39;Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceCommandResult&amp;#39; outside its root namespace &amp;#39;Windows.Foundation.UniversalApiContract&amp;#39;. Make sure that all public types appear under a common root namespace that matches the output file name.&lt;/p&gt;  &lt;p&gt;You might get this in different type variations (in my case: &amp;#39;Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceCommandResult&amp;#39; ), which of course does not have nothing to do with the error.&lt;/p&gt;  &lt;p&gt;This error will probably make you crazy and it will not be easy to solve. To illustrate what has happened here, I created a simple solution with two projects. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_7693F9CC.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_288B9A57.png" width="240" height="324" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Project &lt;strong&gt;ClassLibrary1&lt;/strong&gt; is a portably library, which targets following platforms:&lt;/p&gt; &amp;quot;net46.app&amp;quot;,  &lt;br /&gt;&amp;quot;uwp.10.0.app&amp;quot;  &lt;br /&gt;&amp;quot;dnxcore50.app&amp;quot;  &lt;p&gt;Project TESTFx is UWP application, which references the ClassLibrary1 as project.&lt;/p&gt;  &lt;p&gt;The error shown above (or similar) will pop up during build process, if the portable library has a direct reference to some WinRT assembly (or better to say to some ‘winmd’ file).&lt;/p&gt;  &lt;p&gt;In my case this is ‘Windows.Foundation.UniversalApiContract’ as shown at the following picture:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_6F74BD54.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_644B330A.png" width="419" height="249" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Remove that reference and probably also the code, which requires it and error will dissapear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1792868" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Core.Net/default.aspx">Core.Net</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/WinRT/default.aspx">WinRT</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Devices+and+Services/default.aspx">Devices and Services</category></item><item><title>Crazy compile-time reference for mscorlib in UWP project(s)</title><link />http://developers.de/blogs/damir_dobric/archive/2016/02/04/crazy-compile-time-reference-for-mscorlib-in-uwp-project-s.aspx<pubdate>Thu, 04 Feb 2016 06:00:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1709059</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=1709059</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2016/02/04/crazy-compile-time-reference-for-mscorlib-in-uwp-project-s.aspx#comments</comments><description>&lt;p&gt;Science we started with .NET Core and UAP (Universal Application Platform) we complained very often about unexpected errors, which we simply couldn’t understand. &lt;/p&gt;  &lt;p&gt;One of my favorites is this one:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;Microsoft.NETCore.Portable.Compatibility 1.0.0 provides a compile-time reference assembly for mscorlib on UAP,Version=v10.0, but there is no run-time assembly compatible with win10.&lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;This error is compile time error caused by following project.json configuration:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;font style="font-size:9.5pt;"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;dependencies&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: {&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font face="Consolas"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;Microsoft.NETCore.UniversalWindowsPlatform&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;: &lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;" color="#a31515"&gt;&amp;quot;5.0.0&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;},&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;frameworks&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: {&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;uap10.0&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { }&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;},&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;runtimes&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: {&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-arm&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-arm-aot&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x86&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x86-aot&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x64&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x64-aot&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { }&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 8pt;line-height:12pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;line-height:10pt;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;font style="font-size:9.5pt;"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;To workaround this problem, You should change configuration as shown below. Please remove “win10” from list of runtimes.&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;font style="font-size:9.5pt;"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;dependencies&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: {&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font face="Consolas"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;Microsoft.NETCore.UniversalWindowsPlatform&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;: &lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;" color="#a31515"&gt;&amp;quot;5.0.0&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;},&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;frameworks&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: {&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;uap10.0&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { }&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;},&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;runtimes&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: {&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="background-color:#ffff00;"&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:yellow;"&gt;//&lt;/span&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:yellow;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:yellow;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-arm&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-arm-aot&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x86&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x86-aot&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x64&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { },&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;font face="Consolas"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font color="#2e75b6"&gt;&amp;quot;win10-x64-aot&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font style="font-size:9.5pt;"&gt;: { }&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font style="font-size:9.5pt;"&gt;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:9.5pt;"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="list-style-type:disc;margin:0in 0in 8pt;line-height:12pt;"&gt;&lt;span style="background-image:none;background-repeat:repeat;background-attachment:scroll;background-position:0% 0%;line-height:10pt;mso-bidi-font-family:consolas;mso-highlight:white;"&gt;&lt;font face="Consolas"&gt;&lt;font style="font-size:9.5pt;"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1709059" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Core.Net/default.aspx">Core.Net</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category></item><item><title>Troubleshooting NuGet references</title><link />http://developers.de/blogs/damir_dobric/archive/2014/08/26/troubleshooting-nuget-references.aspx<pubdate>Tue, 26 Aug 2014 05:28:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1059712</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=1059712</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2014/08/26/troubleshooting-nuget-references.aspx#comments</comments><description>&lt;p&gt;When working with NUGET in big projects (just a bit bigger than default hello-world) you might run into following issue:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Could not load file or assembly ‘…’&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;The prominent of this error example is :&lt;font color="#ff0000"&gt;&lt;em&gt;Could not load file or assembly &amp;#39;Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&amp;#39; or one of its dependencies. The system cannot find the file specified.&lt;/em&gt;&lt;/font&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;This very simple error message can be caused by a number of different reasons. In this article I will try to put together all issues and solutions which I found.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h4&gt;1. Incorrect assembly loaded&lt;/h4&gt;  &lt;p&gt;Typically one assembly cannot be loaded, because it is not referenced at all. Assuming that this is very trivial issue, you have probably referenced it.   &lt;br /&gt;Unfortunately some other component referenced from your project (i.e. Http.Formatting.Dll) can als reference the same assembly, but different version.    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;For example, your the required version is defined by NuGet in packages file as follows:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;package&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;line-height:107%;mso-highlight:white;"&gt;id&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;line-height:107%;mso-highlight:white;"&gt;version&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;6.0.0.0&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;line-height:107%;mso-highlight:white;"&gt;targetFramework&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;net451&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; /&amp;gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p&gt;But this does not means, that all other assemblies will try to load exactly this version of the assembly.   &lt;br /&gt;(Before you proceed have to first enable Fusion Log to get all binding failures).     &lt;br /&gt;If you did it, you will get following more descriptive error:    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;=== Pre-bind state information === LOG: DisplayName = &lt;strong&gt;Newtonsoft.Json, Version=4.5.0.0&lt;/strong&gt;, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (Fully-specified) LOG: Appbase = file:///C:/Tfs/Hyperion/Homag/ProFuture/CoreServices/Homag.ProFuture.GenericIDocHandler.Service/ LOG: Initial PrivatePath = C:\Tfs\Hyperion\Homag\ProFuture\CoreServices\Homag.ProFuture.GenericIDocHandler.Service\bin       &lt;br /&gt;&lt;strong&gt;Calling assembly : System.Net.Http.Formatting, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. ===&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Please lookup a word: “&lt;strong&gt;Calling”&lt;/strong&gt; to figure out which assembly is trying to load incorrect version. In this case it is System.Net.Http.Formatting. That assembly is trying to load &lt;strong&gt;System.Net.Http.Formatting&lt;/strong&gt;, although you have referenced some higher (or even older) version. The problem is that only one version of the same assembly can be loaded in domain. In this case, your application has loaded v5.2 (specified in packages file) version of &lt;strong&gt;Newtonsoft.Json&lt;/strong&gt; , but Http.Formatting assembly will version 4.5.&lt;/p&gt;  &lt;p&gt;To workaround this we need to define assembly binding redirect in web.config (app.config).&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;runtime&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;assemblyBinding&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;xmlns&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;urn:schemas-microsoft-com:asm.v1&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;dependentAssembly&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;assemblyIdentity&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;name&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;publicKeyToken&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;30ad4fe6b2a6aeed&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;culture&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;neutral&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;bindingRedirect&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;oldVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;0.0.0.0-6.0.0.0&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;newVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;6.0.0.0&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;dependentAssembly&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;line-height:107%;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;runtime&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;This will enforce loading of v6.0.0.0 for all requests of any version of the &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt; assembly.&lt;/p&gt;  &lt;h4&gt;2. Version mismatch between NuGet and Assembly&lt;/h4&gt;  &lt;p&gt;If you already did everything as described in step 1, and if you till get the same error. In this case it could be that the NuGet version does not match the version of assembly.   &lt;br /&gt;For example, packages file can request assembly as follows:&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;package&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;line-height:107%;mso-highlight:white;"&gt;id&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;line-height:107%;mso-highlight:white;"&gt;version&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;6.0.4&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;line-height:107%;mso-highlight:white;"&gt;targetFramework&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;net451&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt; /&amp;gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;If you have defined redirect in your config file to load the correct version you will do following:&lt;/p&gt; &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;bindingRedirect&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;oldVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;0.0.0.0-6.0.4&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;newVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;6.0.4&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;   &lt;br /&gt;&lt;/span&gt;  &lt;p&gt;In this case you have defined everything correctly, but it still does not work, it is most likely that you have a version mismatch problem.    &lt;br /&gt;For example &lt;strong&gt;NuGet&lt;/strong&gt; requires v6.4, but assembly version is v6.0 (stored in metadata, explorer does not necessarily helps to see this mismatch).&lt;/p&gt;  &lt;p&gt;To fix this you would put in config file following :&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;bindingRedirect&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;oldVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;0.0.0.0-6.0.0.0&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;newVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;6.0.0.0&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;Note, assembly loader doe not know anything about nuget. It loads the version as specified in config-file as long this version mathes physically stored metadata.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h4&gt;3. Incorrect assembly referenced&lt;/h4&gt;  &lt;p&gt;Sometimes when working on different machines or in different workspaces or when you move project in TFS form one location to another one it can happen that incorrect assemblies are referenced.   &lt;br /&gt;For example, packages file specifies version 6.0.4 of &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Newtonsoft.Json.&lt;/span&gt;    &lt;br /&gt;In this case the reference to that assembly should be something like “&lt;strong&gt;C:\Tfs\MyProject\packages\Newtonsoft.Json.6.0.4\lib\net45\&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt;.dll&lt;/strong&gt;”.    &lt;br /&gt;Unfortunately you can figure out that this is not the case. In this case the reference will be typically like: “c:\program files86\referencedassemblies\&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt;.dll”&lt;/p&gt;  &lt;p&gt;Basically this means, that this is incorrect version. VS has referenced the default version, because the right one was not found.&lt;/p&gt;  &lt;p&gt;If the right version was not found it can be that &lt;strong&gt;it does not exist&lt;/strong&gt; &lt;strong&gt;on the disk&lt;/strong&gt; or &lt;strong&gt;it is on different location&lt;/strong&gt;.    &lt;br /&gt;- &lt;strong&gt;If it does not exist on the disk&lt;/strong&gt;&amp;#160; &lt;br /&gt;go to &lt;strong&gt;Package Manager Console&lt;/strong&gt; and you will see this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_506F2609.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_7332EE77.png" width="1294" height="152" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Click on Restore and package will be downloaded. In this case reference will not be automatically repaired. So, you have to go to references, remove existing    &lt;br /&gt;reference (c:\program files86\referencedassemblies\..) and add the correct one &lt;strong&gt;C:\Tfs\MyProject\packages\Newtonsoft.Json.6.0.4\lib\net45\&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Newtonsoft.Json&lt;/span&gt;.dll&lt;/strong&gt;.)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;- If it on on different location&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;you will also have to reference it as describe before. Remove existing reference and add correct one.   &lt;br /&gt;Unfortunately this problem mostly happen when you move solution or project in TFS from one location to another one. To fix this you could go to all referenced assemblies and change reference.    &lt;br /&gt;This would typically take very long time by 30-50 assemblies which you have in average.&lt;/p&gt;  &lt;p&gt;So, right mouse click on project and unload it:   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_773D3C49.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_3E265F47.png" width="244" height="116" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Then edit the project in editor:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_050F8245.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_4BF8A542.png" width="244" height="73" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Following shows (yellow marked) the assembly which is not correctly referenced. This assembly was originally on location MyProjects\packages. Then the project was moved to different location.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;ItemGroup&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Daenet.SecurityManager.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=173a861425037ca2, processorArchitecture=MSIL&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;SpecificVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;False&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;SpecificVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;..\..\Assemblies\Daenet.SecurityManager.Client\Daenet.SecurityManager.Client.dll&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Daenet.System, Version=1.0.0.1, Culture=neutral, PublicKeyToken=ede0cf8eefc9ca50, processorArchitecture=MSIL&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;SpecificVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;False&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;SpecificVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;..\..\Assemblies\Daenet.System\Daenet.System.dll&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Microsoft.CSharp&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;True&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;..\..\&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:yellow;color:black;mso-highlight:yellow;"&gt;MyProject\packages&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;System.Data.DataSetExtensions&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;System.Net.Http&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; /&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:red;mso-highlight:white;"&gt;Include&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;=&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;SpecificVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;False&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;SpecificVersion&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.0\lib\net45\System.Net.Http.Formatting.dll&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;     &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;Reference&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The right path would be this one in my case.&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;True&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;Private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;..\..&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:yellow;color:black;mso-highlight:yellow;"&gt;\packages&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;mso-highlight:white;"&gt;HintPath&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;To me this was the best one to see all invalid references at once.   &lt;br /&gt;Unfortunately the VS fallback mechanism will not notify us if something is wrong and it will reference the default version, which will be a cause for very bad failures&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1059712" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Asp.Net/default.aspx">Asp.Net</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Core.Net/default.aspx">Core.Net</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/cloud/default.aspx">cloud</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/azure/default.aspx">azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/windows+azure/default.aspx">windows azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Microsoft+Azure/default.aspx">Microsoft Azure</category></item><item><title>How to prepare for Side Loading of Windows Store Apps?</title><link />http://developers.de/blogs/damir_dobric/archive/2014/05/13/how-to-prepare-for-side-loading-of-windows-store-apps.aspx<pubdate>Tue, 13 May 2014 06:17:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:952055</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=952055</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2014/05/13/how-to-prepare-for-side-loading-of-windows-store-apps.aspx#comments</comments><description>&lt;p&gt;If you want to deploy Windows Store Apps in enterprises, Windows 8 provides a concept called “Side Loading”, which is described in &lt;a href="http://msdn.microsoft.com/en-us/library/windows/apps/jj657971.aspx"&gt;this&lt;/a&gt; article, at least.     &lt;br /&gt;Basically, when preparing side loading, you will have to build the package, sign it and deploy it. Please note, there are several ways do side-load the app.     &lt;br /&gt;Right now, deployment can be done by executing power shell scripts, by using of SCOM or it can be distributed on the Windows image itself. There are many articles which describe this procedure, but unfortunately all of them targets deployment with developer license key. That means, you run Visual Studio, create the package and finally start power shell scripts. All look very easy. This is true, because you don’t have to do anything. Visual Studio will take care about everything. Period.     &lt;br /&gt;Instead on one thing, called code signing key. VS will create self signing key, which will run under developer license. &lt;a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh974578.aspx"&gt;Developer license&lt;/a&gt; is usually valid 30 days, but if it is create by using the store it is valid 90 days.&lt;/p&gt;  &lt;p&gt;In this article I will try to describe all required steps which are required for production environment.&lt;/p&gt;  &lt;p&gt;To recap all this, following steps have to be done:    &lt;br /&gt;    &lt;br /&gt;1. Prepare your machine     &lt;br /&gt;2. Create enterprise signing certificate     &lt;br /&gt;3. Enroll Certificate     &lt;br /&gt;3. Deploy the app     &lt;br /&gt;&lt;/p&gt;  &lt;h4&gt;1. Prepare your machine&lt;/h4&gt;  &lt;p&gt;Before you deploy the app, you need to do some preparation of the machine where the app has to be installed.    &lt;br /&gt;Side loading works in general on Windows Server 2012 and Windows 8 Enterprise editions if following is satisfied:     &lt;br /&gt;    &lt;br /&gt;a) The machine is domain joined.     &lt;br /&gt;b) The group policy is set to &lt;strong&gt;Allow trusted apps to install&lt;/strong&gt;.     &lt;br /&gt;    &lt;br /&gt;To setup group policy &lt;a href="http://technet.microsoft.com/en-us/library/cc736591(v=ws.10).aspx"&gt;open Group Policy editor&lt;/a&gt; setting located at     &lt;br /&gt;&lt;code&gt;Local Computer Policy | Computer Configuration | Administrative Templates | Windows Components | App Package Deployment.&amp;#160; &lt;br /&gt;&lt;/code&gt;Navigate to &lt;strong&gt;Allow all trusted apps to install&lt;/strong&gt; and enable it.     &lt;br /&gt;    &lt;br /&gt;This can also be done by setting following registry key:     &lt;br /&gt;    &lt;br /&gt;&lt;code&gt;HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Appx\AllowAllTrustedApps = 1&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;For side loading to Windows 8 Pro, Windows RT, or Windows 8 Enterprise, you need to&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;a) Activate the product key.      &lt;br /&gt;b) Set the group policy to &lt;strong&gt;Allow trusted apps to install&lt;/strong&gt;. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;As you see side loading on Windows 8 Pro and Windows RT works only if the product key is activated.    &lt;br /&gt;Don’t be surprised, side loading on Windows 8 is supported either by Domain Joining or Key activation.&lt;/p&gt;  &lt;h4&gt;2. Create Enterprise Code Signing Key&lt;/h4&gt;  &lt;p&gt;One of most important steps which is in fact major prerequisites for side loading is creating of the code signing key. Unfortunately this step is most difficult one and it is not documented well.    &lt;br /&gt;One possible solution would be to buy code signing key. Unfortunately the certificate with signing key for Windows Store Apps is slightly different than usual certificate. More about this latter.     &lt;br /&gt;Most articles which reference to side loading describe how to create Self Signing Key. In fact this key is automatically created by Visual Studio.     &lt;br /&gt;    &lt;br /&gt;So, I found one way to make all this happen. It is not very easy and it include multiple steps. I’m sorry for this. Please forgive me, it was not my idea to design it this way :)     &lt;br /&gt;To make code signing key you have to have installed corporate (or testing one) Certificate Authority (CA). This article does not cover installation of CA.     &lt;br /&gt;Once it is installed there is a old, very old ASP Web application, which is used to request certificates. Following three pictures show several steps in the certificate enrollment process. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image171_5F00_4D397DFA.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image171_5F00_thumb_5F00_182CEECA.png" width="398" height="297" /&gt;&lt;/a&gt; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image201_5F00_5F1611C7.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image201_5F00_thumb_5F00_3EFB050A.png" width="450" height="293" /&gt;&lt;/a&gt; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image231_5F00_33D17AC0.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image231_5F00_thumb_5F00_7ABA9DBD.png" width="578" height="284" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This application has few issues. First, it does not provide by default code signing template. Second, It deal with Windows Server 2008 Enterprise certificate templates.    &lt;br /&gt;It can only deal with Windows Server 2003 Enterprise certificate templates.     &lt;br /&gt;So I decided to try 2003 certificate. templates. Enrollment process worked fine, but unfortunately the app verification process during side load has failed over and over again.     &lt;br /&gt;For this reason I decided for me, “&lt;em&gt;This application is not useful for issuing of code signing certificates for Windows Store Apps&lt;/em&gt; ”. If somebody knows how to make this working with this application, I would love to see comments here.&lt;/p&gt;  &lt;p&gt;But, don’t wary, there are still some possibilities to complete this story successfully.    &lt;br /&gt;Open the MMC and and add-in called “Certificate Templates” as shown on the picture below.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image4_5F00_5A9F9100.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image4_5F00_thumb_5F00_2188B3FE.png" width="291" height="140" /&gt;&lt;/a&gt;     &lt;br /&gt;Click on the node on the picture above and on the right side the list of installed templates will appear. As next, lookup Code Signing certificate template.     &lt;br /&gt;Usually we should not deal with templates assuming that we have certificate template which we need. Unfortunately the Code Signing certificate template,     &lt;br /&gt;which you found in the list is not useful for Windows Store Apps. This template will probably be used by other certificate authorities if you decide to purchase the certificate.     &lt;br /&gt;In other words, if you use default code signing template side loading will fail.     &lt;br /&gt;    &lt;br /&gt;The reason for this is that certificate for Windows Store Apps requires few more attributes than default template.     &lt;br /&gt;Please select the template (right mouse click) and choose “Duplicate”, to create the copy of existing template. You guess, we will extend existing template.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image7_5F00_3A848443.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image7_5F00_thumb_5F00_016DA741.png" width="736" height="181" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;In following dialog you need to select Windows Server 2008 enterprise as shown below.    &lt;br /&gt;This is exactly the step which is not supported by Web Application shown above.     &lt;br /&gt;Remember, in the web application we had to select Win2003 template.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image15_5F00_4856CA3E.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image15_5F00_thumb_5F00_0F3FED3C.png" width="396" height="242" /&gt;&lt;/a&gt;     &lt;br /&gt;In the next step, you have change the template. Please be careful to perform exactly described steps.     &lt;br /&gt;If you make some mistake in this step, it will be almost impossible (difficult) to figure out why side loading will not work.     &lt;br /&gt;As next select &lt;strong&gt;Subject Name&lt;/strong&gt; tab and click “&lt;em&gt;Supply in Request&lt;/em&gt;”. This will enforce developer to provide the subject name of the certificate, when certificate is added in the Visual Studio solution. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image91_5F00_56291039.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image91_5F00_thumb_5F00_0820B0C4.png" width="658" height="487" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The subject which is enforced in the last step will became Common Name attribute known also known CN, which should match to the publisher of the app.    &lt;br /&gt;As you might know, publisher can/should be associated with the store. This is shown at the right picture below. The Common Name (Subject) must equal Publisher Name shown in package manifest.     &lt;br /&gt;To make them same, you will have to enter publisher name in the subject in Certificate Request (explained below).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_4F09D3C1.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_5CDC19BC.png" width="463" height="339" /&gt;&lt;/a&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_23C53CBA.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_55BCDD44.png" width="331" height="340" /&gt;&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;Note, you don’t have to associate your app with the store account, to make side loading happen. But it is good practice to do this even if you don’t want to publish application    &lt;br /&gt;through store. It is good to do it, because Publisher will be set on your publicly known organization name, if the app is associated with your public account.     &lt;br /&gt;If you do not associate it with the store account the package will contain your user name as a publisher like shown at the next picture.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_1CA60042.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_638F233F.png" width="298" height="81" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;Such kind of certificate would not look very professional. This is why it is better to setup organizational account. Even if you use store account     &lt;br /&gt;and associate your app with organizational store account, side loading process will remain as it is. No any additional step or tweaks have to be done.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Following picture shows how to make certificate which provides described flow.&lt;/p&gt;  &lt;p&gt;As next you need to enable private key to be exported. If you don’t do this you will not be able to move PFX (code signing certificate) with private key.    &lt;br /&gt;That means you will not be able to sign the package.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image12_5F00_2A78463D.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image12_5F00_thumb_5F00_5C6FE6C7.png" width="405" height="524" /&gt;&lt;/a&gt;     &lt;br /&gt;In the next step you should give some descriptive name of the template (see picture below left).     &lt;br /&gt;Later, after certificate is created the template name will appear in the certificate as shown at the picture below on right.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image18_5F00_235909C5.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image18_5F00_thumb_5F00_182F7F7B.png" width="402" height="523" /&gt;&lt;/a&gt;&amp;#160;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_4A272005.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_3EFD95BB.png" width="410" height="525" /&gt;&lt;/a&gt;     &lt;br /&gt;Optionally you can set expiration date. Default is one year.     &lt;br /&gt;Now , you have to enable Basic Constraints Extension. This is what most code signing certificates do not include (at least at time of writing of this article).     &lt;br /&gt;When you purchase this certificate by some third party, be sure that this extension is included.     &lt;br /&gt;To add this extension, just click the check-box.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image21_5F00_4307E38D.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image21_5F00_thumb_5F00_37DE5943.png" width="404" height="520" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;After&amp;#160; applying of this template will appear in the list of all templates.&lt;/p&gt;  &lt;p&gt;&lt;a&gt;&lt;img title="image_thumb[2]" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image_thumb[2]" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb2_5F00_17C34C86.png" width="572" height="197" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Refresh the list and select your new template.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_5EAC6F83.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_25959281.png" width="587" height="366" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Finally select it an choose “enable”&lt;/p&gt;  &lt;p&gt;&lt;a&gt;&lt;img title="image_thumb[3]" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image_thumb[3]" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb3_5F00_6C7EB57E.png" width="590" height="370" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This is all what you need to do to create the certificate template.    &lt;br /&gt;&lt;/p&gt;  &lt;h4&gt;3. Certificate Enrollment&lt;/h4&gt;  &lt;p&gt;   &lt;br /&gt;As next, you have to enroll certificate for you app. To do that open certificate management tool (MMC with user certificate management) &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_1E765609.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_134CCBBF.png" width="340" height="389" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Select the certificate template to be used for your new certificate.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_45446C49.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_3A1AE1FF.png" width="607" height="443" /&gt;&lt;/a&gt;     &lt;br /&gt;The yellow warning is not an issue. Remember we have chosen for Subject Name “Supply in the Request”.     &lt;br /&gt;This is basically what the message below is trying to explain. Ignore this and proceed with “Enroll”.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image24_5F00_19FFD542.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image24_5F00_thumb_5F00_60E8F83F.png" width="585" height="427" /&gt;&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image33_5F00_40CDEB82.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image33_5F00_thumb_5F00_07B70E80.png" width="589" height="430" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;As next, you can select a friendly name for your certificate.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image27_5F00_39AEAF0A.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image27_5F00_thumb_5F00_0097D208.png" width="586" height="615" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The certificate Friendly Name and Description are attribute which will become consisted part of your certificate after it is enrolled:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_4780F505.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_0E6A1803.png" width="404" height="468" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;As almost last step, you have to enter the Subject Name of the certificate. This name should be the name copied from the App-Package as    &lt;br /&gt;I already described above.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image30_5F00_55533B00.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image30_5F00_thumb_5F00_074ADB8B.png" width="488" height="513" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;You will not believe me, but this is almost all you need to do for enrollment. Sorry :(&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image61_5F00_7C215140.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image61_5F00_thumb_5F00_2E18F1CB.png" width="625" height="456" /&gt;&lt;/a&gt;     &lt;br /&gt;The last step is to export certificate with private key. Select your certificate and click “Export”. Then select YES Export Private Key.     &lt;br /&gt;This is important, because without private key, certificate can only be used for verification of signature, but not for creating of signature.     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_22EF6781.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_02D45AC4.png" width="702" height="225" /&gt;&lt;/a&gt; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_49BD7DC1.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_7BB51E4B.png" width="332" height="329" /&gt;&lt;/a&gt;     &lt;br /&gt;Then select PFX format and enter protection password. This should not be a weak password.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_708B9401.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_50708744.png" width="311" height="314" /&gt;&lt;/a&gt; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_1759AA42.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_624D1B11.png" width="311" height="307" /&gt;&lt;/a&gt;     &lt;br /&gt;When you later select certificate in the app, you will have to enter the password.     &lt;br /&gt;Huuhhh. That’s all for enrollment.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;h4&gt;3. Deploy the App&lt;/h4&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;The last required step is to deploy the app. This step is exactly as it should be: “simple”. Visual Studio will do all magic.    &lt;br /&gt;Open Package Manifest (&lt;strong&gt;&lt;em&gt;Package.appmanifest&lt;/em&gt;&lt;/strong&gt;), click on button “Choose Certificate”, browse for certificate file which you have exported in last enrollment step.     &lt;br /&gt;Note that after you select certificate, the password has to be entered, which will unlock the key. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_0510E380.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_5004544F.png" width="689" height="389" /&gt;&lt;/a&gt; &lt;/p&gt; Once you have entered the password, you will not be asked anymore to do that.   &lt;br /&gt;You can simply continue with development and deployment. Right mouse click on App-project&amp;#160; &lt;p&gt;, select store and then “Create App Packages”. In the next dialog choose “NO”, which means you are not going to publish the App in the store.    &lt;br /&gt;You just want to create the signed package.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_76D26A8F.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_6BA8E045.png" width="560" height="592" /&gt;&lt;/a&gt; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_32920343.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_6489A3CD.png" width="553" height="194" /&gt;&lt;/a&gt;     &lt;br /&gt;Now, select the destination folder of the package and architecture. If you don’t know how to choose proper architecture select “Neutral”. It will work on all architectures.&lt;/p&gt; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_2B72C6CB.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_725BE9C8.png" width="788" height="626" /&gt;&lt;/a&gt;   &lt;p&gt;The package is now created in previously specified folder.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_5240DD0B.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_471752C1.png" width="782" height="200" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Click on URL and notice following files:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_4B21A093.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_120AC391.png" width="343" height="144" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;If you execute (open) Add-AppDevPackage.ps1 the app will be installed.    &lt;br /&gt;That’s it. I hope this article will help to understand side-load deployment process, which is obviously not easy. In my opinion this process can and must be improved and simplified.     &lt;br /&gt;Deploying of an app must not be more complex than development of the app. On the other hand, Store-Concept is great example of simplicity. Unfortunately, deploying an app through store requires integration of your enterprise concept in the deployment process of Microsoft Store Apps via Store. In the real world this does not work, because every enterprise must be process owner of its own deployment process without dependency to any other.     &lt;br /&gt;Finally, many steps described&amp;#160; in this article do not have to be done by every developer or developer at all. Once you have certificate template and certificate deployment is very easy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=952055" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/WinRT/default.aspx">WinRT</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Devices+and+Services/default.aspx">Devices and Services</category></item><item><title>Which .NET features can I use and where?</title><link />http://developers.de/blogs/damir_dobric/archive/2014/05/08/which-net-features-can-i-use-and-where.aspx<pubdate>Thu, 08 May 2014 06:37:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:941077</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=941077</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2014/05/08/which-net-features-can-i-use-and-where.aspx#comments</comments><description>&lt;p&gt;Following table shows in which platform can be used some newest and some kind of architecturally most important features.   &lt;br /&gt;You should be aware if this when designing universal applications for Microsoft multiplatform.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="0"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;strong&gt;Feature&lt;/strong&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;&lt;strong&gt;.NET Framework&lt;/strong&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;&lt;strong&gt;Windows Store&lt;/strong&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;&lt;strong&gt;Silverlight&lt;/strong&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;&lt;strong&gt;Windows Phone&lt;/strong&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Core&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;LINQ&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;IQueryable&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;7.5 and higher&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Dynamic keyword&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;4.5 and higher&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Managed Extensibility Framework (MEF)&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Network Class Library (NCL)&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Serialization&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Windows Communication Foundation (WCF)&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Model-View-View Model (MVVM)&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;4.5 and higher&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;Data annotations&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;4.0.3 and 4.5+&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;XLINQ&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;4.0.3 and 4.5+&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;System.Numerics&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;√&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;&amp;#160;&lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=941077" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/cloud/default.aspx">cloud</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/azure/default.aspx">azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows+Phone/default.aspx">Windows Phone</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/WindowsPhone/default.aspx">WindowsPhone</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category></item><item><title>Where can I find more about new Windows Azure SDK2.3 features?</title><link />http://developers.de/blogs/damir_dobric/archive/2014/04/10/where-can-i-find-more-about-new-windows-azure-sdk2-3-features.aspx<pubdate>Thu, 10 Apr 2014 13:05:52 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:902561</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=902561</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2014/04/10/where-can-i-find-more-about-new-windows-azure-sdk2-3-features.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;On the last &lt;a href="http://www.buildwindows.com/"&gt;//build/&lt;/a&gt; few days ago, Microsoft has announced (and demonstrated) many improvements across all technology stack.            &lt;br /&gt;Please take a look on &lt;a href="http://msdn.microsoft.com/en-us/library/azure/dn655054.aspx"&gt;SDK 2.3 release notes&lt;/a&gt; for a list of official information.&lt;/p&gt;          &lt;p&gt;If you need&amp;#160; a more detailed recap of all important features this is the URL. You will find here also features related to &lt;a href="http://aka.ms/vs2013update2rc"&gt;Visual Studio 2013 Release 2 RC&lt;/a&gt;.            &lt;br /&gt;&lt;a href="http://aka.ms/azuresdk23blogpost"&gt;http://aka.ms/azuresdk23blogpost&lt;/a&gt;.            &lt;br /&gt;            &lt;br /&gt;And, don’t forget to take a look on the new preview portal&lt;/p&gt;          &lt;p&gt;&amp;#160;&lt;a&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_208E70A7.png" width="109" height="44" /&gt;&lt;/a&gt; &lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;         &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_43523915.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_7549D99F.png" width="244" height="158" /&gt;&lt;/a&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_43523915.png"&gt;&amp;#160;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=902561" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/cloud/default.aspx">cloud</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/azure/default.aspx">azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category></item><item><title>Microsoft Azure Service Bus: Receiving of messages from queue and topic with JavaScript</title><link />http://developers.de/blogs/damir_dobric/archive/2014/03/27/microsoft-azure-service-bus-receiving-of-messages-from-queue-and-topic-with-javascript.aspx<pubdate>Thu, 27 Mar 2014 07:47:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:879571</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>5</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=879571</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2014/03/27/microsoft-azure-service-bus-receiving-of-messages-from-queue-and-topic-with-javascript.aspx#comments</comments><description>&lt;p&gt;In the &lt;a href="http://developers.de/blogs/damir_dobric/archive/2014/03/18/windows-azure-service-bus-sending-the-message-to-queue-and-topic-with-javascript.aspx"&gt;previous post&lt;/a&gt; i described how to send messages to Service Bus queues and topic by using Java Script. In this post I will describe how to receive messages from queue and topic subscription.    &lt;br /&gt;To illustrate this, take a look on following example. Assuming that ’queue’ is a valid queue path like ‘myorg/myqueue/’ the function below will call &lt;em&gt;receiveMessage&lt;/em&gt; on module SB. After the function has completed    &lt;br /&gt;the callback will be invoked and message result (&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;messagingResult.body) &lt;/span&gt;will be injected as html (&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;$(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;#result&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;).html(..)&lt;/span&gt;.    &lt;br /&gt;This is how the API behind SB module is designed. Think about SB module as a Java Script SDK for Microsoft Azure Service Bus.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:460.6pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;           &lt;div class="Common"&gt;             &lt;div id="CommonContent"&gt;               &lt;div id="CommonContentInner"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;$(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;#btnReceive&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;).click(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;function&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; () {                   &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;SB.receiveMessage(queue, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;function&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; (messagingResult) {                   &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;$(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;#result&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;).html(messagingResult.body);                   &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;if&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; (messagingResult.properties != &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;null&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;) {                   &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;$(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;#msgId&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;).html(messagingResult.properties.MessageId);                   &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}                    &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;});                    &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;});&lt;/span&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;                   &lt;br style="mso-special-character:line-break;" /&gt;&lt;/span&gt;                  &lt;div class="CommonContentBox"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;                     &lt;br style="mso-special-character:line-break;" /&gt;&lt;/span&gt;&lt;/div&gt;               &lt;/div&gt;             &lt;/div&gt;           &lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;More over, after the message is received, you can grab several message properties also called &lt;strong&gt;BrokerProperties&lt;/strong&gt;. These properties are returned from Service Bus as    &lt;br /&gt;Response Header “&lt;strong&gt;BrokerProperties&lt;/strong&gt;”. The value of the named header is serialized as JSON as shown in following example:&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:460.6pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;           &lt;div class="Common"&gt;             &lt;div id="CommonContent"&gt;               &lt;div id="CommonContentInner"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;BrokerProperties: {                      &lt;br /&gt; &amp;quot;DeliveryCount&amp;quot;:1,                      &lt;br /&gt; &amp;quot;EnqueuedSequenceNumber&amp;quot;:0,                      &lt;br /&gt; &amp;quot;EnqueuedTimeUtc&amp;quot;:&amp;quot;Wed, 26 Mar 2014 21:06:17 GMT&amp;quot;,                      &lt;br /&gt; &amp;quot;MessageId&amp;quot;:&amp;quot;d738041df39c401e89b18dc335f5af24&amp;quot;,                      &lt;br /&gt; &amp;quot;SequenceNumber&amp;quot;:38,                      &lt;br /&gt; &amp;quot;SessionId&amp;quot;:&amp;quot;MySession&amp;quot;,                      &lt;br /&gt; &amp;quot;State&amp;quot;:&amp;quot;Active&amp;quot;,                      &lt;br /&gt; &amp;quot;TimeToLive&amp;quot;:922337203685.47754                      &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&amp;#160;&lt;/div&gt;             &lt;/div&gt;           &lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt; If you compare retrieved properties with the property set defined on &lt;strong&gt;BrokeredMessage&lt;/strong&gt; class in .NET you fill note that Java Script in the case above    &lt;br /&gt;contains a subset of properties of the .NET class.&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:460.6pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;           &lt;div class="Common"&gt;             &lt;div id="CommonContent"&gt;               &lt;div id="CommonContentInner"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_47357496.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;float:none;margin-left:auto;border-left:0px;display:block;margin-right:auto;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_7BD5D0D1.png" width="594" height="465" /&gt;&lt;/a&gt;                      &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;             &lt;/div&gt;           &lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;   &lt;br /&gt;Remember the class &lt;strong&gt;BrokeredMessage&lt;/strong&gt; has also the property called “Properties”, which can be used to attach an custom property to the message instance.    &lt;br /&gt;If such properties are used in the message they will be attached as extra response headers when receiving the message.    &lt;br /&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:460.6pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;           &lt;div class="Common"&gt;             &lt;div id="CommonContent"&gt;               &lt;p&gt;Content-Type: application/xml; charset=utf-8                 &lt;br /&gt;Server: Microsoft-HTTPAPI/2.0                  &lt;br /&gt;BrokerProperties: {&amp;quot;DeliveryCount&amp;quot;:1,&amp;quot;EnqueuedSequenceNumber&amp;quot;:0,&amp;quot;EnqueuedTimeUtc&amp;quot;:&amp;quot;Wed, 26 Mar 2014 21:06:17 GMT&amp;quot;,&amp;quot;MessageId&amp;quot;:&amp;quot;d738041df39c401e89b18dc335f5af24&amp;quot;,&amp;quot;SequenceNumber&amp;quot;:38,&amp;quot;SessionId&amp;quot;:&amp;quot;MySession&amp;quot;,&amp;quot;State&amp;quot;:&amp;quot;Active&amp;quot;,&amp;quot;TimeToLive&amp;quot;:922337203685.47754}                  &lt;br /&gt;&lt;strong&gt;Prop1: 100                   &lt;br /&gt;Prop2: &amp;quot;Halli Hallo&amp;quot;&lt;/strong&gt;                  &lt;br /&gt;Access-Control-Expose-Headers: Date,BrokerProperties,Prop1,Prop2                  &lt;br /&gt;Access-Control-Allow-Origin: &lt;a href="http://localhost"&gt;http://localhost&lt;/a&gt;                  &lt;br /&gt;Access-Control-Allow-Credentials: true                  &lt;br /&gt;Date: Wed, 26 Mar 2014 21:06:54 GMT                  &lt;br /&gt;Content-Length: 29 &lt;/p&gt;                &lt;p&gt;&amp;quot;i = 0, payload = 2072651487&amp;quot;&lt;/p&gt;                &lt;div id="CommonContentInner"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;             &lt;/div&gt;           &lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;   &lt;br /&gt;Following snippet shows the original response a some message. You can notice two properties: Prop1 and Prop2. The response shown above is a result    &lt;br /&gt;of following C# code, which sends the message:    &lt;br /&gt;&amp;#160;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:460.6pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;           &lt;div class="Common"&gt;             &lt;div id="CommonContent"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; msg = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;BrokeredMessage&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;(&lt;/span&gt;&amp;quot;i = 0, payload = 2072651487&amp;quot;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;),                  &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;#160; new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;DataContractJsonSerializer&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;typeof&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;))) { SessionId = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;MySession&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; };                 &lt;br /&gt;&amp;#160; msg.Properties.Add(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;Prop1&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;, 100);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;msg.Properties.Add(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;Prop2&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;quot;Halli Hallo&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;client.Send(msg);&lt;/span&gt;&lt;/div&gt;           &lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;Note that code above uses none default serializer. For more information about message serialization take a look &lt;a href="http://developers.de/blogs/damir_dobric/archive/2013/06/04/messaging-on-windows-rt.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;The Java script code in &lt;em&gt;SB&lt;/em&gt;.&lt;em&gt;receiveMessage&lt;/em&gt;&amp;#160; looks like shown below:    &lt;br /&gt;&amp;#160;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:460.6pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;           &lt;div class="Common"&gt;             &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:green;line-height:107%;mso-highlight:white;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Receives the message from the queue and deletes it in queue.&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;receiveMessage: &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;function&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; (entityName, callback) {                 &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; securityToken = getToken(entityName);                 &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; xmlHttpRequest = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; XMLHttpRequest();                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; receiveUri = getUri(entityName, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;head&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;xmlHttpRequest.open(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;DELETE&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;, receiveUri, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;true&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;xmlHttpRequest.setRequestHeader(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;Authorization&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;, securityToken);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;xmlHttpRequest.onreadystatechange = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;function&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; () {                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;if&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; (&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.readyState == 4) {                 &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; messagingResult;                 &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;if&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; (&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.status == 200) {                 &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; brokerProperties =                  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; eval(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;#39;(&amp;#39;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; + &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.getResponseHeader(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;BrokerProperties&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;) + &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;#39;)&amp;#39;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;              &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;brokerProperties.ContentType =                   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.getResponseHeader(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;Content-Type&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;messagingResult =                   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; MessagingResult(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;Success&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.status,                  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; brokerProperties, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.response);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;              &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;if&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; (&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.status == 204) {                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;messagingResult =                   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; MessagingResult(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;Empty&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;,                  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.status, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;null&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.response);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;else&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; {                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;messagingResult =                   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; MessagingResult(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;Failure&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;,                  &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.status, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;null&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.response);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}                  &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;callback(messagingResult);                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;};                  &lt;br /&gt;                  &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;xmlHttpRequest.send(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;null&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;);                 &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;           &lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;   &lt;br /&gt;For more information about missing functions like getToken and getUri please refer to &lt;a href="http://developers.de/blogs/damir_dobric/archive/2014/03/18/windows-azure-service-bus-sending-the-message-to-queue-and-topic-with-javascript.aspx"&gt;previous&lt;/a&gt; post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=879571" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/cloud/default.aspx">cloud</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/windows+azure/default.aspx">windows azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/ServiceBus/default.aspx">ServiceBus</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Microsoft+Azure/default.aspx">Microsoft Azure</category></item><item><title>Be aware of “await” lacks CS1998</title><link />http://developers.de/blogs/damir_dobric/archive/2014/03/04/be-aware-of-await-lacks-cs1998.aspx<pubdate>Tue, 04 Mar 2014 18:38:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:838889</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=838889</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2014/03/04/be-aware-of-await-lacks-cs1998.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;When working with “async” I figured out, that during refactoring process in development of components statistically “async” can often and implicitly happen. That means, that small changes in method signatures can cause changing of “async” behavior. Mostly developers should and aware of this, but such changes are mostly so silent, that unexpected behavioral changes might be often overseen.&lt;/p&gt;  &lt;p&gt;Here one example, which might be harmful, but it can be very dangerous:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;font color="#ff0000"&gt;warning CS1998: This async method lacks &amp;#39;await&amp;#39; operators and will run synchronously. Consider using the &amp;#39;await&amp;#39; operator to await non-blocking API calls, or &amp;#39;await Task.Run(...)&amp;#39; to do CPU-bound work on a background thread.&lt;/font&gt;      &lt;br /&gt;&lt;/em&gt;    &lt;br /&gt;What does this mean?&lt;/p&gt;  &lt;p&gt;Assume you have following code:&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;async&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; LoadDataAsync()     &lt;br /&gt;&amp;#160;&amp;#160; {       &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; 1.&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;await&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;this&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;.ViewData.Dal.LoadDataAsync();     &lt;br /&gt;      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160; 2.&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;//NEXT STATEMENT      &lt;br /&gt;&amp;#160;&amp;#160; }&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;     &lt;br /&gt;      &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;If you see this warning on method ,LoadDataAsync() then the line 1 will be executed and immediately after this line the line 2 will be executed.   &lt;br /&gt;Assuming that the method LoadDataAsync() is a&amp;#160; long-running method,&amp;#160; it will likely ends up after executing of next statement in the line 2, before long running of the method is finished. However, note you have put &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;await&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;which is statement that says “&lt;em&gt;Wait on LoadDataAsync() in line 1 to be executed and then execute next statement in line &lt;/em&gt;2.”. Depending on what you are doing in statement 2, the application might possible bind to none existing data are even crash.&lt;/p&gt;  &lt;p&gt;Following example shows a BAD implementation of the &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;async&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;method which will cause named warning.&lt;/p&gt; &lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;   &lt;p&gt;     &lt;br /&gt;&lt;span style="background:white;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;async&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; LoadDataAsync()     &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; t = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;(() =&amp;gt;     &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;// Some Long Running Code ..&lt;/span&gt;&lt;/span&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;});      &lt;br /&gt;      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;t.Start();      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}      &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;     &lt;br style="mso-special-character:line-break;" /&gt;The BAD thing in this example is putting of &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;async&lt;/span&gt; in front of &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;. If you do this, without of having any await in the method, you will get warning CS1998. To prevent warning simply remove &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;async&lt;/span&gt; . Unfortunately in the real life, you probably already implemented await inside of that method, but due same refactoring, you decided to implement awaiting code inside of&amp;#160; the task body and likely forgotten to remove &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;async&lt;/span&gt; .      &lt;br style="mso-special-character:line-break;" /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;The CORRECT implementation of this method looks like:&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;   &lt;p&gt;&lt;span style="background:white;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; LoadDataAsync()     &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; t = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Task&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;(() =&amp;gt;     &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;// Some Long Running Code ..&lt;/span&gt;&lt;/span&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;});      &lt;br /&gt;      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;t.Start();&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-highlight:white;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return t;&lt;/font&gt;      &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}      &lt;br /&gt;&lt;/span&gt;    &lt;p&gt;&lt;/p&gt;   &lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;Another interesting article for async best practices: &lt;a title="http://developers.de/blogs/damir_dobric/archive/2013/07/30/async-error-handling-recap.aspx" href="http://developers.de/blogs/damir_dobric/archive/2013/07/30/async-error-handling-recap.aspx"&gt;http://developers.de/blogs/damir_dobric/archive/2013/07/30/async-error-handling-recap.aspx&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;"&gt;&amp;#160;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=838889" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Core.Net/default.aspx">Core.Net</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/WinRT/default.aspx">WinRT</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category></item><item><title>Hosting Services in Windows Store Apps</title><link />http://developers.de/blogs/damir_dobric/archive/2013/12/20/hosting-services-in-windows-store-apps.aspx<pubdate>Fri, 20 Dec 2013 05:50:50 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:724077</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=724077</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2013/12/20/hosting-services-in-windows-store-apps.aspx#comments</comments><description>&lt;p&gt;When you see the title of this article, you will probably think that idea of the service which runs on device like surface sound a bit strange or even crazy.    &lt;br /&gt;But it is not strange, it is just crazy.     &lt;br /&gt;If you think about service as a peace of code running on some server and supposed to be consumed by some consumer, you are probably right.     &lt;br /&gt;The idea of a service which is running on the side of consumer is kind of wrong.     &lt;br /&gt;But if so, we&amp;#160; should stop to think traditional way. One software developer should always innovate things.     &lt;br /&gt;Assume the service is not supposed to be consumed by consumer. Think about service as a piece of code which can be accessed remotely to observer some data.&amp;#160; &lt;br /&gt;In the time of cloud computing we are more and more pushed in direction of totally distributed participants.     &lt;br /&gt;Participant is in this context defined as any application which connects via network to the system and participate on data exchange.     &lt;br /&gt;In such environment (called cloud) every participant can play a role of a service. Following picture show a number of devices.     &lt;br /&gt;If connected together they would build mesh of devices.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_4A2D0FD9.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_5EB25F57.png" width="644" height="396" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Most devices will not provide power of computing, but they can do many interesting task.    &lt;br /&gt;For example every simple smart phone can be used as GPS device, which can be accessed remotely. Similarly one microscope can be remotely access to provide current image.     &lt;br /&gt;Following this example, we could build the service which runs on smart phone and delivers in some interval the GPS location of the smart phone.     &lt;br /&gt;Or similarly, we could build the service to receive remotely command and provide Geo Location data on demand.     &lt;br /&gt;In both cases we have to explain device to act as a service. In this article we are more interested on accessing of a device remotely, because it is more difficult.     &lt;br /&gt;For the rest of this article we assume that device is running on Windows RT platform. In other words we want to build the WinRT app, which acts as a service.&lt;/p&gt;  &lt;p&gt;The idea is to build the service which symbolically implement application which can invoke some operation at the service side:    &lt;br /&gt;    &lt;br style="mso-special-character:line-break;" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;background:#e7e6e6;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-background-themecolor:background2;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-border-insideh:none;mso-border-insidev:none;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:469.8pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;         &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;GeoLocation &lt;/span&gt;serviceProxy.&lt;strong&gt;GetDeviceLocation&lt;/strong&gt;(instanceOfTypeX);             &lt;br style="mso-special-character:line-break;" /&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;On the service side we would usually implement operation as:    &lt;br /&gt;    &lt;br style="mso-special-character:line-break;" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;background:#e7e6e6;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-background-themecolor:background2;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-border-insideh:none;mso-border-insidev:none;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:469.8pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;         &lt;blockquote&gt;           &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;GeoLocation &lt;/span&gt;&lt;strong&gt;GetDeviceLocation&lt;/strong&gt;(&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;TypeX &lt;/span&gt;instance)               &lt;br /&gt;{               &lt;br /&gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; // service code …&lt;/p&gt;            &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return geoLocation;              &lt;br /&gt;}&lt;/p&gt;         &lt;/blockquote&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;br /&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;TypeX &lt;/span&gt;is some input argument in the operation, which the service logic might use.   &lt;p&gt;&lt;/p&gt;  &lt;p&gt;This service could be implemented as SOAP service (for example in WCF) or REST service by using of WebApi. In a case of SOAP service we would    &lt;br /&gt;(usually without of knowing it) implement Web Service API style called RPC.     &lt;br /&gt;In a case of WebApi we would implement resource API style. Most people speculate about which one is better or cooler.     &lt;br /&gt;Due explicate strong dependency of Consumer to the Service, in the world of total distribution I would say booth are not the best choice.     &lt;br /&gt;We should rather try to achieve the Message API style. Unfortunately I’m going to explain in this article why.     &lt;br /&gt;    &lt;br /&gt;The caller of the hypothetical service shown above service operation need to obtain some service URL. Unfortunately such URL is the biggest practical issue in this scenario.&amp;#160; &lt;br /&gt;To have URL of the service which runs on device, it would mean that service has an IP address. This is not impossible to make happen, but it complicates the environment unnecessary.     &lt;br /&gt;In the cloud mesh environment we usually also assume that participant in the systems are moving (mobile). Due this assumption they will not only change their location, but also their network (IP).     &lt;br /&gt;In this case no admin will run behind device to setup infrastructure (firewall, VPN and Co.).     &lt;br /&gt;So, we need a solution which assumes that devices will at least have an outbound connection to internet via HTTP:80.     &lt;br /&gt;This is our only requirement.     &lt;br /&gt;    &lt;br /&gt;Here is how to do it.     &lt;br /&gt;&lt;/p&gt; As next create Windows Store App in Visual Studio and add NuGet reference to package &lt;strong&gt;WindowsAzure.Messaging.Managed&lt;/strong&gt;.   &lt;br /&gt;This package brings messaging functionality in the WinRT platform. For more information take a look &lt;a href="http://developers.de/blogs/damir_dobric/archive/2013/06/04/messaging-on-windows-rt.aspx"&gt;here&lt;/a&gt;. Then we are going to implement the message listener which will listen for messages.   &lt;br /&gt;In our case the message will hold the&amp;#160; instance of type TypeX. Following example shows how to do this.   &lt;br style="mso-special-character:line-break;" /&gt;  &lt;p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;background:#e7e6e6;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-background-themecolor:background2;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-border-insideh:none;mso-border-insidev:none;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:469.8pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;         &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;             &lt;br /&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; m_QueueListener = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;Queue&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;(“myservice/listener”, m_ConnStr);&lt;/span&gt;               &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; StartServiceListener()              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; m_QueueListener&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.OnMessage((msg) =&amp;gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;try&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; (msg != &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;null&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;){              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;TypeX&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; instanceOfTypeX = msg.GetBody&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;TypeX&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;&amp;gt;();              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;GeoLocation &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;loc =              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;service.GetDeviceLocation(instanceOfTypeX); &lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;sendResponse(loc); &lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;catch&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{               &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}               &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;});               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/span&gt;             &lt;br style="mso-special-character:line-break;" /&gt;            &lt;br style="mso-special-character:line-break;" /&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;  &lt;p&gt;On WindowsRT we could start the service as a background worker if the application does not need UI. Somewhere in the code service will be    &lt;br /&gt;started by invoking of method &lt;/p&gt; &lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;StartServiceListener()&lt;/span&gt;   &lt;p&gt;.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;  &lt;p&gt;That method enters the message pump loop, which listens for mes&lt;/p&gt;  &lt;p&gt;sages sent to the queue “&lt;/p&gt; &lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;mso-fareast-font-family:calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa;"&gt;myservice/listener&lt;/span&gt;&lt;/span&gt;   &lt;p&gt;”.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;  &lt;p&gt;After the message is received it is materialized to instance of type TypeX and passed as input argument to implementation of GetDeviceLocation().    &lt;br /&gt;This method plays the role of the service operation from the point of view of the caller. But notice, unlikely to SOAP RPC we use the message as a contract.     &lt;br /&gt;It is even more interesting, that caller and service are totally decoupled. It means you can stop the service and the message will still arrive after the service is started,     &lt;br /&gt;even if the service is started on some other node implemented in JAVA or anything else.     &lt;br /&gt;After the operation has completed we can send the response to the response queue by invoking method sendResponse.     &lt;br /&gt;Following example shows how to implement this method:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;background:#e7e6e6;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-background-themecolor:background2;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-border-insideh:none;mso-border-insidev:none;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:469.8pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;         &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;             &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;m_QueueResponse = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;Queue&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;(“myservice/receiver”, m_ConnStr);&lt;/span&gt;             &lt;br /&gt;            &lt;br /&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; sendResponse(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;object&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; response)              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{ &lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;await&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; queue.SendAsync(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;Message&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;(response&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;)&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;);              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}               &lt;br style="mso-special-character:line-break;" /&gt;              &lt;br style="mso-special-character:line-break;" /&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;/p&gt;          &lt;p&gt;&amp;#160;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;  &lt;p&gt;Now you can implement the consumer of this service in almost any technology. Windows Azure Service Bus supports at the moment of writing of this article following protocols:    &lt;br /&gt;    &lt;br /&gt;- SBNP (native TCP protocol used with .NET SDK)     &lt;br /&gt;- &lt;a href="http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol"&gt;AMQP&lt;/a&gt; native TCP protocol introduced in &lt;a href="http://www.windowsazure.com/en-us/develop/net/how-to-guides/service-bus-amqp-overview/"&gt;Service Bus 2.0&lt;/a&gt;     &lt;br /&gt;- HTTP/REST     &lt;br /&gt;    &lt;br /&gt;This means that two participant can communicate to each other even if they are implemented in different technologies and/or talk different protocols.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;However, before queues can be used, somebody have to create them. Following example shows how to:     &lt;br /&gt;    &lt;br /&gt;- Create queues     &lt;br /&gt;- Create the key     &lt;br /&gt;- Setup SharedAccessKey permissions     &lt;br /&gt;- Create connection string&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;/p&gt;  &lt;p&gt;Note that this example is build in .NET for Desktop version of Windows.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-top:medium none;border-right:medium none;background:#e7e6e6;border-collapse:collapse;border-bottom:medium none;border-left:medium none;mso-background-themecolor:background2;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:1184;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-border-insideh:none;mso-border-insidev:none;" cellspacing="0" cellpadding="0"&gt;     &lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;       &lt;td style="border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;width:469.8pt;border-bottom:windowtext 1pt solid;padding-bottom:0in;padding-top:0in;padding-left:5.4pt;border-left:windowtext 1pt solid;padding-right:5.4pt;mso-border-alt:solid windowtext .5pt;"&gt;         &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;             &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;static&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; prepareSystem()              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; key = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;SharedAccessAuthorizationRule&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.GenerateRandomKey();              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;             &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; (namespaceManager.QueueExists(m_qName))              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;namespaceManager.DeleteQueue(m_qName);               &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;QueueDescription&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; qDesc1 = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;QueueDescription&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;(m_qName);              &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;qDesc1.Authorization.Add(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;SharedAccessAuthorizationRule&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#a31515;"&gt;&amp;quot;&lt;span style="background:yellow;mso-highlight:yellow;"&gt;device_send_listen&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;, key, &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;               &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;[] { &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.Listen, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.Send }));              &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;span style="background:lime;mso-highlight:lime;"&gt;connStr&lt;/span&gt; = &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;String&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.Format(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#a31515;"&gt;&amp;quot;Endpoint=sb://YOURNAMSPACE.servicebus.windows.net/;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;SharedAccessKeyName=&lt;span style="background:white;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="background:yellow;mso-highlight:yellow;"&gt;device_send_listen&lt;/span&gt;;SharedAccessKey={0}&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;, key);              &lt;br /&gt;              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/span&gt; &lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p class="MsoNormal"&gt;   &lt;br style="mso-special-character:line-break;" /&gt;The code shown above shows how to create a queue with Listen and Send permission. We could also append permissions more granularly if required:&lt;/p&gt; &lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;qDesc1.Authorization.Add(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;     &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;SharedAccessAuthorizationRule&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#a31515;"&gt;&amp;quot;&lt;span style="background:yellow;mso-highlight:yellow;"&gt;device_send&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;, key2, &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;[] { &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.Send }));&lt;/span&gt;   &lt;p class="MsoNormal"&gt;pa permissions:    &lt;br /&gt;    &lt;br /&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;qDesc1.Authorization.Add(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;       &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;SharedAccessAuthorizationRule&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#a31515;"&gt;&amp;quot;&lt;span style="background:yellow;mso-highlight:yellow;"&gt;device_send&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;, key2, &lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;       &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:blue;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;[] { &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:#2b91af;"&gt;AccessRights&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;"&gt;.Send }));      &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;Examples and ideas shown in this article are today all supported by Windows RT and Windows Azure Service Bus. As a developer you will agree, that this might not be a big implementation deal.    &lt;br /&gt;However, most of as will probably not immediately notice that examples from above hide in detail huge shift in thinking about how to connect things.     &lt;br /&gt;If you have carefully read, you figured out that we use message API style instead of all popular tradition API styles.&amp;#160; &lt;br /&gt;This is not new idea, but right now can be achieved in its full power. Notice also that queue mechanism bring on table things like CQRS and support for almost all important integration patterns (i.e. Retry, Pub/Sub etc.). All this helps you to build powerful applications in shorter time.     &lt;br /&gt;Last but not least, note that can even communicate through closed inbound connections.     &lt;br /&gt;I think, this will open a wide range of new innovations soon. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&amp;#160;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;   &lt;br style="mso-special-character:line-break;" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=724077" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/cloud/default.aspx">cloud</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/azure/default.aspx">azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/windows+azure/default.aspx">windows azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/ServiceBus/default.aspx">ServiceBus</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category></item><item><title>What is “RyuJIT”?</title><link />http://developers.de/blogs/damir_dobric/archive/2013/10/22/what-is-ryujit.aspx<pubdate>Tue, 22 Oct 2013 06:11:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:620617</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=620617</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2013/10/22/what-is-ryujit.aspx#comments</comments><description>&lt;p&gt;.NET x86 JIT-er, was originally optimized to produce code quickly so that the program starts up fast. However at that point of time x64 architecture was mostly used for server, because it was just expensive.   &lt;br /&gt;Because of that .NET 64-bit JIT-er was originally designed to produce efficient code throughout the long run of a server process. That means 64 JIT-er was never really optimized for fast start-up.    &lt;br /&gt;Today 64-bit computing become the mainstream. All machines today ship with more than or at least 4 GB of RAM. Even some smart phones use 64 architecture, although they do not need to address 64 RAM space (at least not yet). &lt;/p&gt;  &lt;p&gt;.NET Code Generation Team has implemented the new JIT compiler codenamed “RyuJIT”. The new compiler is twice fast as the old one. Because start-up time of one .NET application depends on many complex factors, a twice faster compiling will lead to approximately 30% faster .NET application start-up. This is really great news for .NET community. 30% is in this area hard to achieve.   &lt;br /&gt;    &lt;br /&gt;But, this is not all good news. As the first JIT compiler was done it was the x86&amp;#160; compiler. The came x64 compiler and then MDIL (JIT for Windows Phone). But today we have Windows RT too. So, JIT for ARM was need to. As you see, there are more than one JIT compiler. You might think this is good. It is good from some point of view. Unfortunately all JIT compilers have been different branches which didn’t share lot of same code base. This was very huge limitation factor from the innovation point of view.    &lt;br /&gt;With RyuJIT all MDIL, ARM, x86 and x64 are one code base. This will make easy innovation progress in the future.    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;How to activate RyuJIT?&lt;/strong&gt;    &lt;br /&gt; If you just want to enable RyuJIT for one application only, then set an environment variable: COMPLUS_AltJit=*.     &lt;br /&gt;If you want to enable RyuJIT for machine, then set the registry key HKLM\SOFTWARE\Microsoft\.NETFramework\AltJit to the string &amp;quot;*&amp;quot;.     &lt;br /&gt;In both cases 64-bit CLR will redirect to new &lt;strong&gt;RyuJIT&lt;/strong&gt; instead of the old one &lt;strong&gt;JIT64&lt;/strong&gt;.     &lt;br /&gt;    &lt;br /&gt;Note that both methods do just temporary settings—change. They do not make any active changes to your machine. &lt;/p&gt;  &lt;p&gt;You can download CTP version &lt;a href="http://download.microsoft.com/download/4/2/8/428FCB2F-F63A-46F6-838F-069BB87875A1/RyuJITCTP1.msi"&gt;&lt;font color="#0000ff" size="5"&gt;here&lt;/font&gt;&lt;/a&gt; for 64-bit editions of Windows 8.1 or Windows Server 2012 R2.    &lt;br /&gt;Related&amp;#160; Blog: &lt;a title="http://blogs.msdn.com/b/clrcodegeneration/" href="http://blogs.msdn.com/b/clrcodegeneration/"&gt;http://blogs.msdn.com/b/clrcodegeneration/&lt;/a&gt;    &lt;br /&gt;You can send mail at &lt;a href="mailto:ryujit@microsoft.com"&gt;ryujit@microsoft.com&lt;/a&gt; . The team wants to hear from you!    &lt;br /&gt;More about RyuJIT: &lt;a title="http://blogs.msdn.com/b/dotnet/archive/2013/09/30/ryujit-the-next-generation-jit-compiler.aspx" href="http://blogs.msdn.com/b/dotnet/archive/2013/09/30/ryujit-the-next-generation-jit-compiler.aspx"&gt;http://blogs.msdn.com/b/dotnet/archive/2013/09/30/ryujit-the-next-generation-jit-compiler.aspx&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Honestly, isn’t this an important step for .NET? I think, It is. Who knows, WinFX as a core of operative system might be now more realistic? If some can make JavaScript as a “cpre”, then why not .NET (WinFX)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=620617" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Core.Net/default.aspx">Core.Net</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category></item><item><title>Exchanging messages between devices and services.</title><link />http://developers.de/blogs/damir_dobric/archive/2013/10/08/exchanging-messages-between-devices-and-services.aspx<pubdate>Tue, 08 Oct 2013 17:57:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:598747</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=598747</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2013/10/08/exchanging-messages-between-devices-and-services.aspx#comments</comments><description>&lt;p&gt;In this post I will provide few example which shows how to exchange messages between devices and service. In all examples, we will assume that service is implemented in .NET for Windows System32 (today known as desktop) and device is implemented in .NET for Windows RT. Please note that there are many other ways like REST or SOAP which can be used to connect any kind of two participants. Assuming that we expect a high-scale or even “unknown scale” it will be difficult to connect all this things in internet by leveraging&amp;#160; common techniques. However the scale is not only issue in this context. Think about pushing of messages to device which are not publicly visible (hosted on private IP behind&amp;#160; NAT etc.).    &lt;br /&gt;If you want to know more about this please take a look on &lt;a href="http://blogs.msdn.com/b/clemensv/archive/2013/06/03/internet-of-things-is-vpn-a-false-friend.aspx"&gt;this&lt;/a&gt; post. Clemens has briefly described how “things” might/should work. I strongly believe that we will adopt such or similar ways to connect “things” to each other. Unfortunately we are today probably&amp;#160; bit too early. I learned that Hardware Engineering in context of software evolution is in majority of cases the special world of proprietary software solutions from the point of view of a software engineer. This is just my personal my lesson learned. &lt;/p&gt;  &lt;p&gt;Example shown in this post shows communication between participants based on Message API style. They will exchange messages through service bus queues.    &lt;br /&gt;To be more concrete the service provides API messaging implemented in &lt;strong&gt;WindowsAzure.ServiceBus&lt;/strong&gt; assembly. The simplification of the more or less same functionality is provided by messaging API for Windows RT in assembly &lt;strong&gt;Windows.Messaging.Managed&lt;/strong&gt;.     &lt;br /&gt;    &lt;br /&gt;However you have to be aware of one important thing, which is by design in these two assemblies different. Windows.Messaging.Managed uses by default &lt;strong&gt;DataContractJsonSerializer&lt;/strong&gt; for serialization of messages (invoke of Send method) and for deserialization of message body (calling of Receive method). In contrast, &lt;strong&gt;WindowsAzure.ServiceBus&lt;/strong&gt;&amp;#160; uses as default serializer &lt;strong&gt;DataContractSerializer&lt;/strong&gt;.     &lt;br /&gt;In other words, &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/Untitled_5F00_014F0BEA.png"&gt;&lt;img title="Untitled" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="Untitled" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/Untitled_5F00_thumb_5F00_00E2D8F5.png" width="644" height="355" /&gt;&lt;/a&gt;     &lt;br /&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Following example shows how to send the message form service (Windows System32 (desktop)) to device running on Windows RT.&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;static&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; SendFromServiceToDevice()              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;QueueClient&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; client = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;QueueClient&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.CreateFromConnectionString(m_DeviceConnStr, m_qName);              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&lt;/span&gt;               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;for&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; (&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;int&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; i = 0; i &amp;lt; 10; i++)              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; num = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;Random&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;().Next();              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;Console&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;.WriteLine(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;Message {0} sent. {1}&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;, num, i);              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; msg = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;BrokeredMessage&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;i = &amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; + i.ToString() + &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;, payload = &amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; + num.ToString(),              &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;DataContractJsonSerializer&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;typeof&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;))) { SessionId = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#a31515;line-height:107%;mso-highlight:white;"&gt;&amp;quot;MySession&amp;quot;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; };              &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;client.Send(msg);               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}               &lt;br /&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/span&gt; &lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;As you see the code above inject explicitly&amp;#160; &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;DataContractJsonSerializer &lt;/span&gt;which will be used by serialization of the message.     &lt;br /&gt;This code will also use SBMP (original native SB protocol) or AMQP protocol (depending on connection string – see &lt;a href="http://www.windowsazure.com/en-us/develop/net/how-to-guides/service-bus-amqp/"&gt;amqp overview&lt;/a&gt;&amp;#160; and &lt;a href="http://channel9.msdn.com/Blogs/Subscribe/Announcing-the-General-Availability-of-AMQP-10-in-Windows-Azure-Service-Bus"&gt;video&lt;/a&gt;).     &lt;br /&gt;If you send the message this way to device, on the device side you do not have to implement any special message handling. Your code to receive this message is very simple:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;static&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; ReceiveFromeServiceAtDevice() &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;{              &lt;br /&gt;&amp;#160;&amp;#160; m_Queue = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;Queue&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(m_QueueName, m_ConnStr);&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;color:black;line-height:107%;"&gt;              &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;#160;&amp;#160; var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; msg = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;await&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; m_Queue.ReceiveAsync&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;gt;();              &lt;br /&gt;} &lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;   &lt;br /&gt;But, what if there another service which is implemented as Windows system32 application, which should receive this message?     &lt;br /&gt;In this case you cannot receive the same message as you would usually do it. Following code will fail with some very strange SerializationException:     &lt;br /&gt;&lt;em&gt;&lt;font color="#ff0000"&gt;       &lt;br /&gt;”There was an error deserializing the object of type System.String. The input source is not correctly formatted.”         &lt;br /&gt;&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;static&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; ReceiveAtServiceFromServiceBAD() &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;{              &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;#160; var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; client = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;QueueClient&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;.CreateFromConnectionString(cs, qName, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;ReceiveMode&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;.ReceiveAndDelete);              &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;#160; var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; m = client.Receive();              &lt;br /&gt;}&lt;/span&gt; &lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;To make it working you can explicitly specify the serializer, which will be used to deserialize message:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;static&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; ReceiveAtServiceFromServiceOK() &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;{              &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;#160; var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; client = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;QueueClient&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;.CreateFromConnectionString(cs, qName, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;ReceiveMode&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;.ReceiveAndDelete);              &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;#160; var&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; st = m.GetBody&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;DataContractJsonSerializer&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;typeof&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;)));              &lt;br /&gt;}&lt;/span&gt; &lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;Following code shows how to inject serializer in windows store app. As firts, you have to receive message as native &lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;Message&lt;/span&gt;. The type Message is     &lt;br /&gt;simplification of type &lt;strong&gt;BrokeredMessage&lt;/strong&gt;.&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;public&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;static&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; ReceiveFromeServiceAtDevice() &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;{&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;&amp;#160; Message&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; msg = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;await&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; m_Queue.ReceiveAsync&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;Message&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;gt;();              &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;&amp;#160; string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; strMsg = msg.GetBody&amp;lt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;&amp;gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt; System.Runtime.Serialization.&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;line-height:107%;mso-highlight:white;"&gt;DataContractSerializer&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;typeof&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;line-height:107%;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;)));&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;}&lt;/span&gt; &lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;Last, but not least is the example which shows how device (windows store app) can inject serializer:&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;private&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;async&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;void&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; Button_Click_5(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;object&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; sender, &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;RoutedEventArgs&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; e)&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;{ &lt;/span&gt;            &lt;p&gt;&lt;/p&gt;         &lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;Queue&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; queue = &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;Queue&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;(m_QueueName, m_ConnStr);&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;#160; &lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal" style="margin-bottom:0pt;line-height:normal;mso-layout-grid-align:none;"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;await&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; queue.SendAsync(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; &lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;Message&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;(m_Txt.Text,&amp;#160; &lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt; System.Runtime.Serialization.&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:#2b91af;mso-highlight:white;"&gt;DataContractSerializer&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;typeof&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;(&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:blue;mso-highlight:white;"&gt;string&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;))));&lt;/span&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;mso-highlight:white;"&gt;&amp;#160; &lt;/span&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size:9.5pt;font-family:consolas;background:white;color:black;line-height:107%;mso-highlight:white;"&gt;}&lt;/span&gt; &lt;/p&gt;          &lt;p&gt;&lt;/p&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;  &lt;p&gt;This post is also related to following article: &lt;a title="http://developers.de/blogs/damir_dobric/archive/2013/06/04/messaging-on-windows-rt.aspx" href="http://developers.de/blogs/damir_dobric/archive/2013/06/04/messaging-on-windows-rt.aspx"&gt;http://developers.de/blogs/damir_dobric/archive/2013/06/04/messaging-on-windows-rt.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=598747" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/cloud/default.aspx">cloud</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/azure/default.aspx">azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/windows+azure/default.aspx">windows azure</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/ServiceBus/default.aspx">ServiceBus</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category></item><item><title>Windows Store App does not pass certification test due to long file path?!</title><link />http://developers.de/blogs/damir_dobric/archive/2013/10/02/windows-store-app-does-not-pass-certification-test-due-to-long-file-path.aspx<pubdate>Wed, 02 Oct 2013 06:39:21 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:588676</guid><dc:creator>Damir Dobric</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/damir_dobric/rsscomments.aspx?PostID=588676</wfw:commentrss><comments>http://developers.de/blogs/damir_dobric/archive/2013/10/02/windows-store-app-does-not-pass-certification-test-due-to-long-file-path.aspx#comments</comments><description>&lt;h4&gt;&amp;#160;&lt;/h4&gt;  &lt;p&gt;When deploying your app it can happen that you want to publish the update of the app, but certification/publishing fails due the length of the name of some assembly. This happened to as after we implemented support for notification hubs. That means we added assembly Microsoft.WindowsAzure.Messaging.Managed.dll, which has pretty long name. Here is the error which you will see after certification toolkit has checked the application:   &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;FAILED&lt;/b&gt;&lt;/p&gt;    &lt;p&gt;Performance launch&lt;/p&gt;    &lt;ul&gt;     &lt;li&gt;       &lt;p&gt;Error Found: The performance launch test collected the following results:.&lt;/p&gt;        &lt;ul&gt;         &lt;li&gt;The Native Image Generator failed due to long file path for file C:\Tfs\TfsPreview\SecurityNewsApp\SecurityNews.App\bin\Debug\AppX\Microsoft.WindowsAzure.Messaging.Managed.dll&lt;/li&gt;       &lt;/ul&gt;     &lt;/li&gt;      &lt;li&gt;       &lt;p&gt;Impact if not fixed: Application launch time is important for creating a fast and fluid experience for the user. This app will not be accepted by the Windows Store. &lt;/p&gt;     &lt;/li&gt;      &lt;li&gt;       &lt;p&gt;How to fix: You should ensure that your app’s performance is consistent across different machine configurations and does not exceed the minimum requirements or it will potentially fail during Windows store onboarding. The informational metrics can provide insight into areas that could help improve your app’s performance, but do not impact your apps acceptance by the Windows Store. See link below for more information:          &lt;br /&gt;&lt;a href="http://go.microsoft.com/fwlink/p/?LinkID=246544"&gt;Performance Best Practices &lt;/a&gt;          &lt;br /&gt;&lt;a href="http://go.microsoft.com/fwlink/?linkid=246572"&gt;Known issues in native image generator &lt;/a&gt;&lt;/p&gt;     &lt;/li&gt;   &lt;/ul&gt;   &lt;p&gt;To solve the problem, create an empty file &lt;strong&gt;nonegen.txt&lt;/strong&gt; and add it to project as shown below:    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_661872E6.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb_5F00_50BABD7E.png" width="303" height="187" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This file will prevent the NGEN.EXE to generate the native code during installation of the app. In fact NGEN is the guy who prevents you to have name of the package longer than 88 characters. But please note that excluding of NGEN from build process will slow down startup of the app. In most cases this is not an issue, but sometimes it can be.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;More information about this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/2716152"&gt;http://support.microsoft.com/kb/2716152&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=588676" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/damir_dobric/archive/tags/METRO/default.aspx">METRO</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Windows/default.aspx">Windows</category><category domain="http://developers.de/blogs/damir_dobric/archive/tags/Apps+and+Devices/default.aspx">Apps and Devices</category></item></channel></rss>