【发布时间】:2011-11-18 11:35:29
【问题描述】:
我在 Windows7 上的 IIS 7.0 遇到奇怪且无法解决的问题。
我尝试在本地测试服务器上运行站点并收到以下错误:
Access to the temp directory is denied.
Identity 'IIS APPPOOL\DefaultAppPool' under
which XmlSerializer is running does not have sufficient permission
to access the temp directory.
CodeDom will use the user account the process is using to do the compilation,
so if the user doesn't have access to system temp directory,
you will not be able to compile.
Use Path.GetTempPath() API to find out the temp directory location.
我有几个池,但其中只有一个可以正常工作。它是经典的 .NET AppPool。在其他站点上运行站点时出现错误,这是之前提供的。最有趣的是我无法通过 IIS 管理器的应用程序池找到池配置之间的任何差异。也许我错过了什么?
我尝试更改Windows\Temp、C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files 和local settings' temporary folder 的访问权限,但我的操作没有效果。
所以,希望得到您的帮助和一些建议。
【问题讨论】:
标签: .net asp.net iis windows-7 iis-7