GoldMine Web (GMWEB) - Sorry, an error occurred while processing your request. or IIS error: Server Error in '/GoldMine' Application. - Error, failed to get DB environment value. when browsing to the GoldMine Web page

Version 1

    Details

    GoldMine Web (GMWEB) - Sorry, an error occurred while processing your request. or IIS error: Server Error in '/GoldMine' Application. - Error, failed to get DB environment value. when browsing to the GoldMine Web page



    The GMConnect.Log shows the following error:

    2016-04-22 18:43:24,428 - [ERROR] Thread id[8] - GoldMine.Models.ApplicationExceptions.ClientInformationException: Cannot find 'goldmine' section in web config file Error code: 32
    2016-04-22 18:43:24,453 - [ERROR] Thread id[8] - GoldMine.Models.ApplicationExceptions.ClientInformationException: Error, failed to get GoldMine mobile's configuration's directory.,
    GoldMine.Models.ApplicationExceptions.ClientInformationException: Cannot find 'goldmine' section in web config file

       at GoldMine.Models.ConfigurationModels.DirectoryConfigurationGMSys.get_configurationSection()
       at GoldMine.Models.ConfigurationModels.DirectoryConfigurationGMSys.get_SysDirPath()
    2016-04-22 18:43:24,535 - [ERROR] Thread id[8] - GoldMine.Models.ApplicationExceptions.ClientInformationException: Error, failed to get GoldMine mobile's configuration's path.,
    GoldMine.Models.ApplicationExceptions.ClientInformationException: Error, failed to get GoldMine mobile's configuration's directory.

       at GoldMine.Models.Log.GMLoggerFactory.GMLogger.ErrorClientAndServer(Object customMessage, Exception e)
       at GoldMine.Models.ConfigurationModels.DirectoryConfigurationGMSys.get_SysDirPath()
       at GoldMine.Models.ConfigurationModels.DirectoryConfigurationGMSys.get_GMBaseConfigPath()
    ...

    When turning off custom IIS errors (see related Knowledge Article # 16418) the Web page shows the following error

    Server Error in '/GoldMine' Application.
    Error, failed to get DB environment value.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: GoldMine.Models.ApplicationExceptions.ClientInformationException: Error, failed to get DB environment value.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



    Resolution

    [CAUSE]
    - This error may have several reasons for example also wrong registry entries for the GoldMine installation (see for example related Knowledge Article # 21669), but the the GoldMine Connect's used AppPoolIdentity set to Enable 32-bit Application=False will cause the error to happen and needs therefore to be checked

    [RESOLUTION]

    1. Open the IIS Manager on the GoldMine Connect Web server
    2. Browse to the Application Pools
    3. Right click on the GMMobileAppPool (the AppPool GoldMine Connect is using) >> Advanced Settings
    4. Make sure that the Enable 32–bit Application = TRUE



    5. Recommended to restart IIS (iisreset) -  it should be also sufficient to Stop and Start again the GMMobileAppPool
    6. Verify GoldMine Web again




    [ADDITIONAL NOTE]
    - Especially since  GoldMine Connect 2015.2 it is recommended to setup and set a specific  Domain User as identity for the GMMobileAppPool
    - Please refer to the GoldMine Connect Installation Guide for further information