ASP.NET - URGENTE: Acceso denegado a hash.web en la carpeta temporal de ASP NET

 
Vista:

URGENTE: Acceso denegado a hash.web en la carpeta temporal de ASP NET

Publicado por Mikau (1 intervención) el 02/12/2011 10:17:47
Hola a tod@s,

A ver si podéis ayudarme porque mi web lleva caída más de 12 horas y los del hosting "aún" están mirando el problema y no se nada.

Ha ocurrido una cosa muy extraña, y es que no se ha modificado la aplicación web para nada y, de un momento a otro y tras mucho tiempo funcionan perfectamente la aplicación, ha comenzado a surgir el error que os pondré más abajo.

Según he podido leer, poco tengo yo aquí que hacer, porque podría ser algún proceso que se ha quedado colgado o dar permisos sobre la carpeta temporal, pero al ser un servidor compartido, como es lo suyo, yo no tengo acceso a este tipo de cosas.

También he leído que la ruta de archivos temporales de ASP NET puede cambiarse en el web.config pero esto no es muy seguro, al igual que la sugerencia de poner el impersonate a true. Quizás haya otra solución más lógica, aunque lo lógico sería no tocar nada a nivel de aplicación porque hasta ahora ha ido bien :(.

Gracias por todo, ahí va el error detallado:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Server Error in '/' Application.
Access to the path 'D:\temp\Temporary ASP.NET Files\root\cc2c6fc6\b911d17a\hash\hash.web' 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 'D:\temp\Temporary ASP.NET Files\root\cc2c6fc6\b911d17a\hash\hash.web' 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 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.
 
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:
 
 [UnauthorizedAccessException: Access to the path 'D:\temp\Temporary ASP.NET Files\root\cc2c6fc6\b911d17a\hash\hash.web' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +666
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1135
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +65
   System.IO.StreamWriter.CreateFile(String path, Boolean append) +62
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +47
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +19
   System.Web.Compilation.StandardDiskBuildResultCache.SavePreservedSpecialFilesCombinedHash(Int64 hash) +116
   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +747
   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +57
   System.Web.Compilation.BuildManager.PrecompiledAppRuntimeModeInitialize() +225
   System.Web.Compilation.BuildManager.Initialize() +244
   System.Web.Compilation.BuildManager.InitializeBuildManager() +241
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +238
 
[HttpException (0x80004005): Access to the path 'D:\temp\Temporary ASP.NET Files\root\cc2c6fc6\b911d17a\hash\hash.web' is denied.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +553
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +78
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +334
 
Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder