Cannot add a target machine with basic authentification

samer_lmsamer_lm Posts: 4
edited March 11, 2014 8:51AM in Deployment Manager
I have Web service project hosted by IIS and configured with basic authentification.
When i try to add it as a target machine, i get this error :

2014-03-10 14:58:56 -04:00 ERROR System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="localhost"'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

How can i configure the deployment manager in order to pass the username and password to the target machine ?


  • You don't add IIS directly as a target machine; you need to install a Deployment Agent on the server hosting IIS and add that as the target machine. This documentation page should help you get set up.
    Development Lead
    Redgate Software
  • Yes, that s exactly what i did. I just want to add it from my deployment manager server (for my test case, the deployment manager and the web service project are hosted in the same machine). So in the same machine i installed the deployment manager and the Agent service.

    I think what is missed here is the user credentials (like the Add sql server form) in order to authenticate to the web service application.
  • Deployment Manager will never talk directly to your web service application, so it doesn't need the user credentials for the service. The address you should be adding in the 'Add target machine' dialog is the address and port of the Deployment Agent, not your web service. So, if your agent is installed on the same machine as the Deployment Manager server, you'll probably want to use 'localhost' in the address field (i.e. next to the 'http' label), and leave the port field as '10301'.
    Development Lead
    Redgate Software
  • Changing the port was my issue. Now, it works.

Sign In or Register to comment.