【问题标题】:publishing issue mvc application发布问题 mvc 应用程序
【发布时间】:2014-08-22 10:47:49
【问题描述】:

我正在尝试通过 Visual Studio 2012 部署一个 asp.net mvc 应用程序。我遇到了这个异常:

有什么想法吗?

PS:

.pubxml

<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. 
-->
<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>
    <PrecompileBeforePublish>True</PrecompileBeforePublish>
    <EnableUpdateable>False</EnableUpdateable>
    <DebugSymbols>False</DebugSymbols>
    <WDPMergeOption>DonotMerge</WDPMergeOption>
    <ExcludeApp_Data>False</ExcludeApp_Data>
    <publishUrl>\\somwhere\bladibla\</publishUrl>
    <DeleteExistingFiles>True</DeleteExistingFiles>
  </PropertyGroup>
</Project>

【问题讨论】:

  • 您能发布您的 .pubxml 文件吗?可能目标目录设置不正确。
  • 谢谢。看 ps - 看不出有什么不对...
  • 看看stackoverflow.com/questions/22451356/… 。似乎与您发布名称中的特殊字符有关。
  • 谢谢 - 就是这样。如果您喜欢,请发布答案...

标签: asp.net-mvc visual-studio-2012


【解决方案1】:

这与发布设置名称中的特殊字符有关。看看:VS2012 & 2013: Can't publish Services project - specified path is too long

【讨论】:

    猜你喜欢
    • 2023-04-01
    • 1970-01-01
    • 2010-10-05
    • 2014-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多