Overview
ESP Santa Fe de Antioquia is an ASP.NET Core 3.1 web application that can be deployed to IIS (Internet Information Services) on Windows Server or other hosting platforms that support ASP.NET Core. This guide will walk you through the deployment process, from prerequisites to going live in production.Prerequisites
Server Requirements
Ensure your server meets these minimum requirements:
- Windows Server 2012 R2 or later (for IIS deployment)
- .NET Core 3.1 Runtime or SDK
- IIS 7.5 or later with ASP.NET Core Module
- SQL Server 2012 or later
- Minimum 2GB RAM (4GB recommended)
- 10GB available disk space
Install .NET Core Runtime
Download and install the .NET Core 3.1 Runtime (or SDK) from Microsoft:Verify installation:You should see
Microsoft.AspNetCore.App 3.1.x in the output.Install IIS and ASP.NET Core Module
Enable IIS on Windows Server:Install the ASP.NET Core Module (ANCM) for IIS:Download the ASP.NET Core Module installer from Microsoft and run it. This module is required for hosting ASP.NET Core applications in IIS.
Application Architecture
The application consists of several projects:- prjESPSantaFeAnt - Main web application (ASP.NET Core MVC)
- persistenDatabase - Entity Framework Core data layer
- services - Business logic and service layer
- model - Domain models
- modelDTOs - Data Transfer Objects
Key Technologies
- Framework: ASP.NET Core 3.1
- Database: SQL Server with Entity Framework Core 3.1.9
- Authentication: ASP.NET Core Identity
- Email Service: SendGrid API
- ORM: Entity Framework Core
- Mapping: AutoMapper 8.1.0
Deployment Workflow
The typical deployment workflow follows these steps:Configure Production Settings
Update
appsettings.json with production connection strings and settings.Publishing the Application
From the project directory:publish folder with:
- Optimized compiled assemblies
- Static files (CSS, JavaScript, images)
- Configuration files
- All required dependencies
The publish folder contains everything needed to run the application. You can copy this entire folder to your production server.
Next Steps
Now that you understand the deployment prerequisites and workflow, proceed to:- Production Configuration - Configure settings for production
- Database Setup - Set up and migrate your production database
Security Checklist
Before deploying to production, review this security checklist:- Change default connection strings
- Use environment variables or secure storage for secrets
- Enable HTTPS and obtain SSL certificate
- Configure proper authentication settings
- Review and update CORS policies
- Enable logging and monitoring
- Set up regular database backups
- Configure firewall rules
- Disable detailed error messages in production
- Review Identity password requirements