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

  • SEARCH
  • Home
  • 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 7846505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:36:08+00:00 2026-06-02T17:36:08+00:00

This is what I’m getting when I build my Test project: With this I’m

  • 0

This is what I’m getting when I build my Test project:

VS 11 Unit Testing Unexpected Error

With this I’m unable to run my tests since they’re not being discovered by VS.

See the message "Unexpected error detected. Check the Tests Output Pane for details." at the window bottom. Now if you look at the Tests OUTPUT pane you’ll have no clue about what’s the problem. This is extremely helpful… 🙂

I know VS 11 is in beta but it used to work…

I’ve already restarted VS but it didn’t work after that too.

Any ideas about what’s going on? Would it be a bug somewhere?

Note: the only thing I can think is related with VS 2010 uninstall I did sometime ago. Maybe it uninstalled some necessary bits. Beats me…

EDIT 1
I just did a repair on VS 11 Beta Ultimate. It asked to reboot the computer once and I did. Then it continued the repair but kept working for more than 12 hours. I just killed the repair process.

In the meantime I uninstalled Visual Studio 11 Express for Web. I had this one side by side with VS 11 Beta Ultimate.

Crazily enough, it started working again after I did both things. So I don’t know for sure what has solved the problem: the killed repair process or the uninstall of VS 11 Express for Web.

EDIT 2
For my disappointment now I see this is an intermittent thing. After restarting VS 11 Ultimate Beta the problem persists. 🙁

EDIT 3

I filled a Connect ticket at Microsoft but they closed it as not reproducible.

I made a 2nd try with VS 11 Ultimate Beta repair option and this time it finished as expected. To isolate the problem I created a brand new test project with a default UnitTest1.cs file within a new Solution and after building it I get the same error screen as shown above. So the repair option did not solve the problem. Looks like something is missing in my system.

This is the info from VS About window:

Microsoft Visual Studio 11
Version 11.0.50323.1 QRELB
Microsoft .NET Framework
Version 4.5.50131 QRELB

Installed Version: Ultimate

EDIT 4
I found a similar problem here but the solution given there doesn’t apply in my case since I do not have the DLL described.

EDIT 5
With the help of Aseem Bansal’s (a Microsoft employee) I finally got the logs and saw this exception:

W, 2124, 19, 2012/04/19, 11:51:32.644, 53768626724, devenv.exe, Exception occured while initialization System.InvalidOperationException: Cannot start process because a file name has not been provided.
   at System.Diagnostics.Process.Start()
   at Microsoft.VisualStudio.TestPlatform.Core.Utilities.CommonUtilities.LaunchProcess(String exeFileName, String commandLineArguments, String workingDirectory, IDictionary`2 environmentVariables)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.SetupProcess(Boolean forceX86Discoverer)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.Initialize_NoLock(Boolean forceX86Discoverer)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.EnsureInitialized(Boolean forceX86Discoverer)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.EnsureInitialized_NoError(Boolean forceDiscoveryInX86Mode)

EDIT 6
I tried executing the tests using the mstest.exe command-line tool (with and without the /noisolation option). The tests run as expected as can be seen here. So the problem is really something inside VS 11 Beta.

  • 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-06-02T17:36:09+00:00Added an answer on June 2, 2026 at 5:36 pm

    Leniel,

    Thanks for raising this issue.

    As we discussed here, it indicates that shadow copy is causing the problem.

    Please ensure that the Microsoft.VisualStudio.TestPlatform.Core.dll is loaded from its installation location %VSInstallDir%\Commmon7\IDE\CommonExtensions\Microsoft\TestWindow path and not from a temporary path like %appData%\assembly\dl3\ that you are observing right now. This should fix the problem for you.

    Also I wanted to update you that in the latest code, we have improved our logic and with the improved logic, it would not matter from where the binary is getting loaded and it would just work for you.

    Regards

    Aseem Bansal

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

Sidebar

Related Questions

This somehow simple task is not so simple. I can get the number of
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
This is my first time creating a PHP form that will run a MySQL
This is mind-boggling... I can make getResource() and getResourceAsStream() work properly when I run
This is a question in response to thise: Javascript AJAX function not working in
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This is beyond both making sense and my control. That being said here is
This does not work: CCSprite *testscale=[CCSprite spriteWithSpriteFrame:starFrame]; testscale.scale=0.5; float starWidth=testscale.contentSizeInPixels.width; CCLOG(@contentpixels: %f contentsize: %f,starWidth,
This is regarding MS Enterprise Application Block cache. Is there a way to see
This is really just for my own use: I would like to be able

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.