【发布时间】:2010-09-26 17:35:21
【问题描述】:
我在远程 Windows 客户端上遇到一个奇怪的错误(使用 C# 2.0 的 WinForm 应用程序)
错误消息:对路径“c:\ApplicationFolder”的访问被拒绝。
堆栈跟踪:在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
让我说我知道我不应该将应用程序文件夹直接放在 c:\ 文件夹之外。这是一个我无法控制的旧应用程序。
【问题讨论】: