【发布时间】: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