Base solution for your next web application

Activities of "robmasango"

Hi,

I have an MVC application deployed on IIS server that is working on IE, Safari and Firefox but it is not working on Chrome. I checked my logs and it is not showing any errors

My Chrome version is Version 84.0.4147.125 (Official Build) (64-bit) My Aspnetzero version is 8.7

Thanks

Structure

The docker file is at the root of the solution

Github Actions Code

name: CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Login to Heroku Container registry env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} run: heroku container:login - name: Build env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} run: heroku container:push -a easy2complyqa web - name: push env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push -a easy2complyqa web
- name: Release env: HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release -a easy2complyqa web

DOCKER FILE

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443

COPY ./*.sln ./common.props ./

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY ["/src/VuyisaTech.Easy2Comply.Web.Mvc/VuyisaTech.Easy2Comply.Web.Mvc.csproj", "VuyisaTech.Easy2Comply.Web.Mvc/"] COPY ["/src/VuyisaTech.Easy2Comply.Web.Host/VuyisaTech.Easy2Comply.Web.Host.csproj", "VuyisaTech.Easy2Comply.Host/"] COPY ["/src/VuyisaTech.Easy2Comply.Core/VuyisaTech.Easy2Comply.Core.csproj", "VuyisaTech.Easy2Comply.Core/"] COPY ["src/VuyisaTech.Easy2Comply.Application/VuyisaTech.Easy2Comply.Application.csproj", "VuyisaTech.Easy2Comply.Application/"] COPY ["/src/VuyisaTech.Easy2Comply.Migrator/VuyisaTech.Easy2Comply.Migrator.csproj", "VuyisaTech.Easy2Comply.Migrator/"] COPY ["/src/VuyisaTech.Easy2Comply.Web.Core/VuyisaTech.Easy2Comply.Web.Core.csproj", "VuyisaTech.Easy2Comply.Web.Core/"] COPY ["/src/VuyisaTech.Easy2Comply.EntityFrameworkCore/VuyisaTech.Easy2Comply.EntityFrameworkCore.csproj", "VuyisaTech.Easy2Comply.EntityFrameworkCore/"] COPY ["/src/VuyisaTech.Easy2Comply.Web.Public/VuyisaTech.Easy2Comply.Web.Public.csproj", "VuyisaTech.Easy2Comply.Web.Public/"] COPY ["/src/VuyisaTech.Easy2Comply.Application.Shared/VuyisaTech.Easy2Comply.Application.Shared.csproj", "VuyisaTech.Easy2Comply.Application.Shared/"] COPY ["/src/VuyisaTech.Easy2Comply.Core.Shared/VuyisaTech.Easy2Comply.Core.Shared.csproj", "VuyisaTech.Easy2Comply.Core.Shared/"] COPY ["/src/VuyisaTech.Easy2Comply.GraphQL/VuyisaTech.Easy2Comply.GraphQL.csproj", "VuyisaTech.Easy2Comply.GraphQL/"]

RUN dotnet restore "VuyisaTech.Easy2Comply.Web.Mvc/VuyisaTech.Easy2Comply.Web.Mvc.csproj" COPY . .

WORKDIR "/src/VuyisaTech.Easy2Comply.Web.Mvc" RUN dotnet build "VuyisaTech.Easy2Comply.Web.Mvc.csproj" -c Release -o /app

FROM node:6.7.0 WORKDIR "/src/VuyisaTech.Easy2Comply.Web.Mvc" RUN npm install -g yarn RUN npm install -g npm run build

FROM build AS publish WORKDIR /src RUN dotnet publish "VuyisaTech.Easy2Comply.Web.Mvc/VuyisaTech.Easy2Comply.Web.Mvc.csproj" -c Release -o /app

FROM base AS final WORKDIR /app COPY --from=publish /app . ENTRYPOINT ["dotnet", "VuyisaTech.Easy2Comply.Web.Mvc.dll"]

ERROR

/src/VuyisaTech.Easy2Comply.Web.Mvc/VuyisaTech.Easy2Comply.Web.Mvc.csproj(2,3): error MSB4019: The imported project "/common.props" was not found. Confirm that the expression in the Import declaration "../../common.props" is correct, and that the file exists on disk. The command '/bin/sh -c dotnet publish "VuyisaTech.Easy2Comply.Web.Mvc/VuyisaTech.Easy2Comply.Web.Mvc.csproj" -c Release -o /app' returned a non-zero code: 1

ASSIST

What Am I doing wrong I have tried so many solutions and google is not helping

HTTP Error 500.0 - Internal Server Error my app works fine onlocalhost but. azure deployment throws an error.

HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred.

Detailed Error Information: Module AspNetCoreModuleV2 Notification ExecuteRequestHandler Handler aspNetCore Error Code 0x00000000 Requested URL https://Easy2ComplyApp:80/ Physical Path D:\home\site\wwwroot Logon Method Anonymous Logon User Anonymous

Showing 1 to 3 of 3 entries