Problema al intentar hacer Upload - Access to the path \'...\' is denied

Alfredo
02 de Abril del 2006
Buen día Comunidad, tengo una semana con problemas en una web, es mi primer página en asp.net así que espero que alguien que halla pasado por esto me pueda ayudar o si conocen a alguien que tenga conocimientos en dicho software les agradecería que le pasaran mi mail [email protected] ya teniendo una solusión con gusto la posteo.

Resulta que tengo paginas que involucran upload de archivos al servidor, me funciona a la perfección en localhost pero ya en el servidor al querer guardar el archivo me sale el clásico recuadro pidiendome hacer login, y después de poner cancelar me sale el error:
////////////////////////////////////////////////////
Access to the path \"C:\\Domains\\....com\\wwwroot\\terrenos\\64_1.jpg\" 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:\\Domains\\....com\\wwwroot\\terrenos\\64_1.jpg\" 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
////////////////////////////////////////////////////
Notas: El directorio está correcto y NO tengo activada la protección de directorios.

Mi archivo web.config tiene los siguientes tag que creo que tienen algo que ver:

<authentication mode=\"None\" />
<identity impersonate=\"true\" />

Y estoy usando File1.PostedFile.SaveAs para guardar.

Como decía, en local host me funciona a la perfección. He investigado en diversos foros y la mayoria tienen problema en localhost y no en servidores remotos, enviamos un correo a soporte ya que tenemos contratado el servidor y nos dijeron que todas las carpetas tienen permiso de escritura y lectura.

Si ocupan algún otro dato con gusto se los doy.

Que tengan bonito día :]

Alfredo.
[email protected]