CORS a WebAPI

V rámci solution máme dva webové projekty – Web (javascriptová single-page aplikace) a WebAPI(backend s API). v ASP.NET Core 2.0. Řešili jsme problém, že nám nefungoval spolehlivě CORS – javascriptové requesty z Webu nedostávaly správné odpovědi od WebAPI. Chovalo se to velmi podivně i přesto, že lokálně vše fungovalo, a to i když aplikace běžely na různých portech.


Azure Developer – Now Service Fabric is going open source

Yes, that’s right – Now Service Fabric is going open Source and it was announced by Service Fabric team. Please refer our earlier blogpost regarding the same.  Service Fabric is going open source under the MIT license and over the coming months we will be transitioning to a completely open development process on GitHub. Also…


Order of Precedence when Configuring ASP.NET Core

In this post, Premier Developer Consultant Randy Patterson introduces the new configuration API for ASP.NET Core and its order of precedence. In previous version of ASP.NET, configuration was primarily handled by the ConfigurationManager class. This class typically obtained the user configurable settings from the AppSettings section located in the XML file web.config. While these limited…


Friday Five: Diversity, Roles & Responsibilities In Tech, And More

Without Capes: The Superheroes I Look Up To Becky Benishek is a second-year Microsoft Office Servers & Services MVP in the United States. At the Crisis Prevention Institute, she drives engagement on two Yammer External Networks that provide professional learning opportunities to customers. She’s also a children’s book author, builds Lego structures, and has a…


Server Error 0x800004005 Request timed out.

I wrote this post and this lab about the impact of having debug=true in your web.config file.  The fact is, when you are running in a production environment, you do not want to have debug=true.  However, I was writing a series of NETSH tracing posts: Capturing a NETSH network trace Analyze NETSH traces with Wireshark…


Celebrate MVPs By Checking Out The Friday Five!

#Microsoft365 Day 124: Capture and Share Contacts with Office 365 Tracy van der Schyff is an energetic, hyperactive adrenaline junkie who sees challenges as opportunities, and thrives on improving processes, environments and the general quality of life. Always discovering, always growing, her values are most important to her. Her broad knowledge about IT and Business give…


Considerations for load balancing your web applications

In this blog post, App Dev Managers Anand Shukla and Sash Kavalaparambil share some tips on configuring a load balancer for web applications. Sometimes the way a web application needs to manage state can have a profound impact on scalability and the load balancing configuration.  There are many different options (both software and hardware) to…


Configuration error, targetFramework 4.7

I was deploying some code to one of my IIS servers and got this YSOD as seen in Figure 1.  I had coded in Visual Studio 2017 with the .NET Framework 4.7 targeted from my ASP.NET Web Forms application I wrote. Figure 1, Server Error, targetFramework=”4.7” I like to look at the version of the…


Targeting a specific version of the .NET Framework

I find numerous opinions and understandings about side-by-side and in-place installations of the .NET Framework.  Here is my favorite explanation of this “.NET Versioning and Multi-Targeting – .NET 4.5 is an in-place upgrade to .NET 4.0”.  I also link to that same article in one of my IIS labs here, “Lab 5: Basic and Advanced…


What is the current .NET version on an Azure App Service

I have an App Service here (currentdotnetversion) that shows the output of the current (when I wrote this article) .NET version using C# code.  Here is a partial code snippet: I took the code from here and I got the Microsoft.Win32 assembly via a NuGet package, see Figure 1. Figure 1, where to get the…