【问题标题】:msbuild error MSB3191: Unable to create directory while publishing in remote servermsbuild 错误 MSB3191:在远程服务器中发布时无法创建目录
【发布时间】:2017-02-06 06:16:03
【问题描述】:

我正在尝试使用 Bamboo 将 .Net 项目部署到远程服务器。 我是竹子新手 我已经使用了 msbuild 任务

msbuild <solution file> /p:DeployOnBuild=true /p:PublishProfile="publishXMLFile"

发布XML文件:

<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <PropertyGroup>
   <WebPublishMethod>FileSystem</WebPublishMethod>
   <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
   <LastUsedPlatform>Any CPU</LastUsedPlatform>
   <SiteUrlToLaunchAfterPublish />
   <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
   <ExcludeApp_Data>False</ExcludeApp_Data>
   <publishUrl>\\<server.IP.Address>\Path\To\Publish\Folder</publishUrl>
   <DeleteExistingFiles>True</DeleteExistingFiles>
 </PropertyGroup>
</Project>

当前登录的用户在服务器中具有管理员权限,并且该文件夹也是共享的。 我仍然收到以下错误:

 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FileSystem.targets(93,5): error MSB3191: Unable to create directory "\\<server.IP.Address>\Path\To\Publish\Folder". Access to the path '\\<server.IP.Address>\Path\To\Publish\Folder' is denied. [C:\bamboo\bamboo-agent-home\xml-data\build-dir\132710426-132546751\Project\Path\ProjectName.csproj]

我不明白我错过了什么。

我是竹子新手。

【问题讨论】:

    标签: .net msbuild msdeploy bamboo msbuild-task


    【解决方案1】:

    错误消息显示权限被拒绝。请检查 Bamboo 用户是否有创建或修改目录的权限。 “\\Path\To\Publish\Folder”。它可能缺少递归权限。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-30
      • 1970-01-01
      • 1970-01-01
      • 2015-02-27
      • 2015-07-29
      • 2016-10-13
      • 2022-01-18
      • 1970-01-01
      相关资源
      最近更新 更多