у меня установлен .NET FrameworkSDK. При попытке открытия браузером любого aspx файла (
http://localhost/...) возникает ошибка (ее текст ниже) Кто-нибудь знает причину этого? Примеры QuickStart сконфигурированы как описано в прилагаемом документе, на папки с примерами стоят необходимые разрешения в IIS... Я пробовал все сносить, в т.ч. IIS, переставлял по-новой — не работает, просто запарился уже
Server Error in '/QuickStart' Application.
------------------------------------------------------------------------------
Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.
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.Web.HttpException: Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.
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.
Stack Trace:
[HttpException (0x80004005): Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +256
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +926
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
Здравствуйте weqweqw, Вы писали:
W>у меня установлен .NET FrameworkSDK. При попытке открытия браузером любого aspx файла (http://localhost/...) возникает ошибка (ее текст ниже) Кто-нибудь знает причину этого? Примеры QuickStart сконфигурированы как описано в прилагаемом документе, на папки с примерами стоят необходимые разрешения в IIS... Я пробовал все сносить, в т.ч. IIS, переставлял по-новой — не работает, просто запарился уже
W>Server Error in '/QuickStart' Application.
W>------------------------------------------------------------------------------
W>Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.
W>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.
W>Exception Details: System.Web.HttpException: Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.
Было у нас такое на W2K. Админ не нашел другого решения, кроме как сделать акаунт ASPNET локальным администратором.
я добавил ASPNET в группу администраторов, теперь выдается другая ошибка...
как расшифровать эти сообщения об ошибках — что там значат цифры с плюсами и номер HttpException?
Server Error in '/QuickStart' Application.
--------------------------------------------------------------------------------
Access denied to 'd:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\QuickStart\' directory. Failed to start monitoring directory changes.
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.Web.HttpException: Access denied to 'd:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\QuickStart\' directory. Failed to start monitoring directory changes.
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.
Stack Trace:
[HttpException (0x80004005): Access denied to 'd:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\QuickStart\' directory. Failed to start monitoring directory changes.]
System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) +444
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +324
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +926 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
Здравствуйте weqweqw, Вы писали:
W>у меня установлен .NET FrameworkSDK. При попытке открытия браузером любого aspx файла (http://localhost/...) возникает ошибка (ее текст ниже) Кто-нибудь знает причину этого? Примеры QuickStart сконфигурированы как описано в прилагаемом документе, на папки с примерами стоят необходимые разрешения в IIS... Я пробовал все сносить, в т.ч. IIS, переставлял по-новой — не работает, просто запарился уже
W>Server Error in '/QuickStart' Application.
W>------------------------------------------------------------------------------
W>Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.
W>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.
W>Exception Details: System.Web.HttpException: Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.
W>Source Error:
W>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.
W>Stack Trace:
W>[HttpException (0x80004005): Server cannot access application directory 'D:\Program Files\Microsoft.NET\FrameworkSDK\Samples\QuickStart\'. The directory does not exist or is not accessible because of security settings.]
W> System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
W> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +256
W>[HttpException (0x80004005): ASP.NET Initialization Error]
W> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +926
W> System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
W>------------------------------------------------------------------------------
W>Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
Если машина контроллер домена, то это ожидаемая ситуация (KB на support.microsoft.com)
Все ASPX-приложения по умолчанию запускаются от лица ASPNET user, чего на контроллере оказывается мало
Так что залезь в machine.config и поменяй ASPNET на более привилигированного пользователя (у меня это SYSTEM)
Если машина является контроллером домена это ожидаемая ситуация (смотри KB на support.microsoft.com)
Общий смысл таков, что все ASPX-приложения запускаются от
Спасибо всем, заработало, только пока точно не знаю из-за чего — я заменил в machine.config юзера ASPNET на SYSTEM и добавил для нужной папки пользователя IUSR_MACHINENAME. Скорей всего все-таки первое...
Здравствуйте rommix, Вы писали:
R>Спасибо всем, заработало, только пока точно не знаю из-за чего — я заменил в
Спасибо у нас оценками выражают.
>machine.config юзера ASPNET на SYSTEM и добавил для нужной папки пользователя >IUSR_MACHINENAME. Скорей всего все-таки первое...
Скорее помогли оба действия. Они за разные вещи отвечают.