[bug]访问ASP.NET临时文件夹的权限问题

今天要将REPORTING SERVICE的服务器进行改动,当我在VS2005中设置好服务器时,发现一个问题:

connection could not be made the report server.

刚开始首先想到的时一些连接的问题,可是我之前一直好好的。。。,所以就排除了这种可能

接下来我在想,连接没错的话,那肯定是服务器的配置问题了

然后我进入REPORTING SERVICE服务器的IIS的配置中进行浏览,出现一个错误,信息大致如下:

The current identity (xxx\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

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.

到这一步,问题出现的范围就缩小了很多。(用户权限)

然后我进入C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'这个文件夹,发现这个文件夹没有添加network service或IIS_WPG的权限。

呵呵,到这一步,我基本上可以断定是这个问题了,然后我就将networkservice添加到IIS_WPG组用户中,并且为这个文件夹赋予可访问的权限~~~

再进行调试,DEPLOY,一切都没问题了~~~~~~~~~

posted on 2006-07-30 15:26  №阿儒№  阅读(1821)  评论(0编辑  收藏  举报