0

I am experiencing IE hangup since long. When I execute my tests through nunit directly, it works fine. but when I try to execute them through cc.net they seems to hangup at some point and without any reason. It stops the execution of all tests at that point. And even dont run the teardown fixture in which I am closing IE.

Can anyone plz help me in this regard.

1 Answer 1

1

Have you tried logging on to the CC.NET box as the user under which the service is configured to run and firing up IE? You'll probably find that there is a dialog to specify initial options like Internet connection that the user in question hasn't yet OKed on that machine.

Detailed instructions:

Make a remote desktop connection to the server, or log on to it physically if you have access, using the logon details under which the CC.NET service is configured to run. If it is configured to run as the local system account, you will need to configure it to run as a user account instead to get this working.

Once on the machine, fire up Internet Explorer, and my guess is that you will be presented with the dialog for setting up your Internet connection. Go through the wizard and OK everything. Then log off again. Now, when you try to run your CC.NET build, you should find it works.

Alternative:

You should be able to disble this wizard for the local system account. Check the following registry value:

HKEY_USERS\S-1-5-18\Software\Microsoft\Internet Connection Wizard\Completed

This should have the REG_BINARY value 01 00 00 00. S-1-5-18 is the fixed SID for the Local System account.

6
  • Will I still be able to interact with desktop after using this logon. As prevuisly I am using Local system account and also option of interacting with desktop os checked. As my applciation is interactive.
    – sam
    Jun 26, 2009 at 8:57
  • It should just be a question of setting permissions and granting rights in the local security policy. I'm assuming you have sufficient rights on the CC.NET server to be able to grant these things...
    – David M
    Jun 26, 2009 at 8:58
  • Have added an alternative way around this that may be simpler given what you've added in your comment.
    – David M
    Jun 26, 2009 at 9:03
  • Yes. I have rights to make changes. I just want to know Will the test be able to interact with desktop or not. or by default it allows
    – sam
    Jun 26, 2009 at 9:04
  • Yes, It has the Reg_Binary 01000000. But there is also a ShellNext with Reg_SZ set to testsite. Any idea what that means
    – sam
    Jun 26, 2009 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.