ASP .NET Web服务无法写入文件 [英] ASP .net web service cannot write to files

查看:125
本文介绍了ASP .NET Web服务无法写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我有一个ASP.net Web服务,该Web方法调用的方法之一需要写入驻留在同一台计算机上的文件.... Web服务,而不是在客户端].

这仅在向ASPNET用户手动授予对该特定文件的写权限时才起作用,否则它将无法写权限问题..

但是必须使用脱脂方法来作为Web服务的一种方式通常可以写入文件...文件应驻留的任何特定位置或访问文件的任何特殊方式..

如果有线索,请提出一些建议..

谢谢. .

hey, 

I have a ASP.net web service and one of the methods that are invoked by the web method, needs to write to a files that resides on the same machine...[that hosts the web service, not on the client side].

This only works when ASPNET user is manually given write permissions on that specific file, otherwise it fails to write coz of permission issues..

But thare has to be a way that a web service can usually write to files...any specific location that the files should reside or any special way of accessing the file..

Please suggest something if you have got clues..

thanx..

推荐答案

嗨...

只需尝试将IIS_WPG和ASPNET用户的完全访问权限授予放置目录的目录即可.文件...应该对您有用.

Shailesh ...
Hi...

    Just try out by giving the complete access permissions to IIS_WPG and ASPNET users to the directory where you are placing the files...It should work for you.

Shailesh...


这篇关于ASP .NET Web服务无法写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆