Install ASP.NET Core Web App in Virtual Test Environment using VirtualBox
We have an existing ASP.NET Web Application created in Visual Studio and C# that communicates with an SQL Server database. We want to test our Application in a Virtual Test Environment. We will use the VirtualBox virtualization software. We install Windows 10/11 in a Virtual Machine (VM) inside VirtualBox. We need a Windows 10/11 ISO file. Then we deploy our Web Application to that VM. The Test Environment shall simulate the final Production Environment so we shall NOT install Visual Studio, but we choose to install a local SQL Server Express database. In addition, we need to install/configure a Web Server. We will use Microsoft Internet Information Services (IIS). In addition, to run ASP.NET Applications inside IIS we need to install .NET Core Hosting Bundle.
PowerPoint used in the video:
GitHub:
Note! After you have downloaded the zip file, you may need to right-click, select Properties and select “Unblock”. Then you can unzip and open the Visual Studio Project and run the App.
YouTube video for creating the Web App used in this video:
YouTube video that gives an overview of VirtualBox and installation of Windows 10/11 from ISO file:
Database Script App:
Blog:
YouTube Channel @Industrial IT and Automation
Contents:
00:00 Introduction
02:27 Web Application Overview
05:47 VirtualBox and installation of Windows 11
13:08 SQL Server Express
19:06 Internet Information Services (IIS)
20:52 .NET Core Hosting Bundle
22:45 Create Database and Tables using SQL Script
27:24 Deployment of Web Application
[ad_2]
source