I get this error after deploying my app to Azure "HTTP Error 503. The service is unavailable".
I deployed using the FTP and Zip methods but it makes no difference.
This error indicates a server-side problem which is not server error 500 (some exception). 503 is more serious - the server process probably failed to start altogether. I suggest to check Azure's logs. Also make sure .NET Core 2.2 or 3.1 is installed and IIS support enabled.
Thanks Korchev
I'm still struggling to deploy my application to Azure. Here's the output details if the IIS Deployment. I am happy to email you my publish profile as I would like to get this resolved as soon as possible.
dotnet: Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
dotnet: Restore completed in 48.31 ms for C:\Data\Radzen\EasyOrderAngularCSharp\server\project.csproj.
ng-cli:
WARNING in ./node_modules/@angular/core/fesm5/core.js 18325:15-36
WARNING in ./node_modules/@angular/core/fesm5/core.js 18337:15-102
WARNING in budgets, maximum exceeded for initial. Budget 6 MB was exceeded by 1010 kB.
radzen: Angular application production build done in 216063ms.
radzen: Deploying...
radzen: Reading connection strings
radzen: Saving connection strings in appsettings.json
radzen: Creating temporary deploy folder
radzen: Copying client app to deploy folder
radzen: Copying server app to deploy folder
radzen: Syncing deploy folder with server
msdeploy: Error: Could not complete the request to remote agent URL 'http://eo-radzen.scm.azurewebsites.net:443/MSDEPLOYAGENTSERVICE'.
Error: The underlying connection was closed: An unexpected error occurred on a receive.
Error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
Error: An existing connection was forcibly closed by the remote host
Are you trying to use IIS deploy with Azure? This probably won't work. We recommend either ZIP or FTP deploy to Azure. Some network configurations prevent FTP connections so ZIP is the better choice..
The application looks fine. I was able to run it an it displayed the login screen successfully. Couldn't go beyond that as connecting to the database fails - my IP isn't allowed.
You can test deploy.zip easily:
Unzip it somewhere
Open command prompt and go to that directory
Run dotnet server.dll
If everything is right you will see:
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Now listening on: https://localhost:5001
The error you are getting is described in this issue. Probably .NET Core 3.1 is still not enabled in your Azure Web App. This post shows how to deal with that (check the Runtime options).
Yes, a lot of Radzen users deploy their applications to Azure. I still think that the problem you have is due to .NET Core 3.1 not being installed on your Azure instance. You can try creating a .NET Core 2.2 application in Radzen and see if deployment succeeds.
Typically, I find the easiest way to deploy to Azure is via github. That way I'm forced to enable source control in my RadZen project and once setup, I don't have to deploy via the portal. Below is a file with commands I use to do this from vscode terminal.
The short version, assuming you have your AppService all setup via the portal and deploy creds are set:
curl -X POST -u <DeployUser> --data-binary @"deploy.zip" https://<AppName>.scm.azurewebsites.net/api/zipdeploy
This is a command line way to to do zip deploy. Basically the same as dragging deploy.zip to your site: https://<AppName>.scm.azurewebsites.net/ZipDeployUI
Please note, I have selected "Central US Region" to make sure it would work with .Net Core 3.1
Is there any details that would be helpful for me to provide to get my site up and running, I would be very greatful.
Many Thanks for you help
401 Access Denied is the error. So itβs an authentication problem. Maybe database credentials (?)
What do you see in the browser dev tools? You could try adding a blank home page with no data then publish and see if it loads.
I'd try:
RadZen > Deploy > ZIP (this creates Deploy.zip file in your project dir)
Then open this in the browser: https://radzen1.scm.azurewebsites.net/ZipDeployUI
then simply drag the resulting Deploy.zip file and drop onto the page
done
You may have to start with a new Azure App.
HTH,
Josh
Yes, you have, thank you but I think I could not get it to work because I had tried to deploy my site using other methods and I had never thought to create a new site first.