When navigating to Administration - User Management - Authorize Users, clicking Authorize users throws the error: Exception has been thrown by the target of an invocation

Document ID : KB000032050
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue

When navigating to Administration -> User Management -> Authorize Users link, this error occurs: 
Error: Exception has been thrown by the target of an invocation

Environment

CA IT Asset Manager 12.9, any patch level

Resolution 

1.  Update the CA IT Asset Manager WEB server eiam.config file to point to the full path name of the eiam.log4net.config file:

  1. Login into the CA IT Asset Manager webserver.
    Edit the <drive:>\Program Files (x86)\CA\ITAM\Web Server\ eiam.config file
    Locate the following text: <LoggerConfiguration file="eiam.log4net.config"/> 
    Modify this text to add the complete path to the eiam.log4net.config file
        Example:  <LoggerConfiguration file="D:\Program Files (x86)\CA\ITAM\Web Server\eiam.log4net.config"/>
  2. Locate the line that reads:  <Saf directory = "audit" /> and comment it out.
    Example:   <!-- Saf directory = "audit" />  --> 
  3. Save and close the eiam.config file
  4. Edit the <drive:>\Program Files (x86)\CA\ITAM\Web Server\eiam.log4net.config file 
    Locate the entry
        <root>
                <level value="TRACE" />  
    Change TRACE to FATAL
  5. Save and close the eaim.log4net.config file
  6. Perform an IISRESET on the CA IT Asset Manager Web server

 

2.  Update the CA IT Asset Manager APPLICATION server eiam.config file to point to the full path name of the eiam.log4net.config file. 

  1. Repeat the steps a-f above, but use the eiam.config and eiam.log4net.config files located at <drive:>\Program Files (x86)\CA\ITAM\Application Server
  2. Restart the CA IT Asset Manager services on the CA IT Asset Manager Application server

If the steps above do not resolve the problem, then follow the extra step below:

3.  Edit the registry to grant permissions for the Network service account to create a custom event log

  1. Log on to the CA IT Asset Manager Web server as an administrator.
  2. Click Start, click Run, type regedit in the Open box, and click OK. The Registry Editor window appears. 
  3. Go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security", Right click on security and select permissions. 
    Click add, select "Network Service", give it read permissions and click "OK". 
  4. Go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog", right-click Eventlog, and then click Permissions. Permissions for Eventlog dialog box appears. 
  5. Click Advanced. The Advanced Security Settings for Eventlog dialog box appears.
  6. In the Name column, double-click the Users group.  The Permission Entry for Eventlog dialog box appears.
  7. Select the Set Value and the Create Subkey check boxes, and then click OK.
  8. Close the Registry Editor.
  9. Repeat steps a-h on the CA IT Asset Manager Application server.