Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Создание вирутальной директории и Access is denied. (0x80070005 )
|
|||
|---|---|---|---|
|
#18+
Пытаюсь создавать вирт. директорию: 1 DirectoryEntry deRoot = new DirectoryEntry("IIS://localhost/W3SVC/1/Root", "Administrator","Password"); 2 deRoot.RefreshCache(); 3 4 DirectoryEntry deNewVDir = deRoot.Children.Add("virdirname", "IIsWebVirtualDir"); 5 6 deNewVDir.Properties["Path"].Insert(0, "c:\\aaa"); 7 deNewVDir.Properties["AppIsolated"][0] = 2; 8 9 deNewVDir.CommitChanges(); 10 deRoot.CommitChanges(); 11 12 deNewVDir.Invoke("AppCreate", true); 13 14 15 // Save Changes 16 deNewVDir.CommitChanges(); 17 deRoot.CommitChanges(); На строке 9 получаю ошибку: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Exception Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Добавление строки <identity impersonate="true" userName="Administrator" password="Password" /> в web.config проблему не решает. На локальной машине все работает прекрасно (xp sp2) На сервере (win2003 Web Edition, iis6) эта ошибка. Единственное, что нашел в гугле это: I was getting this error, but I think I have solved it. I'm not sure it's the best solution, because apparently it opens up some security issues, but it has to do with the application pool you are using for the Web site. If you go to the Web site's application pool's properties and select the identity tag you will see a drop down box next to the "predefined" radio button. Select "Local system" and click apply. Но так жестко поступать с security не хочется. В чем может быть проблема? Скорей бы утро..., и снова на работу!!! http://mykia.ru ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.10.2006, 12:12 |
|
||
|
|

start [/forum/topic.php?fid=18&msg=34079644&tid=1388247]: |
0ms |
get settings: |
7ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
24ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
26ms |
get tp. blocked users: |
1ms |
| others: | 212ms |
| total: | 303ms |

| 0 / 0 |
