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…

1

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

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…

0

How to copy files or deploy code to a Nano Server

IIS Internet Information Services
IIS Internet Information Services

I am writing numerous posts about IIS on Nano with my intent to get an ASP.NET Core application up and running on it.  There are already instructions for this shown directly below, but I like to do the exercise myself and document my experiences and lessons in addition. #ASPNETCORE #Nano #IIS What’s new in IIS…

0

ASP.NET Core (-4077,–4047,–4089, 4095)

ASP.NET Core
ASP.NET Core

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…

0

How to call an async method from a console app main method

.NET Core
.NET Core

I find myself needing to look this code snippet up time to time so I thought I’d write it up. Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core…

0

How to deploy a .NET Core console application to Azure, WebJob

.NET Core
.NET Core

Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core console application to Azure, WebJob .NET Core application, where is my EXE, how to publish Create a VNET and access…

0

.NET Core application, where is my EXE, how to publish

.NET Core
.NET Core

Short answer, there isn’t one.  When you compile your .NET Core console application for example, you get a DLL.  Then you execute it using the DOTNET command from the .NET Core SDK found here. Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an…

1

How I called an asynchronous method from a loop

.NET Core
.NET Core

Check out some of my other articles I wrote in reagrds to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core console application to Azure, WebJob .NET Core application, where is my EXE, how to publish Create a VNET and access…

2

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

Create and deploy an ASP.NET Core Web API to Azure Windows

ASP.NET Core
ASP.NET Core

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…

0