Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mazlan 3 posts 73 karma points
    Oct 18, 2023 @ 03:27
    mazlan
    0

    An unhandled exception occurred while processing the request.

    Helo,

    I use Azure SQL to connect with my umbraco app. When run via source code (IIS express) the system can work fine. But when I run via docker I received error as below. I am not sure what is the issue.

    Below is sample of my docker file:

    FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443
    
    FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY ["CMS_CMI/CMS_CMI.csproj", "CMS_CMI/"] RUN dotnet restore "CMS_CMI/CMS_CMI.csproj" COPY . . WORKDIR "/src/CMS_CMI" RUN dotnet build "CMS_CMI.csproj" -c Release -o /app/build
    
    FROM build AS publish RUN dotnet publish "CMS_CMI.csproj" -c Release
    -o /app/publish /p:UseAppHost=false
    
    FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "CMS_CMI.dll"]
    

    enter image description here

    Please help.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 19, 2023 @ 10:08
    Huw Reddick
    0

    Is there anything in the Umbraco Log that points at the cause?

Please Sign in or register to post replies

Write your reply to:

Draft