Srver cannot access application directory

venerdì 11 maggio 2007 - 16.46

Gemini Profilo | Expert

Ciao a tutti
ho il seguente problema: quando provo ad aprire un sito da iis ricevo questo errore:

Server Error in '/miosito' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'D:\Inetpub\vhosts\miosito.it\httpdocs\'. 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:\Inetpub\vhosts\miosito.it\httpdocs\'. 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:\Inetpub\vhosts\miosito.it\httpdocs\'. The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +264

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +990
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

Ma quali permessi gli devo dare?
Grazie mille

alx_81 Profilo | Guru

>Ciao a tutti
Ciao!
>ho il seguente problema: quando provo ad aprire un sito da iis
>ricevo questo errore:
>
>Server Error in '/miosito' Application.
>--------------------------------------------------------------------------------
>
>Server cannot access application directory 'D:\Inetpub\vhosts\miosito.it\httpdocs\'.
>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.
>
>Ma quali permessi gli devo dare?
Hai dato l'accesso all'utente ASPNET a quel percorso?
>Grazie mille

Alx81 =)

http://blogs.dotnethell.it/suxstellino

Gemini Profilo | Expert

Ciao e grazie per la risposta,
una domanda semplice, come faccio ad dare l'accesso all'utente ASPNET a quel percorso?
Ancora grazie

alx_81 Profilo | Guru

>Ciao e grazie per la risposta,
>una domanda semplice, come faccio ad dare l'accesso all'utente
>ASPNET a quel percorso?
devi andare sulla cartella che contiene quella di cui vuoi modificare le permission, premere il tasto destro sulla cartella che ti interessa e selezionare proprietà. Lì troverai la clip Protezione.
>Ancora grazie

Alx81 =)

http://blogs.dotnethell.it/suxstellino
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5