Azure Active Directory B2C and Azure Functions

Hello everyone, In the light of my recent post about B2C and ASP.NET Core web APIs, I thought I’d shed some light on how to make Azure Functions work with B2C, because it may not be immediately obvious from the portal’s interface. Actually, all the information is already in this article, and it still applies:…


Azure Active Directory B2C: Build an ASP.NET Core MVC web API

Hello everyone, [Update]: I shared a sample solution on GitHub:   The Azure Active Directory B2C documentation features a list of awesome quick-start guides for different scenarios: Unfortunately, there are only guides for good old .NET – but none about .NET Core yet (at least not at the time of writing). If you…


Reducing the volume (and cost) of data sent to Application Insights

Hello everyone, In a project I have been working on recently we relied on Application Insights to gather trace logging on the data which was being processed in our system. To achieve 100% traceability we disabled any kind of sampling on the client side and set Application Insights to ingest 100% of the data. After…


Richer exception details in Application Insights (custom exceptions!)

Hello everyone, [Update]: I thought a great place for this code to run would be a telemetry processor, so I created one. I shared it on GitHub: Additionally, I packed it into a NuGet package, which you can find here: While working on a project recently I encountered a situation where we needed…


Rebranding my blog

Hello everyone, In 2014 I changed into the Windows Reliability support team within Microsoft, leaving behind the development world for a while, and stopped posting here. I have recently moved on from that position – returning to the light – and I expect to be blogging more often again. I am now a Premier Field Engineer in the Modern…


My experience with .NET Native Preview

Hello everyone, I just published this new post on our team blog over here: Cheers, Helge Mahrt


Failed the WACK Test – How do I get more information?

  Hello everyone, So you finished your Windows Store app and are eager to get it into the Store – but it failed the Windows App Certification Kit (WACK) test and the results do not provide sufficient information about the reason of the failure. What can you do to get more details? The first thing…


Asynchronous Programming in .NET 4.5 – in Spanish

Hello everyone, My colleague José Ortega and I just published some articles about the new .NET 4.5 keywords await and async, and about the Task Parallel Library (TPL). As they are in Spanish we put them on his blog. If you are interested, please have a look here: Cheers, Helge Mahrt


Be careful when making DataTransferManager.DataRequested an async function

Hello everyone, Update: Thanks to Nigel Sampson for correcting my post. 🙂 As you probably already know, .NET Framework 4.5 introduced two new keywords: async and await. (Look here for information about how to use them.) If you are adding the possibility to share content of your Windows Store application, you will have to implement…


How to avoid “The directory data type cannot be converted to/from a native DS data type” (0x8000500C) in managed code

Hello everyone, We may find ourselves in the situation where we need to access custom properties that have been defined for objects in our Active Directory. However, using the managed class DirectoryEntry we may receive an exception with the error code 0x8000500CL when accessing the custom property the following way: myDirectoryEntry.Properties[“myProperty”] As the error text…