|
Go to product support center
|
ANTS Load script tester forum
|
Compilation error when tester encounters AddCredentials
|
Search in ANTS Load script tester forum
|
|
|
|
|
|
|
| Author |
Message |
kconklin
Joined: 11 Nov 2005 Posts: 9
|
Posted: Mon Oct 16, 2006 8:36 pm Post subject: Compilation error when tester encounters AddCredentials |
|
|
Hello,
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 |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Sat Oct 21, 2006 6:52 pm Post subject: |
|
|
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
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Thu Nov 02, 2006 5:25 pm Post subject: |
|
|
Hi,
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
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group