A route named ‘*’ is already in the route collection, Azure Web App

I was deploying an ASP.NET Web API to an Azure App Service Web App and I got this error: Server Error in ‘/’ Application. A route named ‘HelpPage_Default’ is already in the route collection. Route names must be unique. Parameter name: name Description: An unhandled exception occurred during the execution of the current web request….


.NET and MultiStage Dockerfiles

A while back I talked about building optimized docker images. (Building Optimized Docker Images with ASP.NET Core) With compiled runtimes like Go, Java and .NET, you’ll want to first compile your code before having a binary that can be run. The components required to compile your code are not required to run your code. And the SDKs…


Always get “Authorization has been denied for this request.” ASP.NET Web API

I was creating an ASP.NET Web API today and when I called one of the Web APIs (/api/values) I got the following response: {“Message”:”Authorization has been denied for this request.”} It turns out by default ‘Individual User Accounts” authentication is enabled by default.  See Figure 1. Figure 1, {“Message”:”Authorization has been denied for this request.”}…


Role Based Access Control in ASP.NET MVC

In this post, Premier Developer consultant Lizet Pena De Sola explains Role Based Access Control in ASP.NET MVC. Role Based Access Control in MVC is pretty straight forward. There is also a way to do claims access control, but the most common way is based on roles. To show or hide action links in a view depending…

1

ASP.NET Core 2.0 Features

Last week we announced the release of ASP.NET Core 2.0 and described some top new features, including Razor Pages, new and updated templates, and Application Insights integration. In this blog post we are going to dig into more details of features in 2.0. This list is not exhaustive or in any particular order, but highlights…

21

Анонсированы .NET Core 2.0 и ASP.NET Core 2.0

Добрый день, сегодня мы рады поделиться важными обновлениями: .NET Core 2.0 теперь доступен в окончательной версии. Вы можете начать разработку в командной строке, в вашем любимом текстовом редакторе или же в следующем релизе Visual Studio 2017 15.3, Visual Studio Code или Visual Studio для Mac. Все готово, чтобы выдержать все рабочие нагрузки как на вашем локальном железе, так и…


Welcome to the .NET Framework 4.7.1 Early Access!

Last Updated: 9/21/2017 Today, we are happy to share the .NET Framework 4.7.1 Early Access build with the Developer Pack. The .NET Framework 4.7.1 Developer Pack lets developers build applications that target the .NET Framework 4.7.1 by using Visual Studio 2017, Visual Studio 2015 or other IDEs. This is a single package that bundles the .NET…


Cannot read Failed Request Log, unformatted and unreadable

I often get Failed Request Trace logs via email that when I open them I only see the data, I mean it is not nicely formatted like that shown in Figure 1, rather I see what is in Figure 2. Figure 1, nice Failed Request Trace log Figure 2, not nice Failed Request Trace log,…


Docker Blog Series Part 1- Building ASP.NET Core Application using Docker For Windows.

Applications and their set of user expectations continue to evolve over the last few years. We have seen various trends like microservices and containerization become mainstream. The enterprises are beginning to realize the cost savings and other benefits of these technologies. It therefore becomes incumbent to build applications and service with this mindset. In this…


The Next Generation of .NET – ASP.NET vNext

Updated (2017): See .NET Framework Releases to learn about newer releases. Updated (July 2015): See Announcing .NET Framework 4.6 to read about the latest version of the NET Framework. Today at TechEd North America, we announced the latest set of innovations that are part of the next generation of .NET. The biggest of those is ASP.NET vNext, which…

60