2011-08-12 50 views
1

我收到试图发布一个Visual Studio LightSwitch的2011项目时出现以下错误...的Visual Studio LightSwitch的2011不能通过WebDeploy V2.0部署Web项目+

 
Error 1 The "VSMSDeploy" task failed unexpectedly. 
System.ArgumentException: Version string portion was too short or too long. 
    at System.Version.VersionResult 
      .SetFailure(ParseFailureKind failure, String argument) 
    at System.Version.TryParseVersion(String version, VersionResult& result) 
    at System.Version.Parse(String input) 
    at System.Version..ctor(String version) 
    at Microsoft.Web.Publishing.Tasks.Common.Utility.CheckMSDeploymentVersion() 
    at Microsoft.Web.Publishing.Tasks.Common.Utility.get_IsMSDeployInstalled() 
    at Microsoft.Web.Publishing.Tasks.Common.Utility 
      .CheckMSDeploymentVersion(Task task) 
    at Microsoft.Web.Publishing.Tasks.VSMSDeploy.Execute() 
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd 
      .ITaskExecutionHost.Execute() 
    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(
      ITaskExecutionHost taskExecutionHost, 
      TaskLoggingContext taskLoggingContext, 
      TaskHost taskHost, ItemBucket bucket, 
      TaskExecutionMode howToExecuteTask, Boolean& taskResult) 
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0\ 
      Microsoft.LightSwitch.targets 96410Application3 

我曾尝试重新安装Web部署(通过网站2.0和2.0,通过WebPI),但没有喜悦。

回答

5

事实证明,Visual Studio LightSwitch 2011需要未安装安装程序的Web Deploy 1.1(之前2.0已由WebMatrix安装,我也通过WebPI尝试安装2.1)。我的问题得到解决后,我从Microsoft下载中心下载它:

这的确让我想知道为什么LightSwitch的不支持WebDeploy 2.0/2.1,并且还安装SQL Server Express 2008而不是2008 R2,但这是另一个时间的问题

相关问题