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 163153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:31:03+00:00 2026-05-11T11:31:03+00:00

For about 2 weeks now, I have been unable to run any UnitTests (built

  • 0

For about 2 weeks now, I have been unable to run any UnitTests (built in VS unit tests) for a project. Previously everything worked fine. The error message is:

Could not load file or assembly ‘C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\MyProjectName.XmlSerializers.dll’ or one of its dependencies.

The project references System.Xml.Serialization and uses the XmlSerializer class; just like many other classes/projects I’ve written. For some reason, only this project is affected. It builds fine, runs fine, I just can’t run my unit tests.

I’ve checked the directory, and all the dlls in that directory are Microsoft dlls. The dll that it is looking for obviously is not a Microsoft dll.

Anyone have any ideas?

Edit: It apparently has something to do with using the XmlSerializer and it generating that file automatically instead of using sgen.exe. Here is a link to the MSDN article. From what I’ve been able to find, it has something to do with using the serializer with generics. None of the sources I’ve found seem to offer any way to make it actually work.

  • 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. 2026-05-11T11:31:04+00:00Added an answer on May 11, 2026 at 11:31 am

    Solution

    As it turns out, the problem was with VMWare. I installed the latest version of VMWare, and it installed it’s tools to debug in a VM. Something it installed or changed caused this problem. When I uninstalled VMWare, the problem went away. So, I reinstalled VMWare without installing it’s debugging capabilities and the problem did not come back.

    Workaround:

    I still have no idea why this problem suddenly started occurring, but I found a hack to make it work.

    I had to go to project properties => Build Events and add this line to the Post-build event command line:

    'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sgen.exe' '$(TargetPath)' /force

    This forces VS to generate the file. I then had to copy that file manually to the directory it was looking for it in:

    'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies'

    Now it I can run my tests and step through them. The problems I have now are 1) I have to remember to copy the dll to that directory every time I change something in the classes that I am serializing, and 2) I now get a ThreadInterruptedException when a test finishes running; thus 3) I can only run one test at a time.

    Not a good solution, but at least I can limp through. Unfortunately, redoing everything, as Nikita Borodulin suggested, is not an option.

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

Sidebar

Related Questions

I've been working on this project for about two weeks now. I don't understand
I've been learning Android for about two weeks now (expert in as2/3). I have
I have been using Photoshop for about three weeks now, finding it very different
I have been using vim for about 3 weeks now and have been having
I have been working on a site for about a week now and we
I've been learning wpf for about a week now.. and i have a basic
I have a ASP.NET MVC membership project, now I have been given the task
Link to code I have been struggling with this code for about two weeks
I have been working with the app engine for a few weeks and now
I have been programming in Objective-C for a couple weeks now, and I think

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.