ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Web Agent On IIS :: 500: Server Error InvalidOperation : Unable to load SiteMinder agent configuration object

book

Article ID: 212369

calendar_today

Updated On:

Products

SITEMINDER CA Single Sign On Agents (SiteMinder)

Issue/Introduction

 

When running a Web Agent on IIS, each request ends up with 500 errors
and no other detail :

  PS C:\Users\jsmith.TRAINING> Invoke-WebRequest http://WIN-8C8ABM35639.training.com/ -UseBasicParsing
  Invoke-WebRequest : 500: Server Error []
  500: Server Error
  At line:1 char:1
  + Invoke-WebRequest http://WIN-8C8ABM35639.training.com/ -UseBasicParsi ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Looking at Windows Events Application logs, a problem with the "agent
configuration object" is observed :

  PS C:\Users\administrator.TRAINING> Get-EventLog -LogName Application -EntryType Error

     Index Time          EntryType   Source                 InstanceID Message
     ----- ----          ---------   ------                 ---------- -------
      2887 Apr 08 16:18  Error       SiteMinder Agent       3221225476 Unable to load SiteMinder agent configuration object....

 

Cause

 

In WebAgent.conf file, we can see there's a "0" added to the ACO name.

WebAgent.conf :

  AgentConfigObject="win20160"

Checking the ACO in the AdminUI, we can see that Agent Configuration
Object "win20160" doesn't exist. But there's one without ending 0 as
"win2016".

 

Environment

 

Web Agent 12.52SP1CR09 on IIS on Windows 2016;

 

Resolution

 

Setting back the expect ACO name by removing the ending 0 :

WebAgent.conf :

  AgentConfigObject="win2016"

solved the issue.

The protected resource on the IIS can be accessed :

  PS C:\Users\jsmith.TRAINING> Invoke-WebRequest http://WIN-8C8ABM35639.training.com/ -UseBasicParsing

  StatusCode        : 200
  StatusDescription : HTTP/1.1 200 OK
  Content           : <!-- SiteMinder Encoding=UTF-8; -->

        <html>

        <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
   <title>SiteMinder Password Services - en-US</title>

        <!-- Cross-frame scriptin...
  RawContent        : HTTP/1.1 200 HTTP/1.1 200 OK
        Content-Length: 3194
        Cache-Control: no-store
        Content-Type: text/html;charset=UTF-8
        Date: Thu, 08 Apr 2021 13:48:50 GMT
        Set-Cookie: SMLOCALE=en-US; path=/
        Server: Mic...
  Forms             :
  Headers           : {[Content-Length, 3194], [Cache-Control, no-store], [Content-Type, text/html;charset=UTF-8], [Date, Thu, 08 Apr 2021 13:48:50 GMT]...}
  Images            : {}
  InputFields       : {}
  Links             : {}
  ParsedHtml        :
  RawContentLength  : 3194

And the Web Agent starts fine :

WebAgent.log :

  [3632/368][Thu Apr 08 2021 15:40:53] SiteMinder IIS 10.0 WebAgent,
  Version 12.52 QMR01, Update HF-09, Label 2620.

  [3632/368][Thu Apr 08 2021 15:40:53] FileVersion: 12.52.0109.2620.

  [...]

  [3632/368][Thu Apr 08 2021
  15:40:53][LLAWPLogQ.cpp:661][INFO][sm-AgentFramework-00590] LLAWP:
  Logging initialized.

  [3632/4068][Thu Apr 08 2021
  15:40:53][LLAWorkerProcess.cpp:1554][INFO][sm-AgentFramework-00680]
  LLAWP: Initialization complete.

  [3632/3216][Thu Apr 08 2021
  15:40:53][LLAWPMsgBus.cpp:419][INFO][sm-AgentFramework-00660] LLAWP:
  Message bus initialized.

  [2056/372][Thu Apr 08 2021
  15:40:57][CSmLowLevelAgent.cpp:5252][INFO][sm-AgentFramework-00510]
  LLA: Logging initialized.

  [2056/372][Thu Apr 08 2021
  15:40:57][SmPlugin.cpp:66][INFO][sm-AgentFramework-00170] Agent
  Framework plug-in 'SM_WAF_HTTP_PLUGIN' initialized.  Description
  'SiteMinder Agent HTTP Plug-in'.

  [2056/372][Thu Apr 08 2021
  15:40:57][CSmAdminManager.cpp:853][INFO][sm-AgentFramework-00320]
  ADMIN: Received key update attribute 'KEY_UPDATE_PERSISTENT'.

  [...]

  [2056/372][Thu Apr 08 2021
  15:40:57][CSmAdminManager.cpp:871][INFO][sm-AgentFramework-00310]
  ADMIN: Successfully processed key update attribute 'PERSISTENT'.

  [2056/372][Thu Apr 08 2021
  15:40:57][CSmAdminManager.cpp:261][INFO][sm-AgentFramework-00280]
  ADMIN: Administration Manager initialized.

  [2056/372][Thu Apr 08 2021
  15:40:57][CSmHighLevelAgent.cpp:191][INFO][sm-AgentFramework-00380]
  HLA: Initialization complete.