Client can't connect from server machine

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
RobVK
Posts: 2
Joined: Tue Aug 11, 2009 1:33 pm

Client can't connect from server machine

Post by RobVK » Tue Aug 11, 2009 1:43 pm

This is an odd one and I'm sure I'm just missing a setting somewhere...

I have two machines, call them pc and server. Server has Vault server and Vault client installed, and pc has Vault client installed. The Vault client on pc can connect fine, check files out and check files in etc, all fine. Now I want to use CC.NET on the server so I have installed Vault client on the server machine, but this fails to connect. It gives the following message:

Unable to connect to http://devserver/vaultservice/vaultservice.asmx. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: Client found response content type of 'text/plain; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
System.InvalidOperationException: VaultService.asmx Web Service method name is not valid.
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

--.

I tried both connecting by server name, localhost, 127.0.0.1, but all give me the same problem. On the server I can also connect to the vault service, I get the right screen when I go to /vaultservice/ and I get the web service interface when I go to /vaultservice/vaultservice.asmx.
I've tried changing the value of the <proxy> setting in the config file. Tried usesystemdefault on true and false, tried bypassonlocal true and false, all to no avail.

Both machines are connected on a local network, no proxy server, just onto a switch which goes to an internet router.

I just can't figure it out, it seems so straight forward as it worked straight out of the box when I installed the client on the pc, but on the server it just won't budge...

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Client can't connect from server machine

Post by Beth » Tue Aug 11, 2009 2:14 pm

Are you able to log in to the web client on the server entirely and browse the source code?

Can you look in your Vault Server Log to see if any errors are thrown there at the same time? They might give more details.

Is the 2.0 .NET framework installed on the server? The client needs that.
Beth Kieler
SourceGear Technical Support

RobVK
Posts: 2
Joined: Tue Aug 11, 2009 1:33 pm

Re: Client can't connect from server machine

Post by RobVK » Wed Aug 12, 2009 1:17 pm

Thanks for your response. I can indeed log on and browse the source code through the web front end from the server machine. The log doesn't have any messages other than login / logout events from the pc and a single one from the server from when I logged on using the web front end. The .net framework 2.0 is installed, if it makes any difference, all versions of the framework from 1.0 through to 3.5 are installed on this server.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Client can't connect from server machine

Post by Beth » Wed Aug 12, 2009 3:42 pm

Can you go to the Tools - Options - Network Settings and take a screenshot of what is set there?

The only other time I've see this error is in this forum post: http://support.sourcegear.com/viewtopic.php?f=5&t=6313
Beth Kieler
SourceGear Technical Support

Post Reply