ssrecagent.exe event id 3027 - code 407

ssrecagent.exe event id 3027 - code 407

book

Article ID: CTX564021

calendar_today

Updated On:

Description

Citrix session recording agent (ssrecagent.exe) does not connect via the network proxy in use on the VDA and in the event log we see Event ID 3027 --- Exception Details --- Type: System.Net.WebException Message: The remote server returned an error: (407) Proxy Authentication Required Proxy is cleared from IE proxy settings and, Winhttp. we're able to access to the recorder server through internet browser. 

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Resolution

To resolve the error, define the correct proxy for session recording agent on the VDA if it does not automatically pickup the correct proxy in use
 
  • Session recording agent does not support using a proxy configuration at present, however as it is a .NET application, we can edit its configuration file to specify network settings.
  1. Locate the the ssrecagent.exe.config file (normally found under %programfiles%\Citrix\SessionRecording\Agent) and edit this file with a test editor
  2. Under the first <configuration>  line, add a new section like this:
 
<system.net>
<defaultProxy 
  enabled="True" 
  useDefaultCredentials="True"> 
    <bypasslist>...</bypasslist> 
    <proxy>...</proxy> 
    <module>...</module> 
</defaultProxy>
</system.net>
 
 
  1. Fill in the various settings so for example enabled and usedefaultcredentials should be set to either true or false.
  2. The other values should be set as to the desired proxy settings: 
  • Bypasslist: Provides a set of regular expressions that describe addresses that do not use the proxy.
  • module:  Adds a new proxy module to the application.
  • Proxy:   Defines a proxy server.
  1. Save the file after you've added the required settings and restart the session recording agent (or simply reboot the VDA)

Problem Cause

ssrecagent.exe proxy settings

Additional Information

Microsoft .NET proxy network element reference:

https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/defaultproxy-element-network-settings