Red Gate forums :: View topic - Cannot add a target machine with basic authentification
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Cannot add a target machine with basic authentification

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
samer_lm



Joined: 10 Mar 2014
Posts: 3

PostPosted: Mon Mar 10, 2014 8:07 pm    Post subject: Cannot add a target machine with basic authentification Reply with quote

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 ?
Back to top
View user's profile Send private message
Mike Upton



Joined: 11 May 2011
Posts: 134
Location: Red Gate

PostPosted: Tue Mar 11, 2014 12:23 pm    Post subject: Reply with quote

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.
_________________
Mike Upton

Software Engineer
Red Gate Software Ltd.
Back to top
View user's profile Send private message
samer_lm



Joined: 10 Mar 2014
Posts: 3

PostPosted: Tue Mar 11, 2014 1:15 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Mike Upton



Joined: 11 May 2011
Posts: 134
Location: Red Gate

PostPosted: Tue Mar 11, 2014 1:22 pm    Post subject: Reply with quote

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'.
_________________
Mike Upton

Software Engineer
Red Gate Software Ltd.
Back to top
View user's profile Send private message
samer_lm



Joined: 10 Mar 2014
Posts: 3

PostPosted: Tue Mar 11, 2014 1:51 pm    Post subject: Reply with quote

Changing the port was my issue. Now, it works.

Thanks,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group