首页 新闻 会员 周边 捐助

关于webservice 文件写入问题

0
[已解决问题] 解决于 2014-03-15 16:49

想通过webservice 修改xml文件,在本地测试没问题,可是一放到服务器上就出错,是不是没写入权限?iis里的写入权限 选中了啊  提示错误如下:

Exception type: SoapException 
Exception message: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path 'F:\...\...\...\...\gongfig.xml' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at Xol.Files.FileServiceXml.SetXml(String filePath, String xmlPath, String ids)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
......................

Stack trace: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
staben的主页 staben | 初学一级 | 园豆:185
提问于:2013-08-15 13:55
< >
分享
最佳答案
0

IIS 7.X?

奖励园豆:5
Launcher | 高人七级 |园豆:45050 | 2013-08-15 14:19

6.0的  权限应该怎么弄啊

staben | 园豆:185 (初学一级) | 2013-08-15 14:25

@staben: 在文件夹 'F:\...\...\ 点击鼠标右键,选择安全,然后把 Network Service 和 IIS_USER 都添加上,并给予读写权限。

Launcher | 园豆:45050 (高人七级) | 2013-08-15 14:35

@Launcher: 非常 感谢 已经解决

staben | 园豆:185 (初学一级) | 2013-08-15 15:17

@staben: 解决就结贴吧

dudu | 园豆:30778 (高人七级) | 2013-08-15 17:28
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册