aws-toolkit-azure-devops icon indicating copy to clipboard operation
aws-toolkit-azure-devops copied to clipboard

AWS Elastic Beanstalk Deploy Application not working with .net core mvc project

Open onurucak opened this issue 6 years ago • 3 comments

Hi team, i just created a so simple .net core mvc projects ( tried both 2.0 and 2.1) and follow the all steps to deploy the .net core project on VSTS via "AWS Elastic Beanstalk Deploy Application" task. but always getting the same error.

29.08.2018 14:25:15 Error during deployment: Application app is missing web.config file.

but i can deploy the same project on visual studio with right clicking the project and clicking the Publish to AWS Elastic Beanstalk feature.

any idea why?

vsts-elastic

deploytoelastci-vsts

visualstudio

onurucak avatar Aug 29 '18 14:08 onurucak

I am seeing this error too. Repo seems to be pretty straight forward, just try to configure an asp.net core 2.2 project to be deployed to Elastic Beanstalk. I always get the same error as noted above. The problem appears to be that the .zip file created during the publish task contains an /app directory which contains the application bits that need to be deployed. EB is expecting all the files to be at the root and doesn't look for an /app directory.

image

Is there a configuration I'm setting incorrectly? I've read every bit of documentation there is, but unfortunately there isn't much coverage of asp.net core apps (more focus on .net framework).

anti-matter avatar Mar 07 '19 04:03 anti-matter

I'm running into same issue. There is app folder getting created inside the zip file and then all the contents + web.config are present in the app folder.

shashi20170925 avatar Mar 20 '19 11:03 shashi20170925

I am getting similar issue. While I am able to deploy using visual studio, I cant do same using Azure Devops.

prashankprince avatar Sep 06 '23 17:09 prashankprince