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:…

15

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

Hello everyone, [Update]: I shared a sample solution on GitHub: https://github.com/helgemahrt/aspnetcore-api-with-b2c   The Azure Active Directory B2C documentation features a list of awesome quick-start guides for different scenarios: https://docs.microsoft.com/en-us/azure/active-directory-b2c/ 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…

13

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…

2

TFS 2010: An error occurred while validating. HRESULT = ‘8000000A’

Hello everyone, I’ve had a few cases already, where our customers came across a rare problem: They were building Visual Studio Installer projects with Team Build of Team Foundation Server 2010 and the build failed with the error: “An error occurred while validating. HRESULT = ‘8000000A’”. When running the build process again, it usually succeeded. The…

2

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…

1

File Server Resource Manager: Creating a custom classification module – Registration

Hello everyone, This is part 3 of my mini-series on how to create a custom file classification module that can be run by the File Server Resource Manager which ships with Windows Server 2008 R2. (If you missed the other parts, you can return to the index by clicking here)   Registering the Classification Module…


WPF ignoring BiDi control characters

Hello everyone, Have you ever tried using the following BiDirectional (Disclaimer: The content linked here is not from Microsoft: http://en.wikipedia.org/wiki/Bi-directional_text http://unicode.org/reports/tr9/) control characters in WPF? LRM (U+200E, Left-To-Right Mark) LRE (U+202A, Left-To-Right Embedding) LRO (U+202D, Left-To-Right Override) PDF (U+202C, Pop Directional Formatting) If the answer is yes, you will have noticed that WPF is completely…


File Server Resource Manager: Creating a custom classification module – Introduction

Hello everyone, This is the first part of my mini-series on how to create a custom file classification module that can be run by the File Server Resource Manager which ships with Windows Server 2008 R2. (If you missed the other parts, you can return to the index by clicking here)   Introduction What is…


Problem running decoupled WMI providers simultaneously

Hello everyone, The other day, I had a customer who implemented a decoupled WMI provider in her application. She was running two instances simultaneously and when calling a function of the WMI provider, one of the two instances would crash with the following error message: Non-static method requires a target. The process that crashed would…


How to listen for Printer Connections?

Hello everyone, The other day, a customer wanted to listen (in C++) for newly added printers. He was trying to use FindFirstPrinterChangeNotification but was never notified. It turned out that he was adding network printers, which belonged to a different print server (effectively creating a “Printer Connection”) and that FindFirstPrinterChangeNotification only works for printers belonging…