Question

Deployment Failing for .Net Blazor WASM APP. Build Completes Successfully

I am deploying a C#.NET Blazor WASM App using APP SERVCIE and my build completes successfully but the Deployment is failing for some reason. I am not able to figure out why it is failing because I don’t see and errors for deployment logs. Can someone help me on this ??


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 2, 2023

Hi there,

As the build process is working as expected, and it’s only the deployment stage that is failing, it sounds like that this might be related to your App health checks configuration.

I would recommend checking if the health checks are set up correctly. For a Blazor WASM app, which primarily serves static content, using TCP health checks instead of HTTP might be more suitable.

Also ensure the health check is using the correct port. The port configured in your health check should match the port your app is listening on. If there’s a mismatch, the platform might incorrectly assume your app isn’t running and fail to deploy.

Besides that do you see anything in your deployment logs? I would recommend reviewing the deployment logs for any warnings or subtle indications of what might be going wrong. Sometimes, the issue might not be explicitly stated as an error but could be inferred from the log messages.

Also make sure to verify that your app component has sufficient resources (like memory and CPU) allocated to it. Insufficient resources can sometimes cause deployments to fail, especially if the app runs fine locally but struggles in a more constrained environment.

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel