aws / aws-toolkit-azure-devops

AWS Toolkit for Azure DevOps
Other
248 stars 104 forks source link

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

Open onurucak opened 6 years ago

onurucak commented 6 years ago

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

anti-matter commented 5 years ago

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).

shashi20170925 commented 5 years ago

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.

prashankprince commented 1 year ago

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