13-04-22 03:51 PM
request.PreAuthenticate = true;
request.Credentials = CredentialCache.DefaultNetworkCredentials;
13-04-22 04:29 PM
13-04-22 08:26 PM
14-04-22 10:20 AM
14-04-22 10:50 AM
14-04-22 11:46 AM
14-04-22 03:37 PM
15-04-22 01:22 PM
16-04-22 01:29 PM
@UditKhanna, @Sandeep Satish,
As both Pablo and Charlie have mentioned, the HTTP 500 error is indicative of an issue on the server side.
The example code Udit provided in the original post is a valid example of how to associate the logged-in user's credentials with the request, although I'm not sure in pre-auth is really required.
I'd suggest working with your CyberArk administrator, and see if they can review the server-side logs to ascertain the nature of the HTTP 500 response.
Cheers,
20-04-22 06:06 PM