System.UnauthorizedAccessException: 拒绝访问 temp 目录。用来运行 XmlSerializer 的标识“IIS APPPOOL\1_Adream_salirone”没有访问 temp 目录的足够权限。CodeDom 将使用进程正在使用的用户帐户进行编译,这样,如果用户没有访问系统 temp 目录的权限,将无法进行编译。使用 Path.GetTempPath() API 找到 temp 目录的位置。 在 Cenpic.Common.SerializationHelper.Load(Type type, String filename) 位置 E:\yijie_xiangmu\web_sanceng\Common\SerializationHelper.cs:行号 34 在 Config.SetConfig.Config() 位置 d:\freehost\salirone\web\App_Code\SetConfig.cs:行号 35 在 UserCoutrol_foot.webinfo() 位置 d:\freehost\salirone\web\cn\UserCoutrol\foot.ascx.cs:行号 20 在 UserCoutrol_foot.Page_Load(Object sender, EventArgs e) 位置 d:\freehost\salirone\web\cn\UserCoutrol\foot.ascx.cs:行号 11