locked
Error in ECP and OWA after update RRS feed

  • Question

  • After a recent reboot of an Exchange 2013 server, I can no longer get into OWA or ECP. 

    When rebooting, the server gave me the option to 'Update and Reboot' which I did.  It appears that CU9 was installed according to recent updates however I did not manually apply the update.

    After reboot, all Exchange services and a few other services were set to Disabled.  Using another Exchange server I was able to determine what the startup type should be, set it accordingly and was able to get mail working however I still have some problems.

    OWA will display logon screen but says 'bad request' after entering credentials.  ECP gives the following

    =============================================================
    Could not load file or assembly 'Microsoft.Exchange.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    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: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    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.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Exchange.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace:

    [FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +153
       System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +63
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76

    [ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Exchange.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +12425356
       System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69
       System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +62
       System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +299
       System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1262
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +133
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

    [HttpException (0x80004005): Could not load file or assembly 'Microsoft.Exchange.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12618692
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12458309
    =====================================================================

    I tried to uninstall CU9 but after reboot all services were disabled again.  Now that mail flow is working, I wanted to get some other ideas before experimenting and making things worse.  This appears to be an IIS issue but I welcome ideas, or better yet, solution, on how to get things working again.


    Thank you.



    • Edited by Glen B. _ Sunday, October 25, 2015 10:27 PM
    Sunday, October 25, 2015 10:26 PM

Answers

  • Hi,

    Please try the following steps:

    1. Open IIS Manager. Expand Sites > Exchange Back End.
    2. Click ecp. Open Application Settings in /ecp Home.
    3. Please check whether the value for “BinSearchFolders” is changed to an invalid value. If so, please change it to:
    C:\Program Files\Microsoft\Exchange Server\V15\bin;C:\Program Files\Microsoft\Exchange Server\V15\bin\CmdletExtensionAgents;C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa\bin
    4. Open Web.config file for OWA in the default path C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa. If there is any %ExchangeInstallDir% in the web.config content, replace all of them with C:\Program Files\Microsoft\Exchange Server\V15\.
    5. Please check the web.config file for ECP in Exchange back end and confim if there is any %ExchangeInstallDir% in the web.config content. If that is the case, please replace all of %ExchangeInstallPath% to c:\programfiles\Microsoft\Exchange Server\V15\Bin.
    6. Run IISReset command to restart IIS services.

    If all fails, please ran the command updateCas.PS1 then check whether the issue persists.

    Regards,


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Winnie Liang
    TechNet Community Support

    • Marked as answer by Glen B. _ Wednesday, October 28, 2015 1:05 AM
    Monday, October 26, 2015 12:33 PM

All replies

  • There's no way I can tell you what might have gone wrong, but the fact that services were left disabled tells me that the update did not complete successfully.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Monday, October 26, 2015 5:35 AM
  • Thanks Ed. I would agree. Do you have a course of action to fix this? I tried to uninstall the update but after a reboot the services were disabled again. Do you think trying to install cu10 would be a good idea with the server in its current state?
    Monday, October 26, 2015 12:15 PM
  • Hi,

    Please try the following steps:

    1. Open IIS Manager. Expand Sites > Exchange Back End.
    2. Click ecp. Open Application Settings in /ecp Home.
    3. Please check whether the value for “BinSearchFolders” is changed to an invalid value. If so, please change it to:
    C:\Program Files\Microsoft\Exchange Server\V15\bin;C:\Program Files\Microsoft\Exchange Server\V15\bin\CmdletExtensionAgents;C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa\bin
    4. Open Web.config file for OWA in the default path C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa. If there is any %ExchangeInstallDir% in the web.config content, replace all of them with C:\Program Files\Microsoft\Exchange Server\V15\.
    5. Please check the web.config file for ECP in Exchange back end and confim if there is any %ExchangeInstallDir% in the web.config content. If that is the case, please replace all of %ExchangeInstallPath% to c:\programfiles\Microsoft\Exchange Server\V15\Bin.
    6. Run IISReset command to restart IIS services.

    If all fails, please ran the command updateCas.PS1 then check whether the issue persists.

    Regards,


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Winnie Liang
    TechNet Community Support

    • Marked as answer by Glen B. _ Wednesday, October 28, 2015 1:05 AM
    Monday, October 26, 2015 12:33 PM
  • Have you tried manually installing the update again?

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    • Proposed as answer by Prem P Rana Tuesday, October 27, 2015 4:41 AM
    Monday, October 26, 2015 3:39 PM
  • I have not tried that yet. I wanted to get some other opinions before trying that. Or, would you just try installing cu10 right away.
    Monday, October 26, 2015 5:50 PM
  • I don't think that's a bad idea.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    • Proposed as answer by Prem P Rana Tuesday, October 27, 2015 11:32 AM
    Monday, October 26, 2015 10:49 PM
  • Please try to install the CU10 again. This is the only way.

    PREM RANA MCSE Exchange 2013, MCSA 2012 Server MCTS Exchange 2007,2010, MCITP Exchange 2007,2010 MCSE 2003 Server, MCSA Exchange 2003 ITIL V3 Foundation https://ranaprem.wordpress.com/ This posting is provided AS IS with no warranties,and confers no rights.

    Tuesday, October 27, 2015 4:41 AM
  • I'm hoping to install cu10 tomorrow night. I will report back what happens.
    Tuesday, October 27, 2015 5:12 AM
  • Well, it's working.  Before I retried CU9 or CU10 I thought I'd try Winnie's steps above.

    Ultimately, running the UpdateCAS.ps1 script corrected the issue.

    Thank you all very much for your suggestions and replies.

    Wednesday, October 28, 2015 1:50 AM
  • Glad you have it sorted out.  Please feel free to mark answers as helpful and/or the answer as appropriate.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Wednesday, October 28, 2015 1:53 AM
  • Does running the updateCas.PS1 script during business hours can have any impact to the users ?

    /* Server Support Specialist */

    Wednesday, August 9, 2017 4:50 AM
  • Hi!

    Thanks a lot for your description to fix that case.
    After updateCas.PS1 all works proper again without customer impact.

    Kind Regards

    Wednesday, November 29, 2017 10:44 AM
  • Server Error in '/ecp' Application.


    Could not load file or assembly '2017-12-31 19-00 Copy of AjaxControlToolkit' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    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: System.IO.FileLoadException: Could not load file or assembly '2017-12-31 19-00 Copy of AjaxControlToolkit' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    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.

    Assembly Load Trace: The following information can be helpful to determine why the assembly '2017-12-31 19-00 Copy of AjaxControlToolkit' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    

    Stack Trace:
    [FileLoadException: Could not load file or assembly '2017-12-31 19-00 Copy of AjaxControlToolkit' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
       System.Reflection.Assembly.Load(String assemblyString) +35
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122
    
    [ConfigurationErrorsException: Could not load file or assembly '2017-12-31 19-00 Copy of AjaxControlToolkit' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12761078
       System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +503
       System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +142
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
       System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +203
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +152
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
    
    [HttpException (0x80004005): Could not load file or assembly '2017-12-31 19-00 Copy of AjaxControlToolkit' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929             

    I have some issued in my exchange mail server after login please help. 

    Thursday, January 4, 2018 2:30 AM
  • i ran it, no impact to the users
    Tuesday, May 22, 2018 12:33 PM
  • Thank you very much, you are a real life saver.
    • Edited by Ted Ghiasi Tuesday, August 28, 2018 7:56 AM
    Tuesday, August 28, 2018 7:55 AM
  • I got in yo similar issue on Exchange 2019

    I searched for:

    Get-ChildItem -Path "C:\Program Files\Microsoft\Exchange Server\V15" -Recurse | Where-Object{$_.Name -match "2018-11-26 12-20 Copy of"}

    Then I Removed all "Copy" files

    Get-ChildItem -Path "C:\Program Files\Microsoft\Exchange Server\V15" -Recurse | Where-Object{$_.Name -match "2018-11-26 12-20 Copy of"} | Remove-Item -Force

    issue resolved :)

    Friday, November 30, 2018 5:25 AM
  • Hi,

    To automatically make the changes to set the correct information in the web.config file you can run the UpdateConfigFiles.ps1

    This will decrease your time consuming in fixing the issue.

    Best regards,

    Thursday, March 26, 2020 9:48 AM