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