Open jirikanda opened 6 months ago
If FILE_ATTRIBUTE_SPARSE_FILE cannot be set via SetFileAttributesW and instead requires FSCTL_SET_SPARSE and is not supported on all file systems, MSDeploy.exe should preferably ignore differences on that attribute.
But also the web SDK could be changed not to store that attribute in the zip package. Is the zip package now constructed by a task called by MSBuild, or does the SDK start a MSDeploy process for that purpose? IIRC there is some property that lets the project choose, but what is the default value…?
Hi @KalleOlaviNiemitalo,
thanks for your initial reply.
Is there a plan to fix the issue and allow the WDP created on a DevDrive to be deployed to IIS or Azure App Services using WebDeploy?
@jirikanda, I neither work for Microsoft nor develop MSBuild or MSDeploy, so I don't know what they intend to do with this issue.
Oh, sorry, @KalleOlaviNiemitalo. My mistake... You were the only one who answered. I thought...
Describe the bug
We receive this error when publishing WDP using webdeploy.exe when the WDP comes from a DevDrive.
To Reproduce
We did not reproduce the issue with the ASP.NET WebForms projects. They are deployed with no problems. We did reproduce the issue with most of out ASP.NET Core projects. But not with all of them.
More information
When the WDP is created on a non-DevDrive (NTFS), the msdeploy.exe log contains:
When the WDP is created on a DevDrive (ReFS), the msdepoy.exe log contains:
Our command line looks this way:
Next observation
Then the files in the target are removed before deployment starts, one deployment passes. Next deployment fails again with the same error.
Workaround
Unknown. Do not use DevDrive on build machine(s).
Further technical details