Manully Deploy my aps.net web application to Azure Web app

john john 941 Reputation points
2020-01-10T15:50:58.503+00:00

I have the following:-

  1. I create a new Azure web app.
  2. Using VS 2019 i created a new Asp.net 4.5 web application which contain WCF service.
  3. i tried to deploy my asp.net application into azure, but i failed.

I tried using Web Deploy:-
alt text

I tried using ftp:-
alt text

but both approaches failed, where i got connection error. as follow:-

alt text

System.AggregateException: One or more errors occurred. ---> System.Exception: Build failed. Check the Output window for more details. --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.b__3() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d__213.MoveNext()
---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---

System.Exception: Build failed. Check the Output window for more details.

===================

so my question if i can manually deploy my asp.net web application to azure web app without relying on VS? for example using power-shell or from azure portal?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,867 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-01-10T21:31:42.253+00:00

    Better to reach out to subject matter experts in dedicated forums over here.

    https://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services

    https://forums.asp.net/1247.aspx/1?Azure+and+ASP+NET

    1 person found this answer helpful.
    0 comments No comments

  2. Joffrey NURIT 206 Reputation points MVP
    2020-01-10T16:57:06.953+00:00

    Hi,

    You have a lot of solutions.

    You can:

    • Use FTP: Go on azure, app service, select your app service and click on "deployment center". You can select FTP or other services.

    alt text

    • Use azure DevOps with pipelines/ release management to deploy on your app service (configuration between azure devops and app service are really easy)
    • Use Visual Studio, but prefer web deploy method !
    0 comments No comments

  3. john john 941 Reputation points
    2020-01-10T20:52:00.093+00:00

    as i mentioned using the ftp and web deploy did not work for me...i am asking about other methods

    0 comments No comments