Report this

What is the reason for this report?

Connect to a C# WebApi deployed on App Platform

Posted on December 19, 2020

I’ve been able to deploy a C# .net 5 WebApi using Docker on App platform. At the end of the deployment I get an error but there are no errors in the logs so I think it’s a false alarm as the app shows Healty.

The question is… how can I connect from another app to this WebApi webservices? I understand the App use dynamic Ip but there should be some way and maybe an article describing this Many thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

here is the open source repo with the Dockerfile https://github.com/riccardone/MySelfLog.Api/blob/master/Dockerfile

Once the app has been successfully deployed, the App Platform will display a URL for your application. If App Platform is reporting the build was successful, but the deploy failed that generally means your program either quit immediately or wasn’t reachable on the configured port. The Dockerfile you posted in comments has an EXPOSE directive on port 5001 which App Platform will respect. Verify your application is listening on that port. If that

The Logs tab will display logs for active applications. If your application has failed, try looking at the “Deployments” tab, clicking Details, and scrolling down to deploy logs.

If neither of those provides insight, contact support. They will be able to review your applications and may be able to provide some insight.

In the “Deployments” all attempted deployments had failed. If I look at the details/logs, there are no errors. This is the last deployment log I have

myselflog-api | 22:36:36 2020-12-19 22:36:36.0450| INFO|App start: MySelfLog.Api myselflog-api | 22:36:37 Hosting environment: Production myselflog-api | 22:36:37 Content root path: /app myselflog-api | 22:36:37 Now listening on: http://[::]:80 myselflog-api | 22:36:37 Application started. Press Ctrl+C to shut down.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.