Server Error in '/ITAM' Application. when logging into APM/ITAM
search cancel

Server Error in '/ITAM' Application. when logging into APM/ITAM

book

Article ID: 143723

calendar_today

Updated On:

Products

CA Service Management - Asset Portfolio Management CA IT Asset Manager

Issue/Introduction

When try to login  this error is seen

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

Environment

CA Asset Portfolio Management 17.1 and higher

Cause

The above error is highly generic and is meant to mask specific details from end user view, similar to how a web browser can mask most errors as "friendly" error code 500 messages.  

Resolution

In order to investigate the specifics, we will need you to run the instructions that are described in the screencap given.  To do this:

- Go into the ITAM Servers and backup, then access the web.config file located in X:\Program Files (x86)\CA\ITAM\Web Server

- Add the given "customErrors" tag setting into the file and save

- Restart IIS.

To assist in configuring the file, a sample version of the web.config file, file "Web-config-sample.txt", with the changes requested already included is attached to this KB article.  

Additional Information

Please review the sample "Web-config-sample.txt", line 83, as an example of how to deploy the given tag.  Please do not rename the sample file, then attempt to deploy the file by replacing the existing web.config file with the sample file.

The web.config file of interest is specifically located in X:\Program Files (x86)\CA\ITAM\Web Server.  The file should be around 14-15 KB.  There are other web.config files present in the ITAM installation, but they are not applicable to this article.

Example directory listing of web.config files located in a typical ITAM installation.  Only the highlighted one should be modified per this KB:

 Directory of X:\Program Files (x86)\CA\ITAM

08/27/2014  06:20 PM               162 Web.config
               1 File(s)            162 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\Application Server

05/06/2021  06:24 PM             4,573 web.config
               1 File(s)          4,573 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\Import Service

01/14/2020  03:31 PM             2,613 Web.config
               1 File(s)          2,613 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\ITAM RestApi Service

08/14/2024  05:31 PM             7,784 Web.config
               1 File(s)          7,784 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\ITAM RestApi Service\Views

05/19/2022  03:55 PM             1,952 Web.config
               1 File(s)          1,952 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\Storage Manager Service

08/07/2023  08:53 PM             3,669 web.config
               1 File(s)          3,669 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\WCF Service

08/07/2023  08:53 PM             3,723 Web.config
               1 File(s)          3,723 bytes

 Directory of X:\Program Files (x86)\CA\ITAM\Web Server

09/18/2024  06:05 AM            14,575 Web.config
               1 File(s)         14,575 bytes

Attachments

Web-config-sample.txt get_app