Well, here we go. Not only have I had the opportunity to work with open source and Linux, now I get some taste of containers. I find the concept very interesting because containers solve many issues when in the context of cloud hosting and running code on a multitenant platform. This is how I added […]
Read More →Category: ASP.NET
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. […]
Read More →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.”} […]
Read More →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 […]
Read More →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 […]
Read More →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 […]
Read More →Remote debug your Azure App Service 2017 including ASP.NET Core
We are moving at cloud speed here, I wrote this one here less that a year ago “Remote debug your Azure App Service Web App” that discusses how to use Cloud Explorer to remotely attach a debugger to an Azure App Service in Visual Studio 2015, now let’s see how you can do the same […]
Read More →ASP.NET Core (-4077,–4047,–4089, -4095)
If you get any of these errors, take a memory dump of your process, like I discuss below and look at the stacks. Create a memory dump for your slow performing Web App How to take a memory dump from a specific App Service instance Create and deploy an ASP.NET Core Web API to Azure […]
Read More →Create and deploy an ASP.NET Core Web API to Azure Windows
There are a number of things I want to accomplish with this and a few future articles: How to deploy an ASP.NET Core Web API to an Azure App Services Web App How to deploy an ASP.NET Core Web API to an Azure VM Check out some of my other articles I wrote in regards […]
Read More →How to capture an ASP.NET Core memory dump on Azure App Service
I have written numerous articles about ASP.NET and creating memory dumps, but noticed I had not written one specifically about capturing an ASP.NET Core memory dump on an Azure App Service. Here are some of my ‘related’ articles of this matter. Create a memory dump for your slow performing Web App How to take a […]
Read More →