Decrypt Web config page fails with error Object reference not set to an instance of an object

Follow
    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • Version Affected:  9.x

    Description:  

    When click on the Tools | Decrypt Web Config option in the Web Admin Console, it errors with the standard Custom Error page. 

    If Custom Errors are turned off, you see the real error 

    mceclip0.png

    Cause:  

    One of the SecureAuthXYZ realm folders in D:\SecureAuth\ is missing a Web.Config file.

    Resolution: 

    The Web.config only goes missing when the SecureAuth administrator themselves has accidentally moved it so they will typically know which realm they've just been working on and should check there. 

    However, the following steps can be performed to get a list of folders where the web.config is missing

    1. RDP into the IdP
    2. Open an Admin Powershell
    3. Run

    GCI "D:\SecureAuth" -Directory | ?{(gci $_.FullName -Filter "web.config").count -eq 0}

    4. This will return a list of Folders where the web.config is missing. 

     

    Note:

    An alternative method and one which also locates missing IIS applications can be found here:

    https://support.secureauth.com/hc/en-us/articles/360043947972-How-to-find-missing-realm-folders-and-IIS-applications

     

     

    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.

    0 out of 0 found this helpful

    Comments

    0 comments

    Please sign in to leave a comment.