使用useChecksum时msdeploy中的NotImplementedException

时间:2013-11-27 10:45:21

标签: c# runtime-error msdeploy webdeploy

我正在努力使用msdeploy(AKA Web部署)来部署应用程序。

我使用的是msdeploy .NET类,没有命令行。只要我指定UseCheckSum参数(无论是true还是false),它就会抛出NotImplementedException。

如果有任何msdeploy开发人员,那么这是堆栈跟踪:

[NotImplementedException: The method or operation is not implemented.]

[DeploymentException: (27.11.2013 11:30:50) An error occurred when the request was processed on the remote computer.]
   Microsoft.Web.Deployment.StatusThreadHandler.CheckForException() +67
   Microsoft.Web.Deployment.StatusThreadHandler.Close() +37
   Microsoft.Web.Deployment.AgentClientProvider.RemoteDestSync(DeploymentObject sourceObject, DeploymentSyncContext syncContext, Nullable`1 syncPass) +1966
   Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId) +306
   Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions) +2692
   Microsoft.Web.Deployment.DeploymentObject.SyncTo(String provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions) +99
   Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions) +101

1 个答案:

答案 0 :(得分:0)

Microsoft已承认这是版本3.5中的错误(也可能是早期版本)。 useCheckSum标志与其他命令行参数不兼容,例如setParamFile和verbose。

详情可在此页面找到:http://forums.iis.net/t/1184709.aspx?+useChecksum+and+whatif+BUG+