PDA

View Full Version : Condivisione cartella


bizzu
11-10-2004, 23:10
Ho scritto una paginetta in ASP.NET per scaricare dei file da remoto. Ho creato una cartella apposita e gli ho dato i permessi anche in scrittura... ma quando eseguo lo script mi dą questo messaggio di errore:
Access to the path "C:\Inetpub\wwwroot\prova" is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Io vorrei fare come mi consiglia il messaggio d'errore, ma se vado nella proprietą della cartella non ho nessun Security tab! Devo abilitare qualcosa?

fabio309
12-10-2004, 10:13
prova con opzioni cartella--> visualizzazione--> disattiva "utilizza condivisione semplice di file (consigliata)"
:)

bizzu
12-10-2004, 20:04
Perfetto! Grazie 1000 :D