Server was unable to process request.

-
-

今天在项目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的权限,就可以了。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值