简体   繁体   English

Resharper - 单元测试运行器无法运行测试(System.Runtime.Remoting.RemotingException)

[英]Resharper - Unit Test Runner failed to run tests (System.Runtime.Remoting.RemotingException)

I've lost the ability to run or debug tests from Resharper 10 (VS2015, VS2013) test runner. 我已经失去了从Resharper 10(VS2015,VS2013)测试运行器运行或调试测试的能力。

Resharper - Unit Test Runner failed to run tests (System.Runtime.Remoting.RemotingException) Found two objects associated with the same URI. Resharper - 单元测试运行器无法运行测试(System.Runtime.Remoting.RemotingException)找到两个与同一URI关联的对象。

Clean/Rebuild/Restart do not help. 清洁/重建/重启没有帮助。

在此输入图像描述

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. 例如,如果您有与测试项目关联的app.config或dll特定配置文件,并且配置文件中包含错误或无法解析。

I had the exact same issue. 我有完全相同的问题。 (issue in the app.config of my unit tests project) (在我的单元测试项目的app.config中出现问题)

the issue in my app.config was that the configSections wasn't the first node in the file. 我的app.config中的问题是configSections不是文件中的第一个节点。 I've solved it by moving the appSettings node below the configSections node. 我已经通过在configSections节点下移动appSettings节点来解决它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Resharper Test Runner不会在VMWare Fusion共享文件夹中运行单元测试 - Resharper Test Runner wont run unit tests in VMWare Fusion shared folder ReSharper 可以自动运行单元测试吗 - Can ReSharper run unit tests automatically Resharper Unit Test Runner明显慢于NUnit控制台 - Resharper Unit Test Runner significantly slower than NUnit console 在 Visual Studio/Resharper 中以调试模式运行单元测试时出现“不确定:测试未运行”错误 - “Inconclusive: Test not run” error running unit tests in debug mode in Visual Studio / Resharper 简单 XAML 文件中的 System.Runtime.RemotingException - System.Runtime.RemotingException in simple XAML file 如何配置VS2012测试运行器来接收和运行Gallio单元测试? - How do I configure VS2012 test runner to pick up and run Gallio unit tests? Resharper测试运行程序在“全部运行”中找不到连接字符串 - Resharper test runner can't find connection string on Run All 在运行测试之前隐藏Resharper单元测试会话 - Resharper Unit Test Session hides before running tests 重新测试单元测试 - Resharper problem with unit tests 如何诊断Resharper Unit Test Runner“无法加载一个或多个请求的类型”错误 - How to diagnose Resharper Unit Test Runner “Unable to load one or more of the requested types” error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM