Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 582723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:43:03+00:00 2026-05-13T14:43:03+00:00

As a long-time lurker on SO, I’m popping my question cherry with a tricky

  • 0

As a long-time lurker on SO, I’m popping my question cherry with a tricky one regarding CruiseControl.NET, Subversion, and a remote repository. Here’s the problem:

Take a remote Subversion 1.6.6 repository running on Windows Server 2008 SP2, using Apache 2.2.14 as the gateway to enable access on Port 80 and 443 – we redirect unencrypted traffic to the secure port, and we have a properly-configured SSL layer running with a self-signed certificate. This all works – I can point a browser from my local machine (XP SP2 or Server 2008 SP2) to this repository, pass through the certificate verification painlessly, authenticate against the repository ACL, and see stuff in there. Equally, SVN commands executed on my local machine (either at the commandline or via TortoiseSVN) work flawlessly.

Now add CruiseControl.NET 1.4.4.83 – running for the moment on my local machine with a simple script to pull some sourcecode from the remote repository, and build a very basic application. This same script works perfectly against a local repository, so the only difference is the Subversion URL, which is now pointing to the remote server.

If I run CC.NET in a commandline shell (ccnet.exe) under my own account, it works.

If I run CC.NET as a service (ccservice.exe) however, it fails; by default, it runs as LOCALSERVICE, but I have already altered this to run with my credentials. In this mode, the very first Subversion command issued (SVN LOG) fails, complaining that it cannot connect to the server.

I have spent a good four or five days investigating this; I know it’s not a firewall-type problem, because the exact same command that CC.NET issues works in a commandline shell, and of course I can connect to the remote server via TortoiseSVN and a browser. It’s not the SSL and/or certificate getting in the way, as I have already imported the certificate – and again, this works fine in ‘manual’ mode using TortoiseSVN, a browser, or SVN commands at the commandline. It’s not a DNS resolution issue, because I can specify the actual IP address of the remote server, and it still fails to connect – but of course connects OK if I run in commandline mode…

I’ve even downloaded and prowled through the CC.NET sourcecode to see if there’s anything odd going on. As far as I can see, the only difference regarding issuing commands when running in service-mode is that an AllocConsole call has been made to prepare a console for the Subversion command processes to latch on to when they’re spawned.

The best guess I can make, at this stage, is that the AllocConsole session is somehow fundamentally different from a standard commandline session – in that, even though the service is running under my user credentials, somehow the AllocConsole does not have ‘proper’ network access. However, I don’t know enough about AllocConsole or the CC.NET sourcecode to be able to prove this, and I’m therefore at an impasse.

For the moment, I’m running CC.NET in commandline mode; however, this just feels unsatisfactory, because we prefer to run it in service mode (which works fine against repositories in our local domain) to avoid the necessity creating a scheduled task to start it up when the machine starts.

Anyone got any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:43:04+00:00Added an answer on May 13, 2026 at 2:43 pm

    Cracked it. It wasn’t a firewall problem, it was a proxy problem.

    We use Bluecoat here (yes, I know, not my call) and so the Subversion ‘servers’ file, which lives at ‘C:\Documents and Settings\All Users\Application Data\Subversion\’ on all our developer PCs has an entry to let us bypass the proxy to get out to specific external repositories. However, we tend to use TortoiseSVN mostly, and access this file through the property sheet – until now, not realising that it’s a Subversion file, not a TortoiseSVN file.

    Naturally, since we don’t use TortoiseSVN on the build servers, we’ve never messed with the ‘servers’ file. However, now that CruiseControl.NET needs to get to an external repository (previously it has only talked to our internal repositories) it was unable to get past the Bluecoat roadblock.

    Once the puzzle clicked into place, I created a ‘servers’ file on the build box, added our bypass configuration to it, and suddenly CruiseControl.NET and Subversion in Service Mode can see the remote repository.

    I’m still not entirely sure why it worked in commandline mode but not service mode, but I’ve fixed it so I’m happy. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Long time lurker, first time poster here. My question is: Using C# 2.0, is
First time question asked long time lurker. I'm working on a Silverlight app with
long time lurker, first question! I am struggling to optimize this query, which selects
Long time lurker of the forums, I have a question based on the MVC
I've been a long time browser here, but never have had a question that
Long time lurker, first time poster. I have a page that can dynamically (with
Long time lurker, first time poster. I have found some good answers on here
Long time lurker, first time poster. I've found tons of stuff on here about
First time poster, long time lurker :) I have a form setup that posts
Hello stackoverflow , long time lurker first time asker. Anyways I am creating a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.