System.UnauthorizedAccessException: 拒绝访问 temp 目录。用来运行 XmlSerializer 的标识“IIS APPPOOL\sztuso.com”没有访问 temp 目录的足够权限。CodeDom 将使用进程正在使用的用户帐户进行编译,这样,如果用户没有访问系统 temp 目录的权限,将无法进行编译。使用 Path.GetTempPath() API 找到 temp 目录的位置。 在 Cenpic.Common.SerializationHelper.Load(Type type, String filename) 位置 D:\ejaket.web\ejaket.web.one\Common\SerializationHelper.cs:行号 34 在 Config.SetConfig.Config() 位置 d:\website\sztuso.com\App_Code\SetConfig.cs:行号 35 在 Seo.webinfo() 位置 d:\website\sztuso.com\lianxi.aspx.cs:行号 23 在 Seo.Page_Load(Object sender, EventArgs e) 位置 d:\website\sztuso.com\lianxi.aspx.cs:行号 13