怎么设置让Web Service能够在Windows Xp Sp2中读写本地文件?

chrch 2004-10-25 01:53:46
原来在winxp sp1中编写的web service在winxp sp2中怎么不能读写本地文件了?不知道该怎么设置呀
...全文
183 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
chrch 2004-10-26
  • 打赏
  • 举报
回复
未处理的“System.Web.Services.Protocols.SoapException”类型的异常出现在 IntegratePlatform.exe 中。

其他信息: System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.UnauthorizedAccessException: 对路径“D:\Coins.NET\IntegratePlatformWebService\DatabaseInfo.xml”的访问被拒绝。
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at IntegratePlatformWebService.CommonMethod.SystemOperation.GetDatabaseInfo() in D:\Coins.NET\IntegratePlatformWebService\CommonMethod\XmlIOMethod.cs:line 134
at IntegratePlatformWebService.NormalMethod.GetDatabaseInfo() in D:\Coins.NET\IntegratePlatformWebService\NormalMethod.asmx.cs:line 62
--- 内部异常堆栈跟踪的结尾 ---

这是在winxp sp2中的vs2003运行时生成的异常信息
chrch 2004-10-26
  • 打赏
  • 举报
回复
没有人回复吗?
大雨仔 2004-10-26
  • 打赏
  • 举报
回复
在Xp中比较麻烦,最好在FAT32下做个目录,如果是2000 server就有设置用户安全了
chrch 2004-10-25
  • 打赏
  • 举报
回复
谢谢各位的回复,但是我说的环境是windows xp sp2,而不是在windows xp sp1和windows 2000中
stone212 2004-10-25
  • 打赏
  • 举报
回复
右键-〉属性-〉安全
chrch 2004-10-25
  • 打赏
  • 举报
回复
sp2中怎么加aspnet的读写权限呢?
Eddie005 2004-10-25
  • 打赏
  • 举报
回复
是不是忘了给该文件(文件夹)添加ASPNET用户的读写权限???

12,166

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧