Visual Studio publish error

Sachin Singh 1 Reputation point
2021-01-27T08:19:30.387+00:00

I often get this error whenever i try to publish changes to my website from visual studio using FTP and have to switch to fileZilla though i want to publish only changes and want VS to do it for me but i don't get any success.

Preparing to publish files...
Connecting to ftp://mysite.......
Unable to add folder 'Images' to the Web site. Cannot create folder "Images".

But there is already a folder named images in my server with more that 2000 images in it. I just wanted to upload more images and got this error.

Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2021-01-28T08:02:59.053+00:00

    Hello @Sachin Singh ,

    It seems there are two reasons that may cause this error, Authority and Path.

    For Authority, you can try to access your ftp site by using CMD with the same account information(refer to below screenshot). The command is similar to: ftp://xxx.xxx.xxx and then find any picture, rename it.(for example, rename 1.jpg to 2.jpg by using command like rename 1.jpg 2.jpg)

    61294-ftp.png

    If this works, then the issue should be more related to the path, but if this fails, you need to check the authority. Please share me the content of site path and the folder in the physical path corresponding to the ftp site.

    For Path, I think you need to check the physical path of the ftp site and the content of the directory.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.