Forum Discussion

KosmosKami's avatar
KosmosKami
Copper Contributor
Sep 19, 2023

Correct path in SharedWebConfig.config for ClientAccess

Hello, community.

After installing the next update, I received a non-working OWA. As you may know, Microsoft recommends that you create the file SharedWebConfig.config in ClientAccess folder again using the utility DependentAssemblyGenerator.exe. But, when command

 

DependentAssemblyGenerator.exe -exchangePath "%ExchangeInstallPath%\bin" -exchangePath "%ExchangeInstallPath%\ClientAccess" -configFile "%ExchangeInstallPath%\ClientAccess\SharedWebConfig.config"

 

done, I got the next  I am getting the following content in the file

 

<codeBase version="4.2.0.0" href="file:///C:\Program Files\Microsoft\Exchange Server\V15\\bin\AntiXssLibrary.dll" />

 

or

 

<codeBase version="1.1.5274.28150" href="file:///C:\Program Files\Microsoft\Exchange Server\V15\\bin\AsyncDnsManaged.dll" />

 

So I have a question. Why does there appear another \ character in the path before \bin?

And when I check the server status with script from PSGallery, one of the items is that the file SharedWEbConfig.config is missing. Could this be related?

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Hi KosmosKami,

    the extra \ character in the path before \bin is a typo. The correct path to the SharedWebConfig.config file is:

    C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\SharedWebConfig.config

    To fix the path in the SharedWebConfig.config file, you can use a text editor such as Notepad to open the file and remove the extra \ character. Once you have saved the file, you should restart the Exchange services.

    Yes, the missing SharedWebConfig.config file is likely related to the non-working OWA. To create the SharedWebConfig.config file again, you can use the following command:

    DependentAssemblyGenerator.exe -exchangePath "%ExchangeInstallPath%\bin" -exchangePath "%ExchangeInstallPath%\ClientAccess" -configFile "%ExchangeInstallPath%\ClientAccess\SharedWebConfig.config"

    Once you have created the SharedWebConfig.config file, you should restart the Exchange services.

    Here are the steps to fix the non-working OWA:

    1. Open a command prompt window as an administrator.
    2. Navigate to the Exchange installation directory.
    3. Run the following command:

    DependentAssemblyGenerator.exe -exchangePath "%ExchangeInstallPath%\bin" -exchangePath "%ExchangeInstallPath%\ClientAccess" -configFile "%ExchangeInstallPath%\ClientAccess\SharedWebConfig.config"

    1. Restart the Exchange services.

    Once you have completed these steps, OWA should be working again.

    These are some more reference links for fixing non-working OWA Exchange Server:

    • Jaber's avatar
      Jaber
      Copper Contributor

      Hi,

       

      I have a Problem with ecp and owa in Exchange and want to create a new sharedwebconfig.config, but Exchange is installed on Drive D!! 
      That's why I get an error message: Path not found!
      What should I do now?

       

      Jaber

    • KosmosKami's avatar
      KosmosKami
      Copper Contributor
      Thank you.
      I have a couple more questions. I tried to delete the file and the utility creates it itself with the wrong syntax. It's strange, isn't it? I don't think there's much point in trying it again. I'll try to edit the file in Notepad. And one moment. Need to restart all Exchange services? In the microsoft article it was stated that it is enough to perform iisreset.

Resources