question

johnjohn-0472 avatar image
0 Votes"
johnjohn-0472 asked ·

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

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-webapps
webdeploy.png (14.7 KiB)
ftp.png (12.3 KiB)
n.png (25.5 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoffreyNURIT-4769 avatar image
0 Votes"
JoffreyNURIT-4769 answered ·

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 !


azure-deploy.png (74.6 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

johnjohn-0472 avatar image
0 Votes"
johnjohn-0472 answered ·

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

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
1 Vote"
DSPatrick answered ·

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

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.