Upload com IIS 7
13/11/2012
0
Tenho uma aplicação ASP.NET 1.1 rodando no IIS 7 e WINDOWS SERVER 2008. Essa aplicação fica no seguinte caminho: C:\Program Files (x86)\Sistema. Dentro do diretorio "Sistema" tenho um outro diretório onde armazeno documentos via upload no sistema. Ja dei permissão total nessa pasta para todos os usuários possiveis q eu conheço: IUSR, IUSR_WPG, NETWORK, ASPNET, IIS_IUSRS E "ASP.NET 1.1" (ESSE ULTIMO É MEU POOL DE APLICAÇÃO). Mesmo assim, sempre recebo o erro abaixo:
Access to the path "C:/Program Files/Sistema/Certificados/07.14/" is denied.
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.UnauthorizedAccessException: Access to the path "C:/Program Files/Sistema/Certificados/07.14/" 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 \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.
Alguem pode ajudar???
Valeu!
Abraços!
Thomás Moreira
Posts
13/11/2012
Robson Alves
Tenho complexos que a aplicação esbarre em outras permissões do próprio windows quando falamos em pastas de programas,
fora que você definiu a pasta (X86) e o path é da outra programs file ...
21/11/2012
Thomás Moreira
Porem, não teve outro jeito... Mudei a unidade e funcionou.
Valeu!
Clique aqui para fazer login e interagir na Comunidade :)