Event ID 1309 and you can't access OWA and ECP after you install Exchange Server 2016 or Exchange Server 2013

Symptoms
You successfully installed Microsoft Exchange Server 2016 or Microsoft Exchange Server 2013. The installation process may have failed or been interrupted at some stage and then resumed and finally completed successfully. However, when you try to access Exchange Control Panel (ECP) or Outlook Web App (OWA), you receive the following error message:

something went wrong

Sorry, we can't get that information right now. Please try again later. If the problem continues, contact your helpdesk.


The screenshot for the error message

Additionally, the following event may be logged in the Application log:

Log Name:  ApplicationSource:  ASP.NET 4.0.30319.0Event ID:  1309Task Category:  Web EventLevel:  WarningKeywords:  ClassicUser:  N/AComputer:  Exch2.contoso.comDescription:Event code: 3005Event message: An unhandled exception has occurred.Event ID: f23d9d455f3145068c57286262ac517fEvent sequence: 1Event occurrence: 1Event detail code: 0Application information:        Application domain: /LM/W3SVC/2/ROOT/owa-5-130879214460462920  Trust level: Full  Application Virtual Path: /owa  Application Path: C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\  Machine name: EXCH2Process information:  Process ID: 4348  Process name: w3wp.exe  Account name: NT AUTHORITY\SYSTEMException information:  Exception type: TargetInvocationException  Exception message: Exception has been thrown by the target of an invocation.  at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck,   Boolean&canBeCached, RuntimeMethodHandleInternal&ctor, Boolean&bNeedSecurityCheck)    • SharedWebConfig.config is missing from either of these locations:      C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy      C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess
Cause
This issue occurs if SharedWebConfig.config is missing from either of the following locations:

  • C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy
  • C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess

Resolution
To resolve this issue, follow these steps:

  1. On the server that's facing the problem, identify the location that the file is missing from.
  2. Generate the missing file:

    1. Run cd %ExchangeInstallPath%\bin to change the current directory to the bin folder that's under the Exchange installation path.
    2. Use the DependentAssemblyGenerator.exe tool to generate the file:
      • If the file is missing from C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess, run the following command:
        DependentAssemblyGenerator.exe -exchangePath "%ExchangeInstallPath%\bin" -exchangePath "%ExchangeInstallPath%\ClientAccess" -configFile "%ExchangeInstallPath%\ClientAccess\SharedWebConfig.config"
      • If the file is missing from C:\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy, run the following command:
        DependentAssemblyGenerator.exe -exchangePath "%ExchangeInstallPath%\bin" -exchangePath "%ExchangeInstallPath%\FrontEnd\HttpProxy" -configFile "%ExchangeInstallPath%\FrontEnd\HttpProxy\SharedWebConfig.config"
    3. Run IISRESET, or restart the server.
More information
The SharedWebConfig.config file is generated during the post-installation phase of Setup. If Setup is resumed after an interruption, it does not perform the post-installation steps for the roles that were successfully installed before the interruption.
Properties

Article ID: 3099532 - Last Review: 10/16/2015 23:29:00 - Revision: 2.1

Exchange Server 2016 Enterprise Edition, Exchange Server 2016 Standard Edition, Microsoft Exchange Server 2013 Enterprise, Microsoft Exchange Server 2013 Standard

  • kbsurveynew kbtshoot kbexpertiseinter KB3099532
Feedback