Typically I have found that to be a misleading message about an exception that occurred with configuration. If, for example, you have an app.config or dll specific config file associated with the test project and the config file has an error in it or is unable to be parsed.
I had the exact same issue. (issue in the app.config of my unit tests project)
the issue in my app.config was that the configSections wasn't the first node in the file. I've solved it by moving the appSettings node below the configSections node.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.