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…


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

Hello everyone, The other day a customer wanted to classify his documents using the File Resource Manager of Windows Server 2008 R2. He needed to classify a huge amount of files with dynamic values in a short amount of time. He found that opening the files programmatically, one by one, writing their classification properties and…


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: https://github.com/helgemahrt/EnhancedApplicationInsights/blob/master/helgemahrt.EnhancedAI/Shared/TelemetryProcessors/ExceptionTelemetryEnhancer.cs Additionally, I packed it into a NuGet package, which you can find here: https://www.nuget.org/packages/helgemahrt.EnhancedAI 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…