Error deploying .Net Core 2.0 Web API to AWS Elastic Beanstalk


0014

I have built my Web API using .Net Core 2.0 . Now I'm trying to deploy the project to AWS using its Elastic Beanstalk service . I also used Visual Studios AWS deployment tools .

During deployment I get the following error;

An error occurred during deployment: Part of the path 'C:\inetpub\AspNetCoreWebApps\app\appsettings.Development.json' could not be found.

I added the following section to mine .csproj;

<ItemGroup>
    <Content Update="appsettings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Update="appsettings.Development.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
</ItemGroup>

When building the project , I can see appsettings.jsonand appsettings.Development.jsonin my output folder. If I publish the app to my local PC, they also appear in the published directory.

I don't understand why Amazon's service is not receiving...

EDIT: So, interestingly, I created a new .Net Core 2.0 Web Api project from the Visual Studio template and tried to deploy it to AWS and it gave me the same error. However, when I create an MVC project and deploy it to AWS, everything works fine. The default settings for the Web API template seem to affect the deployment in some way...

0014

So I created a new .Net Core 2.0 MVC project and migrated/adapted my web api to it. Now it deploys without any issues.

So if your project is launched from the Web Api template and you get a similar error, try switching between templates.

Related


Error deploying .Net Core 2.0 Web API to AWS Elastic Beanstalk

0014 I have built my Web API using .Net Core 2.0 . Now I'm trying to deploy the project to AWS using its Elastic Beanstalk service . I also used Visual Studios AWS deployment tools . During deployment I get the following error; An error occurred during deploym

Error deploying .Net Core 2.0 Web API to AWS Elastic Beanstalk

0014 I have built my Web API using .Net Core 2.0 . Now I'm trying to deploy the project to AWS using its Elastic Beanstalk service . I also used Visual Studios AWS deployment tools . During deployment I get the following error; An error occurred during deploym

Error deploying .net Core 2.0 to AWS Beanstalk

stt106 Tried hard to search online for information about deploying .net core 2.0 to AWS, but found very little up-to-date information. AWS official documentation is outdated for Core 2.0. I have an api written in .net core 2.0 and when deployed to AWS using th

Error deploying .net Core 2.0 to AWS Beanstalk

stt106 Tried hard to search online for information about deploying .net core 2.0 to AWS, but found very little up-to-date information. AWS official documentation is outdated for Core 2.0. I have an api written in .net core 2.0 and when deployed to AWS using th

Error deploying .net Core 2.0 to AWS Beanstalk

stt106 Tried hard to search online for information about deploying .net core 2.0 to AWS, but found very little up-to-date information. AWS official documentation is outdated for Core 2.0. I have an api written in .net core 2.0 and when deployed to AWS using th

Error deploying .net Core 2.0 to AWS Beanstalk

stt106 Tried hard to search online for information about deploying .net core 2.0 to AWS, but found very little up-to-date information. AWS official documentation is outdated for Core 2.0. I have an api written in .net core 2.0 and when deployed to AWS using th

Error deploying .net Core 2.0 to AWS Beanstalk

stt106 Tried hard to search online for information about deploying .net core 2.0 to AWS, but found very little up-to-date information. AWS official documentation is outdated for Core 2.0. I have an api written in .net core 2.0 and when deployed to AWS using th

Deploy .Net Core 2.1 Web API to Elastic Beanstalk

Chicken doesn't clap I'm trying to deploy a .Net Core Web API solution to Elastic Beanstalk via CLI and I'm running into a problem. I am able to publish my project without errors and deploy the application successfully. My problem is that when I visit the URL,

Deploy .Net Core 2.1 Web API to Elastic Beanstalk

Chicken doesn't clap I'm trying to deploy a .Net Core Web API solution to Elastic Beanstalk via CLI and I'm running into a problem. I am able to publish my project without errors and deploy the application successfully. My problem is that when I visit the URL,

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W: I want to deploy my web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app relies on 3rd party wrappers. fl0cke:

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W: I want to deploy my web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app relies on 3rd party wrappers. fl0cke:

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W: I want to deploy my web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app relies on 3rd party wrappers. fl0cke:

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W: I want to deploy my web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app relies on 3rd party wrappers. fl0cke:

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W I want to deploy a web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app depends on 3rd party packages. 0 Your be

Deploying Go 1.6 web app to AWS Elastic Beanstalk?

Chris W I want to deploy my web app to elastic beanstalk but it appears to only support Go 1.4 rather than Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendoring and my web app depends on 3rd party packages. fl0cke

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W: I want to deploy my web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app relies on 3rd party wrappers. fl0cke:

Deploying a Go 1.6 web application to AWS Elastic Beanstalk?

Chris W: I want to deploy my web application to elastic beanstalk, but it only seems to support Go 1.4, not Go 1.6. Is there a way to get a custom image? The reason I want 1.6 is because it supports vendors and my web app relies on 3rd party wrappers. fl0cke:

Error deploying .Net Core 3.0 Web API to Azure App Service

Fabricio Rodriguez I recently upgraded my ASP .Net Core 2.2 Web API to .Net Core 3.0. Now when I publish to Azure App Service from Visual Studio 2019 Community (latest updates installed) I get this message: There was a problem starting PropWorx.API on propworx

Error deploying .Net Core 3.0 Web API to Azure App Service

Fabricio Rodriguez I recently upgraded my ASP .Net Core 2.2 Web API to .Net Core 3.0. Now when I publish to Azure App Service from Visual Studio 2019 Community (latest updates installed) I get this message: There was a problem starting PropWorx.API on propworx

Error deploying .Net Core 3.0 Web API to Azure App Service

Fabricio Rodriguez I recently upgraded my ASP .Net Core 2.2 Web API to .Net Core 3.0. Now when I publish to Azure App Service from Visual Studio 2019 Community (latest updates installed) I get this message: There was a problem starting PropWorx.API on propworx

Error deploying .Net Core 3.0 Web API to Azure App Service

Fabricio Rodriguez I recently upgraded my ASP .Net Core 2.2 Web API to .Net Core 3.0. Now when I publish to Azure App Service from Visual Studio 2019 Community (latest updates installed) I get this message: There was a problem starting PropWorx.API on propworx

Error deploying .Net Core 3.0 Web API to Azure App Service

Fabricio Rodriguez I recently upgraded my ASP .Net Core 2.2 Web API to .Net Core 3.0. Now when I publish to Azure App Service from Visual Studio 2019 Community (latest updates installed) I get this message: There was a problem starting PropWorx.API on propworx