Hi all,
I am trying to push my ASP.NET Core 3.1 app to an AWS Beanstalk (Linux) instance, but it's giving me an error during the deployment.
That's the error - NB the placeholder "SLNNAME" is my Visual Studio solution name:
[ERROR] An error occurred during execution of command [app-deploy] - [CheckProcfileForDotNetCoreApplication]. Stop running the command. Error: error stat /var/app/staging/staging_SLNNAME_server/SLNNAME.dll: no such file or directory with file /var/app/staging/staging_SLNNAME_server/SLNNAME.dll
The project I am trying to deploy is called "SLNNAME.Server.Web" as well as the corresponding DLL. But according to the error above AWS is looking for a DLL named just "SLNNAME".
So I tried to rename the DLL to "SLNAME.dll" and magically it started to work correctly!
Trying to set the correct DLL name, I created a Procfile with this directive:
web: dotnet SLNNAME.Server.Web.dll
The Procfile is at the root level of the zip along with all the application DLLs, but it seems to be ignored.
I have uploaded the code using a simple zip file, AWS Toolkit for Visual Studio and the GitHub actions. All of them are returning the same error.
How can I tell the correct DLL name?
I attach a screenshot of the zip file uploaded to AWS
Thanks in advance
UPDATE: If I change the output DLL name to SLNNAME.dll the Procfile is read and executed correctly. So to make it work I have to change the Procfile to:
web: dotnet SLNNAME.dll
And the csproj file with:
<AssemblyName>SLNNAME</AssemblyName
>```
But this is NOT a solution, it's just a workaround. I think there's something wrong with the service itself that must be fixed
Edited by: krusty on Jul 10, 2020 9:55 AM