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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:02:36+00:00 2026-05-11T14:02:36+00:00

I get this error from my migration of NUnit to Team System when running

  • 0

I get this error from my migration of NUnit to Team System when running some of the tests in Visual Studio:

Test method XXX.XXX.Data.Tests.Path.Method> threw exception:  System.Configuration.ConfigurationException: Invalid section name. The section ‘dataConfiguration’ does not exist in the requested configuration file ‘C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\vstesthost.exe.Config’ or the file ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config’. Make sure that the ‘enterpriseLibrary.configurationSections’ configuration section exists in one of the files and that the section ‘dataConfiguration’ is defined..

  1. We are assuming it is the enterprise library, what is needed in the
    ‘configuration section’ for my tests to work?
  2. Where does one usually find the configuration file in team system?
  3. Also why is the application still working and the tests not?
  • 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-11T14:02:36+00:00Added an answer on May 11, 2026 at 2:02 pm

    It sounds like it can’t find the app.config/web.config file.

    With MSTest, it doesn’t test in the usual ‘output’ directory. As a consequence, the ‘copy to output directory’ (etc) flags do nothing. You need to tell it which files to deploy to the test folder; there are two ways:

    • edit the testrunconfig file and add the files to the deployment list
    • add the [DeploymentItem] attribute to your test, telling it which files are needed

    I don’t really like either approach – in fact, I tend to use TestDriven.NET to run the tests, which does it the way you expect it to behave.

    Of course, TestDriven.NET would also run your NUnit tests in the IDE including code-coverage etc – which would then beg the question: why change your existing tests if they can work in the IDE? And the obvious answer is ‘we’ve paid for MSTest, and TestDriven.NET isn’t free’…

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

Sidebar

Related Questions

We get this error in Visual Studio 2005 and TFS very often. Can anyone
i get this error {Method 'System.DateTime ConvertTimeFromUtc(System.DateTime, System.TimeZoneInfo)' has no supported translation to SQL.}
When I commit I get this error from Subversion: bash-2.05b$ svn commit -m testing
I need to get a value from another page. But I get this error
whenever I try to call my ejb from a client, I get this error
I get a parse error from Safari with this code: for (var i=0; i<parent.frames.length;
I get this error: Can't locate Foo.pm in @INC Is there an easier way
I get this error on an update panel within a popupControlExtender which is within
I get this error when I do an svn update : Working copy XXXXXXXX
I get this error:- You have an error in your SQL syntax; check the

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.