System.UnauthorizedAccessException: 拒绝访问临时目录。以其运行 XmlSerializer 的身份“IIS APPPOOL\DefaultAppPool”没有足够的
来源:互联网 发布:淘宝红灯牌收音机735b 编辑:程序博客网 时间:2024/05/18 04:10
错误信息如下:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
System.UnauthorizedAccessException: 拒绝访问临时目录。以其运行 XmlSerializer 的身份“IIS APPPOOL\DefaultAppPool”没有足够的权限访问临时目录。CodeDom 将使用此进程用于进行编译的用户帐户,因此如果用户对系统临时目录没有访问权限,则将无法编译。使用 Path.GetTempPath() API 可找到临时目录位置。 在 System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) 在 System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) 在 System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) 在 System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) 在 System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos) 在 System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos) 在 System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos) 在 System.Web.Services.Protocols.HttpServerType..ctor(Type type) 在 System.Web.Services.Protocols.HttpServerProtocol.Initialize() 在 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
环境:WIN7, IIS 7, 64BIT
解决方案:
开始->运行-> inetmgr -> 在IIS信息管理器中,找到 应用程序池 -> DefaultAppPool -> 右键 设置应用程序池默认设置 -> 标识:LocalSystem (本地系统) -> 确定. 重启 应用程序池。
效果图:
pic-1:
pic-2:
参考:
http://www.cnblogs.com/sunxi/p/3356719.html
(结束)
0 0
- System.UnauthorizedAccessException: 拒绝访问临时目录。以其运行 XmlSerializer 的身份“IIS APPPOOL\DefaultAppPool”没有足够的
- System.UnauthorizedAccessException:拒绝访问的处理办法.
- IIS APPPOOL\DefaultAppPool 登录失败的解决方法
- IIS APPPOOL\DefaultAppPool 登录失败的解决方法
- ASP.NET IIS System.UnauthorizedAccessException: 对路径“C:\......xls”的访问被拒绝。
- System.UnauthorizedAccessException: 拒绝访问temp 目录
- System.UnauthorizedAccessException: 拒绝访问。
- System.UnauthorizedAccessException: 拒绝访问
- System.UnauthorizedAccessException: 拒绝访问
- System.UnauthorizedAccessException: 对路径“**”的访问被拒绝。
- System.UnauthorizedAccessException: 对路径的访问被拒绝
- 关于System.UnauthorizedAccessException: 拒绝访问的处理办法
- 【错误录】System.UnauthorizedAccessException: 对路径的访问被拒绝?
- 使用wmi引起的 System.UnauthorizedAccessException:拒绝访问
- System.UnauthorizedAccessException: 对路径“xxx文件”的访问被拒绝。
- 解决:IIS APPPOOL\DefaultAppPool 登录失败的问题
- System.UnauthorizedAccessException: 拒绝访问 解决方法
- IIS页面报错“NT AUTHORITY\NETWORK SERVICE 没有访问temp目录的足够权限”
- java反射机制
- nullptr
- 串口驱动移植心得
- Python 核心编程笔记 第七章 序列(映射&集合)
- 采用DIV+CSS布局的好处
- System.UnauthorizedAccessException: 拒绝访问临时目录。以其运行 XmlSerializer 的身份“IIS APPPOOL\DefaultAppPool”没有足够的
- 无法向会话状态服务器发出会话状态请求
- HDU 1165(递推)
- [Mugeda HTML5技术教程之2] Mugeda HTML5富媒体平台简介
- 深入浅出JSONP--解决ajax跨域问题
- 抄袭与盗版之后,手游会是什么趋势
- 六、Qt的头文件的使用
- 给大家推荐这个网站,为什么做得这么好?
- js中出现跨域问题