exchange all virtual directory error: An IIS directory entry couldn't be created. The error message is Access is denied.

Andry Haretonuyk 0 Reputation points
2024-10-14T10:52:19.85+00:00

Здравствуйте,

при попытке изменить свойство "проверка подлинности" в ECP возникает ошибка:

Не удалось создать запись каталога служб IIS. Сообщение об ошибке - Access is denied. . HResult = -2147024891

при попытке сбросить виртуальный каталог в ECP ошибка: Exception has been thrown by the target of an invocation.

при этом в PowerShell виртуальные директории пересоздаются и никаких ошибок не возникает

Internet Information Services
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,690 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jake Zhang-MSFT 6,850 Reputation points Microsoft Vendor
    2024-10-15T02:18:26.0033333+00:00

    Hi @Andry Haretonuyk

    Welcome to the Microsoft Q&A platform!

    Based on your description, you are experiencing a permissions issue when trying to change the "Authentication" properties in the Exchange Control Panel (ECP). The error message "Access is denied. HResult = -2147024891" usually means that the required permissions for the action you are trying to perform are not in place.

    Here are several things you can check and try:

    1. Make sure the Exchange Trusted Subsystem group has the appropriate permissions. This group should have Full Control permissions to the Default Web Site in IIS:
    • Open IIS Manager.
    • Navigate to Sites > Default Web Site.
    • Right-click the Default Web Site and select Permissions.
    • Add the Exchange Trusted Subsystem and grant Full Control permissions.
    • Restart IIS and the Exchange server.
    1. Check the identity of the application pool used by the Exchange virtual directory. It should run under "MSExchangeECPAppPooL".
    2. Make sure the directory permissions are set correctly:
    • Navigate to C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess.
    • Right-click "ecp" and select "Properties".
    • Go to the Security tab and make sure the Exchange Trusted Subsystems group has full control over this directory.
    1. Since you mentioned that recreating the virtual directory in PowerShell fixes the issue without errors, you might consider this as a workaround if the above steps don't resolve the issue.
    2. Check Event Viewer for any related events that might provide more insight into the issue.
    3. Make sure there are no DNS misconfigurations that could be causing the issue.

    These steps should help you diagnose and potentially resolve the permissions issue you're facing. If the issue persists, it might be worth considering a deeper investigation into the migration path and the state of the Active Directory schema, especially if this is a new Exchange server coexisting with an older version.


    Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.

    Best,

    Jake Zhang


  2. Andry Haretonuyk 0 Reputation points
    2024-11-15T07:00:03.1966667+00:00

    Привет Jake Zhang-MSFT

    1. Запускал обе команды, ошибок не выявлено
    2. После переустановки IIS - перестал работать, пришлось восстанавливать из бекапа
    3. Информационная безопасность не позволяет обновляться до последних актуальных обновлений
    4. пересоздавал ВСЕ виртуальные директории таким способом в том числе и ECP - ошибки остались
    5. Проверил все "MSExchangeECPAppPooL" работает под ECP

    какие еще могут быть решения данной проблемы, может нужны какие логи ?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.