Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: C#Builder/Debugger/Exceptions    [ Add a report in this area ]  
Report #:  9572   Status: Open
UnauthorizedAccessException when debugging an NUnit test
Project:  C#Builder Build #:  9.0.1761.24408
Version:    10.0 Submitted By:   Tom Reedy
Report Type:  Basic functionality failure Date Reported:  11/19/2004 8:12:49 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   238868
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 3
When a NUnit test is run from the debugger which tests a library which references another library in the same project, an exception is thrown:
System.UnauthorizedAccessException : Access to the path "testprojectname.PDB" is denied.

This problem occurs even if the Attach To Process is used to connect to the nunit-gui.exe.

If the tested library does not reference another assembly (other than the .NET framework), there is no problem.

This does not occur with VS 2003.
Steps to Reproduce:
1. Create a C# class library.

2. Create a second C# class library which references the first one.

3. Create an NUnit test project and test case for testing any code in the second library.

4. Run the test project from the debugger, then run the tests.


Open the attached project group and run.

Mario Alejandro Montoya C. at 4/5/2005 10:38:09 AM -
A workaround is disable under the menu Tools/Options the Assembly Reload checks (not necesary with clear results when reloading)

Then close NUnit GUI. Next time all work, including debugging

Server Response from: ETNACODE01