Creating a NuGet package for my .NET Standard class library

.NET Core
.NET Core

I successfully created and published my first NuGet package that included a .NET Standard class library here.  It is nothing specificly awesome but it’s pretty cool, simple and something I have never done before.  I simply executed this msbuild command on my .NET Standard class library and it built the package for me. Before I…

0

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

ASP.NET
ASP.NET

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….

0

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

ASP.NET
ASP.NET

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.”}…

0

Azure App Service IP Based SSL and SNI Based SSL configuration

Azure App Service
Azure App Service

Sometimes you experience something and just want to share.  This is very corner case, but it threw me for a loop.  In this case there was an Azure App Service Web App that had 1 web site running on it.  This one site had 2 custom domains bound to it.  One of domains used IP…

0

Object reference not set to an instance of an object

WinDbg Debugging
WinDbg Debugging

Just documenting something I did today.  I was receiving the error shown in Figure 1. “??? has encountered an unexpected error:  The requested action could not be completed.  Details:  Object reference not set to an instances of an object.” Figure 1, Object reference not set to an instances of an object exception I needed to…

0

Cannot read Failed Request Log, unformatted and unreadable

IIS Internet Information Services
IIS Internet Information Services

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,…

0

Failed to update App Service plan

Azure App Service
Azure App Service

I was trying to scale down my Azure App Service Web App and got this error, also shown in Figure 1: Failed to update App Service plan LG1-ASP-001: {“Code”:”Conflict”,”Message”:”The site(s) ‘LG1’ exceed maximum number of slots allowed for the hosting plan. Remove all deployment slots before scaling to a different mode.”,”Target”:null,”Details”:[{“Message”:”The site(s) ‘LG1’ exceed maximum…

0

Capture a StackOverflowException and make a dump 0xc00000fd

WinDbg Debugging
WinDbg Debugging

I read in this article that “Starting with the .NET Framework 2.0, you can’t catch a StackOverflowException object with a try/catch block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow.”  That is the reason why the following code was crashing my process…

0

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

ASP.NET Core
ASP.NET Core

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…

0

404 when I deploy an ASP.NET Core Web API

ASP.NET Core
ASP.NET Core

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…

0

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

ASP.NET Core
ASP.NET Core

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…

2

ASP.NET Core with Entity Framework Core – ASPNETCORE_ENVIRONMENT

ASP.NET Core
ASP.NET Core

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…

0

Changing the maxLogFileSizeKB on an Azure App Service

Azure App Service
Azure App Service

I wrote this article “Making changes to the applicationHost.config on Azure App Service” here which explains the details about creating an XDT file that supports the configuration of some properties found in the applicationHost.config file.  Keep in mind that not all of the attributes in the applicationHost.config file can be altered, you might be able…

0

Remote debug your Azure App Service 2017 including ASP.NET Core

ASP.NET Core
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…

1

Critical error: Could not connect to server when FTP to an Azure App Service

Azure App Service
Azure App Service

I was trying to connect to my Azure App Service Web App using FTP and I got this error: Status: Connection established, waiting for welcome message… Status: Initializing TLS… Status: Verifying certificate… Status: TLS connection established. Command: USER $ID Response: 331 Password required Command: PASS ************************************************************ Response: 530 User cannot log in. Error: Critical error:…

0