Search code examples
svncruisecontrol.netwindows-authenticationvisualsvn

Accessing SVN repo via CruiseControl.NET and Windows Authentication


this is a bit of an ambiguous one as to whether it is for StackOverflow or ServerFault. I figured developers would have as much chance of solving this problem, so I opted for here.

I have two servers:

  • SVNServer. This is a Windows 2003 Server box and hosts VisualSVN which is working fine and allows authentication via Windows Authentication.
  • CCNETServer. This is a Windows 2008 Server box and hosts CruiseControl.NET.

I'd like to set up a link between them both, so in my Project definition on the CCNETServer, I have the following code:

<sourcecontrol type="svn">
  <trunkUrl>svn://appserv1/aspnet/regBook/trunk</trunkUrl>
  <workingDirectory>C:\Program Files\CruiseControl.NET\Website\Registrars\Source</workingDirectory>
  <username>SVNServer\Username</username>
  <password>Password</password>
</sourcecontrol>

This however doesn't seem to work, I constantly get build errors with the message "Failing Tasks : Svn: CheckForModifications" - presumably because it is not authenticating against the server. When you look a bit deeper it says: "Can't connect to host 'SVNServer': No connection could be made because the target machine actively refused it."

I'm not able to create a domain account, but I'm able to amend accounts on both machines. How can I get around this, while trying to keep Windows Authentication for my SVN server? Where should I look for more information?


Solution

  • Your clue is in the error message: "Can't connect to host 'SVNServer': No connection could be made because the target machine actively refused it." You're trying to access a port which nothing is litening on.

    VisualSVN Server doesn't use svn:// on port 3690 - it uses HTTPS on port 8443 by default. So try changing your URL to "https://SVNServer:8443/..." instead of svn://SVNServer.