Hola red, el objetivo de este post es documentar un error del cual no me había tocado resolver.
Al abrir un sitio interno en la compañia el IIS me regresaba un error como el que se ve abajo:
"Server Error in '/admin' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. "
Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\questknowledgeportal\60299345\5ef6e6bd\App_Web_default.aspx.cdcab7d2.a8bmn1n2.dll' -- 'Access is denied. '
Files\questknowledgeportal\60299345\5ef6e6bd\App_Web_default.aspx.cdcab7d2.a8bmn1n2.dll' -- 'Access is denied. '
Encontré en la red la siguiente solución que si funciono, abajo viene la descripción:
The ASP.NET process account (usually NETWORK SERVICE) does not have write permissions for the %TEMP% directory
Ejecute los siguientes pasos tal cual vienen:
1. Open %TEMP% directory and navigate one level above it
2. Right-click the Temporary folder (usually C:\WINDOWS\Temp) and select Sharing and Security. Select the Security tab and take a look at the list of “Group or user names:” 3. NETWORK SERVICE should be in the list. If it is not, click Add and type Network Service in the text box.
4. Make sure NETWORK SERVICE have Full Control in the Permissions list.
5. Click OK.
6. Restart IIS (Run iisreset)
2. Right-click the Temporary folder (usually C:\WINDOWS\Temp) and select Sharing and Security. Select the Security tab and take a look at the list of “Group or user names:” 3. NETWORK SERVICE should be in the list. If it is not, click Add and type Network Service in the text box.
4. Make sure NETWORK SERVICE have Full Control in the Permissions list.
5. Click OK.
6. Restart IIS (Run iisreset)
Pero es importante en el pool de aplicaciones cambiar el identity para los permisos, necesitas seleccionar [NETWORK SERVICE] sin esto aún cuando hagas los ajustes el sitio es probable que no funcione, te dejo abajo en la imagen lo que se ajusto y con eso waaaala, el sitio corre.
No hay comentarios:
Publicar un comentario