Re: System.UnauthorizedAccessException running Nunit
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <000001c88ae7$d55009d0$6501a8c0@ferrari> |
Is E: assigned to a network share? Does it work when the path is local? Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Curt Paulson Sent: Thursday, March 20, 2008 1:34 PM To: [email protected] Subject: [Nunit-users] System.UnauthorizedAccessException running Nunit Hello All, I'm working on a system that was written/tested using Nunit. When I try to run the test defined, I get a: "XmlTransformTests.Transform : System.UnauthorizedAccessException : Access to the path 'E:\Projects' is denied." In Errors and Failures, it says: at 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) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) at System.IO.StreamReader..ctor(String path, Encoding encoding) at System.IO.File.ReadAllLines(String path, Encoding encoding) at XmlTransformTests.XmlTransformTests.Transform() in E:\Projects\...\XmlTransformTests.cs:line 59 Needless to say, reading and writing to the directories for all other programs is not a problem. We have set every sharing flag and given everyone permission virtually everywhere we could find, and the directories remain 'read only' when looking at 'properties' When they are re-set, they revert Immediately back to 'read only'. We are guessing that there might be a firewall problem that we haven't yet found. Has anyone had this kind of problem before, and solved the issue? Thanks in advance, Curt ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users