skip to Main Content

502 Bad Gateway when accessing Dockerized ASP.NET Core Web API on Elastic Beanstalk

My docker-compose.override.yml is as follows: version: '3.4' services: helen.api: environment: - ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_URLS=http://+:5000 ports: - "5001:443" - "5000:80" volumes: - ~/.aspnet/https:/root/.aspnet/https:ro - ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro Dockerfile: #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for…

VIEW QUESTION

Custom C# attributes – Asp.net

While Creating Custom Attributes a custom class is created which is extended from ValidationAttribute Class. public class CustomAttribute: ValidationAttribute { public void Test() { Console.WriteLine("Hello World"); } public override bool IsValid(object? value) { //Logic here if (condition) { return true;…

VIEW QUESTION
Back To Top
Search