Server was unable to process request.

来源:互联网 发布:羽毛球包双肩背包淘宝 编辑:程序博客网 时间:2024/06/07 01:32
-
-

今天在项目ASP.NET调用远程服务器Webservice,出现如下错误:

Server was unable to process request. ---> 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.

用有道翻译结果如下:

服务器是无法处理的请求。——>访问临时目录被否定了。身份的新台币权威/网络服务的XmlSerializer下运转没有足够的权限存取临时目录。CodeDom将使用用户帐号的过程是用做编写的,因此,如果用户不存取系统临时目录,您将无法编译。使用Path.GetTempPath()API来找出临时目录地点。

 

解决方法:

进入远程服务器,设置目录权限,设置的目录如下:

C:/WINDOWS/Temp

设置用户NETWORK SERVICE的读取与运行的权限,如果不行就给所有权限。这样就可以了。

如果再不行就设置everyone的权限,就可以了。

原创粉丝点击