当前位置:编程学习 > C#/ASP.NET >>

webservice 无法写入文件

在本地测试的时候 读写都没问题 但是修改xml内容时却出现了问题?错误如下
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)


怎么解决 急啊 求大神 --------------------编程问答-------------------- 已经解决了 还是找到所在路径 右键 属性 安全 把权限给了 就ok了
补充:.NET技术 ,  Web Services
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,