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