none
VS2010 fails to queue unit tests when targeting .NET 3.5

    Question

  • I recently had my PC replaced, and now my new machine won't run our C++ unit tests that are targeting .NET 3.5.  I have VS2010 + SP1Rel installed.  And I've followed the additional configuration steps listed here: http://msdn.microsoft.com/library/gg601487.aspx#re-targeting35AdditionalSteps

    I'm still unable to run the unit tests, even though the same tests ran on my old PC (which also had VS2010 + SP1Rel installed).  I get the following errors when I try to run the unit tests in the IDE and via the VS2010 command prompt, where my local machine name is [xxx]:

    Warning 10/10/2011 4:52:25 PM Failed to queue tests for test run '[xxx] 2011-10-10 16:52:25' on agent [xxx]: Object of type 'System.Runtime.Serialization.TypeLoadExceptionHolder' cannot be converted to type 'System.Collections.Generic.Dictionary`2[System.Uri,Microsoft.VisualStudio.TestTools.Common.AgentRuleDataCollector]'.

    Warning 10/10/2011 4:52:25 PM Test run '[xxx] 2011-10-10 16:52:25' could not be executed. No agents are marked online to execute test run.

    I am able to run the unit tests if I use the VS2008 command prompt, but that is really inconvenient and I'd like to be able to run the tests from the IDE.

    There was a connect issue opened here for the beta version, but it was marked not reproducable and has no workaround:

    http://connect.microsoft.com/VisualStudio/feedback/details/647529/mstest-from-vs2010-sp1-beta1-cant-run-tests-for-3-5

    Most of the other posts I've seen have found no resolution, and most people have given up.  Has anyone ran into this issue and found a resolution?


    • Edited by lbarb Monday, October 10, 2011 10:25 PM typo
    Monday, October 10, 2011 10:22 PM

All replies

  • Hi,

    I am not sure about the root cuse of the issue but if you are using controller and agents, can you make sure that the same version is installed on your box, the controller and the agents.

    Thanks,

    Anuj


    http://www.anujchaudhary.com/
    Tuesday, October 11, 2011 2:40 AM
  • I'm not using controller and agents.  This is on my local dev box.  The message is a little misleading in its description.

    Tuesday, October 11, 2011 1:40 PM
  • FWIW we are facing the exact same issue with handful of our developers Most are able to run our mstest unit tests that target .net 3.5 I thought it might be an issue of VS 2010 premium vs ultimate, but some of the developers who have premium have no issues. We all have SP1 installed In fact, on one of the boxes that has this problem, I reinstalled VS2010 premium and SP1 with no issues, (verified that devenv.exe.config and mstest.exe.config were correctly modified to allow targeting .Net 3.5) but to no avail. I have enabled verbose logging in all the config files I could, but nothing stands out to indicate why the tests are failing. Any help would be appreciated, and I am willing to provide any dumps or logs requested. Please just show ask me for what you need
    Wednesday, October 12, 2011 3:31 AM
  • Hello William,

    Sounds like you are both having a problem with SP1 not installing correctly,

    Can i get you to file a bug on this so our test team can take a look?

    https://connect.microsoft.com/VisualStudio/feedback/CreateFeedbackForm.aspx?FeedbackFormConfigurationID=4861&FeedbackType=1

    Thanks

    Chuck

     

    Tuesday, October 18, 2011 1:38 AM
    Moderator
  • Done!

    https://connect.microsoft.com/VisualStudio/feedback/details/695777/vs2010-fails-to-queue-unit-tests-when-targeting-net-3-5

    Eagerly awaiting your response, as I try keep the horde of unit test-starved developers at bay

    Thursday, October 20, 2011 3:15 AM
  • Done!

    https://connect.microsoft.com/VisualStudio/feedback/details/695777/vs2010-fails-to-queue-unit-tests-when-targeting-net-3-5

    Eagerly awaiting your response, as I try keep the horde of unit test-starved developers at bay

    Hi did you receive a fix for this issue as i am experiencing the same problem; we have VS2010 ultimate with SP1 installed . This issue has only appeared on one machine. 

     

    Any help would be appreciated. 

     

    thanks 

    Wednesday, November 16, 2011 6:32 AM
  • I also encountered the same issue. Is there any solution of this problem?

    Stanley

    Wednesday, May 02, 2012 4:37 PM
  • Hi,

    Can you please make sure updates are installed for .net3.5 ? Specifically below ones

    http://support.microsoft.com/kb/983583

    or

    http://support.microsoft.com/kb/2446704/en-us

    Install updates and restart VS.

    Thanks

    • Proposed as answer by Stanleyabcd Saturday, May 05, 2012 1:08 PM
    Friday, May 04, 2012 1:57 PM
  • Installing those updates worked for me!

    Thank you! :)

    Saturday, June 22, 2013 1:07 AM