想通过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)
IIS 7.X?
6.0的 权限应该怎么弄啊
@staben: 在文件夹 'F:\...\...\ 点击鼠标右键,选择安全,然后把 Network Service 和 IIS_USER 都添加上,并给予读写权限。
@Launcher: 非常 感谢 已经解决
@staben: 解决就结贴吧