dav_i
dav_i

Reputation: 28107

Strange Web Deploy access issue

I'm getting an odd problem with connecting to a server.

The server's logs read:

2013-05-21 11:18:24 [IP ADDRESS] HEAD /msdeploy.axd site=[SITE NAME] 8172 administrator [MY IP] - 401 1 1326 214

I am using the administrator account so I can't understand why it's not allowing access!

I am using VS2012 and Web Deploy 3.0 on Server 2008R2 x86.


UPDATE

When using the command msdeploy.exe -verb:dump -source:iisApp=<sitename>,username=administrator,password=<urpassword>,authtype=‌​basic,computername=https://<yourserver>:8172/msdeploy.axd?Site=<sitename> -authtype=basic as suggested by @ShaikhOwais I get the following error:

Error Code: ERROR_USER_UNAUTHORIZED More Information: Connected to the remote computer ("[COMPUTER NAME]") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site.

Upvotes: 4

Views: 389

Answers (2)

Maciej
Maciej

Reputation: 2185

As stated in the comment above, you need to qualify the username with the domain to which your admin user belongs.

Your script should thus be:

 msdeploy.exe -verb:dump -source:iisApp=<sitename>,username=
<DOMAIN>\administrator,password=<urpassword>,authtype=‌​
basic,computername=https://<yourserver>:8172/msdeploy.axd?Site=<sitename> 
-authtype=basic

Upvotes: 2

Rajeev Bera
Rajeev Bera

Reputation: 2019

It happen with me and it was share permissions issue that time

Can you try "net use \server\c$\path\to\fodler" and see if you can access this directory?

If it does not help can you please reply - Are you getting first time this error ? was you able to web deploy on the same server earlier or you are doing first time with this server ?

Upvotes: 0

Related Questions