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

Create a VNET and access an Azure VM hosted within it from an App Services Web App

Azure VNET
Azure VNET

There are 2 kinds of VNETs at the moment, they are VNETv1 (ASM), also referred to as ‘Classic virtual networks’ and VNETv2 (ARM), aka ‘Resource Manager virtual networks’.  The binding between a VNETv1 and a Web App can be achieved within the AUX portal here, while the same needs to be performed using PowerShell for…

0

Using Postman to call Azure REST APIs

Azure REST API
Azure REST API

I had a need to call an Azure REST API and thought I would document that here.  Here are the steps required: Get the Postman app Get your Bearer Token for authentication Configure Postman for calling the Azure Rest API Get the Postman app In this instance I used Chrome and installed the app.  Once…

1

ASP.NET WebAPI results in a 405 Method Not Allowed HTTP response

ASP.NET
ASP.NET

I was working on an IoT project where my device was calling a WebAPI.  I had two methods, one had the signature shown in Listing 1 and the other in Listing 2. UPDATE 6-JUN-2016, check here for some exception handling tips. Listing 1, GET employees [Route(“api/TC/{custId}”)] public IQueryable<EmployeeDTO> GetEmployees(string custId) {  var db = new fhEntities();…

3

Using Entity Framework and Web API, I get a 500 Internal Server Error or a Hang

I was working on some code that used Entity Framework and an ASP.NET WebAPI as the interface for accessing the data.  With my experience so far, when I publish my WebAPI and then access it, the result is a JSON formatted file that I can open or save via a message popup similar to that…

0

Troubleshoot a Web API Self Host performance problem

If you have not tried creating a Self-Hosted Web API, you might give it a shot, here is a good, getting started example.  Once it gets into production, if you are looking for ways to troubleshoot a slow performing self-hosted Web API, searching for a W3WP process to take a memory dump of or applying…

0