среда, 4 августа 2010 г.

Траблшутинг компонента WebDAV под Windows 2008/R2

Немного о решении типовых проблем с WebDAV.
1. Ошибка в MPSetup.log
<08-04-2010 12:03:50> Failed to get WebDAV settings on the machine (0x80070003)

Решается элементарным включением компонента по инструкции (http://technet.microsoft.com/en-us/library/cc431377.aspx):

Enable WebDAV and create an Authoring Rule

Use the following procedure to enable WebDAV and create an Authoring Rule for Windows Server 2008 and Windows Server 2008 R2:
1. Navigate to Start / All Programs / Administrative Tools / Internet Information Services (IIS) Manager to start Internet Information Services 7 Application Server Manager.
2. In the Connections pane, expand the Sites node, and then click Default Web Site if you are using the default Web site for the site system or SMSWEB if you are using a custom Web site for the site system.
3. In the Features View, double-click WebDAV Authoring Rules.
4. With the WebDAV Authoring Rules page displayed, in the Actions pane, click Enable WebDAV.
5. In the Actions pane, click Add Authoring Rule.
6. In the Add Authoring Rule dialog box, for Allow access to, select All content.
7. For Allow access to this content to, select All users.
8. For Permissions, select Read, and then click OK.

2. Ошибка в MPsetup.log

<12-30-2009 09:00:07> WebDAV settings is not setup appropriately
<12-30-2009 09:00:07> [Allow property queries with infinite depth] should be true (true)
<12-30-2009 09:00:07> [Allow Custom Properties] should be false (false)
<12-30-2009 09:00:07> [Allow anonymous property queries] should be true (false)
<12-30-2009 09:00:07> Allow [All users read access to All content] authoring rule should exist (exist)

Проблема в том, что ВебДАВ то вы скорее всего настроили, но его настройки не перенеслись в файл конфигурации WEBDAV_schema.xml

Решение:
Файл WEBDAV_schema.xml находится тут C:\Windows\System32\inetsrv\config\schema\

1) Останавливаем службу IIS
2) Устанавливаем себя владельцем файла
3) Даем себе полные права на файл
4) Убираем у файла свойство - Только для чтения
5) Исправляем в нем следующие строчки:

<attribute defaultvalue="true" name="allowAnonymousPropfind" type="bool">
<attribute defaultvalue="true" name="allowInfinitePropfindDepth" type="bool">
<attribute defaultvalue="false" name="allowCustomProperties" type="bool">

6) Стартуем службу IIS.
7) Перезапускаем службу SMS Site Component

Проверяем файл mpsetup.log. Если всё проделано правильно, то в нем будет отражен ход установки точки управления.
Также в работоспособности роли можно убедиться пройдя по урлу: http://localhost/SMS_MP/.sms_aut?MPLIST. Который не должен выдавать ошибок и иметь примерно такое содержание:

- <mplist>
- <mp fqdn="SCCM-PRIMARY.CONTOSO.LOCAL" name="SCCM-PRIMARY">
<version>6487</version>
<capabilities schemaversion="1.0">
</capabilities>
- <mp fqdn="sccm-secondary.contoso.com" name="SCCM-SECONDARY">
<version>6487</version>
<capabilities schemaversion="1.0">
</capabilities>
</mp></mp></mplist>

1 комментарий:

  1. Большое спасибо. Вы спасли мне кучу времени.

    ОтветитьУдалить