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

Target .NET Core 2.0 and .NET Standard 2.0

.NET Core
.NET Core

I originally downloaded and installed the 2.0.0-download.md version of the .NET Core SDK and Runtime from GitHub here. The mistake I made was to install the SDK Installer for the bit of my Visual Studio instead of my OS.  I am running a 32bit version of Visual Studio on 64bit version of windows. I was…

0

How to install .NET Standard 2.0

Microsoft .NET
Microsoft .NET

The release of .NET Standard has been officially announced here.  I looked for a way to update .NET Standard to version 2.0 as I could see it was not installed on my workstation.  As shown in Figure 1, I only had version 1.0 – 1.6 installed. Figure 1, how to upgrade, install new version of…

0

How to install .NET Core 2.0

.NET Core
.NET Core

The release of .NET Core has been officially announced here.  I looked for a way to update .NET Core to version 2.0 as I could see it was not installed on my workstation.  As shown in Figure 1, I only had version 1.0 and 1.1 installed. Figure 1, how to upgrade, install new version of…

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

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

Visual C++ Redistributable Packages for Visual Studio Azure App Service

Azure App Service
Azure App Service

Azure App Service run within a sandbox that protects your App Service from doing and being harmed, the sandbox is described here.  One action that you cannot do is access the console and install any 3rd party libraries which run via a script, ex: EXE or MSI.  Therefore, I got asked how to get the…

3

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

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

Configure Visual Studio Team Services in Visual Studio, deploy to Azure App Service

Visual Studio
Visual Studio

I am on a path to learning and working with a Continuous Deployment / Delivery (CD), I just need a project or to build some examples that are worthy of such a great concept.  What I see happening in that area is pretty awesome, for example, with CD you can check in your code, build,…

0

How to configure GitHub or VSTS for use with an Azure Function

GitHub - benjaminperkins
GitHub - benjaminperkins

I have written a few post about setting up source code repositories for App Services and now, while I am getting up to speed with Azure Functions I wanted to do the same.  Here are some other GitHub related articles I have written: #AzureFunctions #Azure #GitHub Setting up and using GitHub in Visual Studio 2017…

0

Machine Keys on an Azure App Service, machineKey multiple instances Azure

Azure App Service
Azure App Service

When you run an ASP.NET application on multiple instances of an App Service Plan (ASP) you do not need to worry about machineKeys as the App Service Platform will use the same one across all your instances and therefore will not need to make any changes to your application. I found this sample code and…

1

Azure Functions updates

Azure Functions
Azure Functions

Azure Functions CLI has been renamed to azure-functions-core-tools, see here. Also, appsettings.json has been renamed to local.settings.json, the appsettings.json file will show as deprecated, but will still work. See other changes here.

0