Where can I log an ASP.NET Core app’s start/stop/error events?
In old ASP.NET, in the Global.asax.cs class, I would log when the app starts, stops and throws unhandled exceptions:
In old ASP.NET, in the Global.asax.cs class, I would log when the app starts, stops and throws unhandled exceptions:
I have an ASP.NET Core application hosted in IIS in an Azure VM. I call the extension method to persist they key to Azure but nothing is ever stored there and the application seems to still be using local keys. I followed the example here: http://intellitect.com/staying-logged-across-azure-app-service-swap/ exactly. As a matter of fact, when I test the code in a console application, persistence works fine. However, when I run the ASP.NET Core app with this code, nothing ever gets persisted to Azure. Any ideas why?
I noticed that when creating a new ASP.NET 5 project there is a src directory which completely makes sense to me since I have always put all of my solution’s code in a directory called source.
I am using ASP.NET Core 1.1 MVC to build an JSON API. Given the following model and action method:
Say my website is hosted in the mywebsite folder of www.example.com and I visit https://www.example.com/mywebsite/home/about.
I have followed the steps here to upgrade from ASP.NET 5 Beta 4 to Beta 5 but am getting an error at runtime when calling application.UseBrowserLink();:
Running my ASP.NET Core application using DNX, I was able to set environment variables from the command line and then run it like this:
(Environment: Visual Studio 2019 v16.4.3)
I’ve installed the preview of .NetCore 3.0 and tried to run the blazor template Blazor (ASP.NET Core hosted) in Visual Studio 2019: