How to create a deployment package in Visual Studio 2010 without the ftpServer tag?

Each time I right-click in my web project to create a deployment package, it generates a zip file. This zip contains a file with the name:

- archive.xml 

The problem is that when this file is generated, its contents has this tag:

 <ftpServer allowUTF8="true" MSDeploy.allowUTF8="1" serverAutoStart="true" MSDeploy.serverAutoStart="1" MSDeploy.MSDeployLinkName="ftpServer"> bla bla bla bla </ftpServer> 

In fact, when this tag is present, when I connect to the remote IIS using my IIS 7.5, I cannot import the package. I always need to remove ftpServer to import the site without errors.

Is there a way to create my deployment package without the ftpServer tag in archive.xml?

I see that version of msdeploy 2 is used by Visual Studio:

 "C:\Program Files (x86)\IIS\Microsoft Web Deploy V2\msdeploy.exe" -source:archiveDir='D:\site\manifest' -dest:manifest='D:\site\obj\DEV\Package.TempLocalDeployManifest.xml',IncludeAcls='False' -verb:sync -disableRule:IISConfigFrom64To32 -enableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -disableLink:FrameworkConfigExtension -replace:objectname='application',targetattributename='applicationPool',replace='MsBuild_Temp_5ED29B38-3E2D-4835-B2D8-8FDFBDF1D8B2' 
+4
source share
1 answer

In the IIS environment that you linked to your web project, it may be running an FTP server. If you remove this FTP server from IIS to localhost (presumably), the Web Deploy pipeline will stop trying to enable its IIS settings as part of the deployment package.

Alternatively, you can uncheck the "Enable IIS settings configured in IIS / IIS Express" checkbox on the "Package / Publish Web" tab of your web project, although this will mean that you will have to manually manage IIS settings.

0
source

Source: https://habr.com/ru/post/1344801/