2012-04-17 73 views
1

我有一個遠程計算機上的IIS中的一個網站。我想將遠程服務器上的網站同步到本地IISExpress。目前我沒有我的本地IISExpress站點。我現在用的是以下msdeploy.exe命令行(在這裏我格式化它的幾行,但當然,實際的命令是單行線):網絡/同步msdeploy到IISExpress失敗

msdeploy.exe 
-verb:sync 
-source:webApp="mysubdomain.mydomain.com",computername=mycomputer,userName=myuser,password=mypassword 
-dest:auto 
-apphostconfigdir=C:\Users\steen\Documents\IISExpress\config 
-webserverdir="c:\program files (x86)\IIS Express" 

我獲得以下錯誤返回:

Error: Application Definition with path 'mysubdomain.mydomain.com' does not exist. 

上午我做錯了嗎?

我需要對我的本地IISExpress網站之前,我可以同步(在那裏,如果我必須在本地第一任何解決方法嗎?)?

回答

1

在-source參數,請嘗試使用網絡應用程序的名稱WEBAPP(例如webApp="wordpress")和指定的URL在計算機名說法服務器。我不認爲你需要有本地網站開始的,但當然,你需要擁有的任何Web應用程序的網站使用本地安裝。

鏈接:Web應用程序:Web Deploy webApp Provider;計算機名:Web Deploy Provider Settings