Compilation error when tester encounters AddCredentials

A tool for running ANTS Load projects interactively

Compilation error when tester encounters AddCredentials

Postby kconklin » Mon Oct 16, 2006 7:36 pm


I'm trying the script tester but I'm consistently getting a script compilation error "Name 'Authentication' is not declared" on the following line:

WebClient.HttpRequest.AddCredentials(Authentication.AuthType.NTLMv2, "domain", "username", "password")

I've also tried replacing the enum reference with the constant value, in which case I get an error telling me that AddCredentials was called with the wrong number of arguments.
Kevin Conklin
Software Design Engineer in Test
Xerox Global Services
Posts: 9
Joined: Fri Nov 11, 2005 3:04 pm

Postby Brian Donahue » Sat Oct 21, 2006 5:52 pm

Hi Kevin,

I'll change the program so the script compilation will not fail, but I'm not going to support the addcredentials method as Internet Explorer will transparently pass your logon credentials anyway.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Postby Brian Donahue » Thu Nov 02, 2006 4:25 pm


I've now updated the ANTS Script tester so that there is a dummy method for addcredentials. The script test run should still work with Windows authentication as it should pass your current login credentials instead of whatever you have specified in the AddCredentials method.

I've chosen not to fully implement AddCredentails because it would involve risking a bit too much of the ANTS Load source code to disassembly by 'curious' users.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Load script tester

Who is online

Users browsing this forum: No registered users and 0 guests