I have a web application and am trying to deploy it to a web server using MSDeploy.exe (Web Deploy 2)
I tried 4 scenarios:
Via VS2010, publish the method with the following settings:
Publish method: Web deployment
Service Url: https: // MyServerName: 8172 / MsDeploy.axd
Website / application: MyWebSiteName
Allow not to trust: verified
Username: MyUsername
Password: MyPassword
This method works fine.
MyServerName server runs a web management service; I have a MyWebSiteName site, MyWebAppName application and MyUserName for it is IIS Manager.
Via VS2010, publish a method with the following settings:
Publish method: Web deployment
Service Url: https: // MyServerName: 8172 / MsDeploy.axd
Website / application: MyWebSiteName / MyWebAppName
Allow not to trust: verified
Username: MyUsername
Password: MyPassword
This method works very well.
MSDeploy.exe( Powershell script)
$Source =" contentPath = '...._ PublishedWebsites\MyWebApp' "
$Destination = "contentPath = MyWebSiteName, computerName = 'https://fc-wapps-trial: 8172/MsDeploy.axd? Site = WebSiteTest', Username = MyUsername, Password = MyPassword, AuthType = basic "
MSDeploy -verb: sync -source: $Source -dest: $Destination -allowUntrusted
.
MSDeploy.exe( Powershell script)
$Source =" contentPath = '...._ PublishedWebsites\MyWebApp' "
$Destination = "iisApp = MyWebSiteName/MyWebAppName, computerName = 'https://fc-wapps-trial: 8172/MsDeploy.axd? Site = WebSiteTest/MyWebAppName', Username = MyUsername, Password = MyPassword, AuthType = "
MSDeploy -verb: sync -source: $Source -dest: $Destination -allowUntrusted
. .
: ERROR_USER_UNAUTHORIZED
: (" MyServerName") -, . , , , , , .
: : (401) .
, MSDeploy , 2, - :
msdeploy.exe
-source: manifest = '...\MyWebApp.SourceManifest.xml'
-dest: auto, ComputerName = 'https://MyServerName: 8172/MsDeploy.axd? site = WebSiteTest', UserName = 'MyUsername', Password = 'MyPassword', IncludeAcls = 'False', AuthType = ' "
-verb:
-disableLink: AppPoolExtension
-disableLink: ContentExtension
-disableLink: CertificateExtension
-skip: objectname = 'dirPath', absolutepath = '...\App_Data $'
-setParam: kind = 'ProviderPath', scope = 'IisApp', match = '^...\PackageTmp $', value = WebSiteTest/WebAppTest
-setParam: kind = 'ProviderPath', scope = 'setAcl', match = '^..\PackageTmp $', value = WebSiteTest/WebAppTest
-allowUntrusted
-retryAttempts = 2
, 4. , , .
, :
- 4?
- - - IIS7 MSDeploy.exe.