无法复制 FTP 服务器上的文件

本文关键字:文件 服务器 FTP 复制 | 更新日期: 2023-09-27 18:37:01

Copying all files to temporary location below for package/publish:
    obj'Release'Package'PackageTmp.
    2>Publishing folder /...
    2>Unable to add 'index.aspx' to the Web site.  Access is denied (550).
    2>Unable to add 'jquery-1.7.1.min.js' to the Web site.  Access is denied (550).
    2>Unable to add 'jquery.dropotron-1.0.js' to the Web site.  Access is denied (550).
    2>Unable to add 'style.css' to the Web site.  Access is denied (550).
    2>Unable to add 'Web.config' to the Web site.  Access is denied (550).
    2>Unable to add folder 'bin' to the Web site.  Cannot create folder "bin".
    2>Unable to add folder 'images' to the Web site.  Cannot create folder "images".
    2>Site was published successfully ftp://myblogstory.somee.com/
    2>
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    ========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

我的登录是正确的,所以我应该有权限这样做。有什么想法吗?

无法复制 FTP 服务器上的文件

当您对尝试上传的文件夹(或尝试编辑的文件)没有写入权限时,可能会出现 550 错误。

鉴于您发布的消息,您正在尝试将文件上传到FTP的根目录。您可能需要将文件上传到子文件夹,通常(但并非总是)在Windows托管中/wwwroot

也可能是您的FTP凭据仅具有读取权限,因此您无法将任何文件或文件夹放入FTP服务器。

尝试使用 FTP 客户端(例如 FileZilla)检查您的 FTP 凭据,看看您是否可以直接上传文件并创建文件夹。