Red Gate forums :: View topic - Compilation error when tester encounters AddCredentials
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation

ANTS Load script tester forum

Compilation error when tester encounters AddCredentials

Search in ANTS Load script tester forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
kconklin



Joined: 11 Nov 2005
Posts: 9

PostPosted: Mon Oct 16, 2006 8:36 pm    Post subject: Compilation error when tester encounters AddCredentials Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6669

PostPosted: Sat Oct 21, 2006 6:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6669

PostPosted: Thu Nov 02, 2006 5:25 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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