首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web Service >

temp?该怎么处理

2012-03-13 
temp????????请问下.net报错。什么啥原因啊?System.UnauthorizedAccessException: Access to the temp dire

temp????????
请问下.net报错。什么啥原因啊?
System.UnauthorizedAccessException: Access to the temp directory is denied. Identity 'NT AUTHORITY\NETWORK SERVICE' 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 doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location. at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at NewDiscoversources.GetConfigStr..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\eef5bbab\29a0a712\App_WebReferences.t8imega7.2.cs:line 36 at Default3.Page_Load(Object sender, EventArgs e) in f:\fxzy\Default3.aspx.cs:line 22


[解决办法]
访问临时目录无权限,没遇到过,帮你顶
[解决办法]

探讨

Service Unavailable多半因为ApplicationPool挂了,重新打开。

[解决办法]
探讨

引用:

Service Unavailable多半因为ApplicationPool挂了,重新打开。

改完权限最容易出现的就是ApplicationPool挂了,或者不知道为什么WebSite的ApplicationPool变成了其他的不是你想到的ApplicationPool了,检查ApplicationPool。祝你好运了。

热点排行