502.3

An HTTP status code of 502 – Bad Gateway means “The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.”  I interpret that to mean that there is a server (server A) between my client and the server (server B)…


How to Convince Your Management to Upgrade to Visual Studio 2017 for C# and C++ Developers

Have you tried Visual Studio 2017 at home and want to use it at work? Here are eight reasons to upgrade today that you can share with your management: Faster Than Ever Efficient Code Navigation Refactorings and Quick Actions Additions to Core Editor Functionality Debugging Improvements New and Refreshed Unit Testing Experience Code Style Configuration…


How to Convince Your Management to Upgrade to Visual Studio 2017 for C# and C++ Developers

Have you tried Visual Studio 2017 at home and want to use it at work? Here are eight reasons to upgrade today that you can share with your management: Faster Than Ever Efficient Code Navigation Refactorings and Quick Actions Additions to Core Editor Functionality Debugging Improvements New and Refreshed Unit Testing Experience Code Style Configuration…


Detouring code

  Microsoft Detours from Microsoft Research is a powerful technology to intercept operating system function calls and detour the call to your own code. This enables:  1.    Diagnostics: you can log callers, parameters2.    Replace functionality completely: the caller calls the WinAPI “MessageBox”, but it calls your version instead.3.    Modify functionality: perhaps change some parameters to…


Find method parameters with WinDbg

I wrote this article, see the bottom where I do the memory dump analysis and wanted to expand on it some. Simply, if you are running managed code then you can decompile the source and see what the value of the Int32 passed to the Sleep() method, Figure 1.  I explained how to save the…


Phone Call Transcription and Insights with Video Indexer and Dynamics 365 (Part 1)

In many contact centers, the telephone continues to be one of the primary channels of engagement for customers. Frequently, the only insights we will have about the nature of a call that has taken place will be based on the typed notes or other data manually entered by the contact center agent. By leveraging Microsoft’s…


New GitHub repository for Open source C# utilities and concurrent lock dictionary

It’s been a while that I wanted to share some generic purpose utility classes and C# patterns back to the software engineering community. And today I finally got my act together and started this new GitHub repository with an initial couple of classes. The main class is usable as-is and solves a real-world challenge of…


Shared PCH usage sample in Visual Studio

This post was written by Olga Arkhipova and Xiang Fan Oftentimes, multiple projects in a Visual Studio solution use the same (or very similar) precompiled headers. As pch files are often big and building them takes a significant amount of time, this leads to the popular question: is it possible for several projects to use the same pch…

2

ASP.NET Compilation Azure App Service, Web Project, Web Site

There are numerous flavors of ASP.NET modules, for example Web Forms (Web Sites and Web Applications), Web Pages, Model-View-Controller (MVC) and the newest one Core.  In this article I want to discuss some learnings about the difference between the compilations of an ASP.NET Web Site (Figure 1) and an ASP.NET Web Application (Figure 2). Figure…