'Can´t publish my .net5.0 MVC web-app on ftps azure server! error during publishing - error while creating
i am using visual studio 2022 for my asp.net mvc web app. Now i want to launch it with ftp-server. It is my first time and i have problems. I tried to launch it in vs2022 and after publish i get this output:
Error during publishing.
Error during creation. See the output window for more details.
A diagnostic log was saved to the following location:
C:\Users\username\AppData\Local\Temp\tmp73DX.tmp
When i look into the file, there i says:
02.02.2022 10:34:47
System.AggregateException: At least one error occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Error while creating. See the output window for more details.
--- End of internal exception stack monitoring ---.
---> (Internal exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Error while creating. See the output window for more details.<---.
Microsoft.WebTools.Shared.Exceptions.WebToolsException: error while creating. See the output window for more details.
===================
*Translated with www.DeepL.com/Translator (free version)
So when i look in the command line in vs2022 it says
Create started...
1>------ Create started: Project: XXX, Configuration: Release Any CPU ------
1>XXX -> C:\Users\username\Downloads\XXX.xxx-master\xxx.gui\v1\XXX-main\XXX\bin\Release\net5.0\XXX.dll
1>XXX -> C:\Users\username\Downloads\XXX.xxx-master\xxx.gui\v1\XXX-main\XXX\bin\Release\net5.0\XXX.Views.dll
2>------ Release process started: Project: XXX, Configuration: Release Any CPU ------
The connection with "ftps://xxx-xxx-xxx-xxx.ftp.azurewebsites.windows.net/https://xxx-xxx-xx-xx-x.azurewebsites.net" is established...
Cannot create website "ftps://xxx-xxx-xxx-xxx.ftp.azurewebsites.windows.net/https://xxx-xxx-xx-xx-x.azurewebsites.net". Cannot create folder "https://xxx-xxx-xx-xx-x.azurewebsites.net".
2>Error creating. See the output window for more details.
========== Create: 1 successful, 0 failed, 0 current, 0 skipped ==========
========== Publishing: 0 successful, 1 error, 0 skipped ==========
I am not sure, wether my destination-url, server-address and websitepath is correct. server-address: Is ftps://xxx-xxx-xxx-xxx.ftp.azurewebsites.windows.net/ correct or do i need /site/wwwroot website-PATH: https://xxx-xxx-xx-xx-x.azurewebsites.net destination-url: ftps://xxx-xxx-xxx-xxx.ftp.azurewebsites.windows.net/ (same as server-address)
the ftp-server is emtpy and only for this project. I am not able to publish with Azure, because i dont have to credential for this, i am only admin for ftp-server.
What is the problem here? Why i get the error and can´t publish? Can u help me :)
Thanks
Solution 1:[1]
To Publish your Web App using FTP/FTPS Server
- In VS 2022 , Solution Explorer, right-click your project and choose Publish.
- Select FTP/FTPS Server , provide the necessary connection details and click on Finish.

- Click Publish and Visual Studio deploys your web app to the provided FTP or FTPS Server.
If you are not sure that your FTP credentials are correct
From Visual Studio, applications can be published directly to the following targets:
Finding Azure App Service FTP Credentials
- To find FTP user/password Credentials to easy access Azure App Service Log in to Azure Portal =>Your App service => Deployment Center => Switch to FTPS credentials Tab => Application scope section, you will find username/password inputs => Click "Show"

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | HarshithaVeeramalla-MT |
