How to Support Windows Authentication for ASP.NET Core in IIS

When we are debugging and testing Windows Authentication based ASP.NET Core application in development environment, it is very straightforward. We can just use Windows Authentication based template to create the application without any code change. The launchSettings.json contains the following section to enable windows authentication and disable anonymous authentication. “iisSettings”: { “windowsAuthentication”: true, “anonymousAuthentication”: false,…

2

Building recommendation engine for .NET applications using Azure Machine Learning

⏱ Updated on June 26, 2017 Through a series of blog posts, we would like to show you different ways on how .NET developers can leverage Machine learning and AI to build engaging customer experiences. In this particular post, I would like to cover how you can use Machine Learning as a service using different…


[Sample Of Jun. 26] How to make and use captcha code in ASP.NET Core

Jun. 26 Sample : https://code.msdn.microsoft.com/How-to-make-and-use-d0d1752a This sample demonstrates how to make and use captcha code in ASP.NET Core. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand,…


Docker Blog Series Part 2 – Build & Deploy ASP.NET Core based Docker Container on Service Fabric

This post is the second in a series of posts on Docker that Premier Developer consultant Monu Bambroo has posted on his blog. Azure Service Fabric in addition to offering a Service Fabric programming model is also able to orchestrate container based services across a cluster of machines. Service Fabric can deploy services in container…


ASP.NET Core with Entity Framework Core SqlException: cannot openserver

I am doing some ASP.NET Core self study and experienced this issue.  The thing is that my client IP changes from time to time and need to add it to the the firewall so that database connections are allowed to it.  This happens mostly when I am debugging or coding from my workstation while the…


404 when I deploy an ASP.NET Core Web API

When I deployed an ASP.NET Core Web API to my Azure App Service API App I received a 404 Not Found when the page was opened, as seen in Figure 1. Figure 1, 404 ASP.NET Core The reason for this is that the deployment or default ASP.NET Core Web API template does not include a…


ASP.NET Core with Entity Framework Core error, Login Failed

I was working with the EF NuGet package Microsoft.EntityFramework.Tools.DotNet and executed the command-line interface (CLI), also shown in Figure 1. dotnet ef database drop Running this method resulted in the same behavior: context.Database.EnsureDeleted(); Figure 1, Entity Framework Core, CLI I am not sure what exactly I was thinking, but it I did not really expect…


ASP.NET Core with Entity Framework Core – ASPNETCORE_ENVIRONMENT

This is another one, Figure 1, that just kind of happened because I dropped my database.  Once I re-created the database and my ASP.NET Core application could access it, all was back to normal. Figure 1, ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. Error. An error occurred while processing your request. Development Mode…


[Sample Of Jun. 19] How to authentication web page using JWT token in ASP.NET Core

Jun. 19 Sample : https://code.msdn.microsoft.com/How-to-authentication-web-f58efc25 This sample demonstrates how to authentication web page using JWT token in ASP.NET Core. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on…


Another Friday, Another Group of Awesome MVP Blogs

ASP.NET Core, Angular2 CRUD With Animation Using Template Pack, WEB API And EF 1.0.1 Syed Shanu is a Microsoft MVP, a two-time C# MVP and two-time Code project MVP. Syed is also an author, blogger and speaker. He’s from Madurai, India, and works as Technical Lead in South Korea. With more than 10 Years of experience…