Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3491400
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:37:55+00:00 2026-05-18T11:37:55+00:00

Due to certain configurations on my dev box I was forced to move my

  • 0

Due to certain configurations on my dev box I was forced to move my code to the “Documents and Settings” folders. Since our #?*&%$£ “beloved” perforce VCS can have problems with long file paths in specific scenarios, I mapped a drive (V:) to point to the code. This generally works now with one exception: for some reason, unit test runners integrated into VS cannot run tests anymore. I specifically tried this using TestDriven.NET and the ReSharper test runner. Both show the same strange behavior: no errors, tests are only NOT run.

0 Passed, 0 Failed, 0 Skipped

When I open the solution from C:\Documents… and run the tests using said runners, it works:

211 Passed, 0 Failed, 0 Skipped

I first suspected a 64bit issue (we are on Win7 Ultimate x64). But the test assemblies are set to “Any CPU”, both runners can handle that scenario and redirect to the appropriate NUnit executables (…as far as I can tell, correct me if I am mistaken!). Opening the test assemblies with the NUnit GUI both from C:\ and V:\ work fine.

I can only assume this has to do with the runners in VS not being able to invoke tests when the file paths refer to a mapped drive…but this sound pretty weird, so I was hoping some of you have seen this problem before and can give some advice.

To boil this down to a question:
Has anyone ever had issues with NUnit test runners in VS 2010 not executing tests, possibly due to the solution being on a mapped drive?

Win 7 Ultimate x64
VS 2010 Ultimate
NUnit 2.5.8
TestDriven.NET 3
ReSharper 5.1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:37:56+00:00Added an answer on May 18, 2026 at 11:37 am

    OK, we finally found a way to get around this. While we did not really solve the issue with our mapped V: drive being a network drive, it does work fine if you create the mapped drive using the SUBST command.

    The difference here is that the V: drive was treated as a network location since I created the mapping using “map network drive” in the explorer menu (which I believe is equivalent to the NET command). This can lead to trust issues when assemblies are called between network and local drives. Some guys even got error messages during builds along the lines of

    Unhandled Exception:
    System.Security.SecurityException:
    That assembly does not allow partially
    trusted callers.

    Using SUBST our V: drive points to a local (=trusted) location, and now our tests all run as expected.

    To create a mapped drive with SUBST, do the following. This examples maps a new virtual drive “V” to the code location in the users’ (= [yourName]) folder:

    C:>subst v: C:\Users[yourName]\code

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not certain if this will get much response due to the newness of Windows
Due to repetitive errors with one of our Java applications: Engine engine_0: Error in
Due to the nature of the live server I deploy to, my mail settings
Due to lack of capital and time we are having to do our game
I have a class test which isn't standard constructable nor assignable due to certain
Due to certain constraints, such as using Windows Azure, I am limited to using
I am working on a replacement application to a legacy application. Due to certain
Due to continuing crash problems, I'm about to uninstall and reinstall my copy of
Due to the lack of clientaccesspolicy.xml, there appears to be problems with using Amazon
Due to company constraints out of my control, I have the following scenario: A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.