我在其中一台机器上运行单元测试时遇到问题,测试应用程序几秒钟后就关闭了。这是调试测试时的输出显示:
在UnitTestProject1.exe中的0x7525D8A8处引发异常:Microsoft C ++异常:EETypeLoadException在内存位置0x0A17C5F0。
在UnitTestProject1.exe中的0x7525D8A8处引发异常:Microsoft C ++异常:在内存位置0x00000000处[重新抛出]。
在UnitTestProject1.exe中的0x7525D8A8(KernelBase.dll)处引发的异常:0x40080201:WinRT源错误(参数:0x8007274C,0x000000B9,0x0EE4F6AC)。
引发异常:mscorlib.ni.dll中的“ System.Exception”
WinRT信息:连接尝试失败,因为一段时间后连接方未正确响应,或者建立连接失败,因为连接的主机未能响应。
引发异常:System.Private.ServiceModel.dll中的“ System.Net.Sockets.SocketException”
引发异常:mscorlib.ni.dll中的'System.Net.Sockets.SocketException'
引发异常:System.Private.ServiceModel.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.ServiceModel.EndpointNotFoundException”
引发异常:mscorlib.ni.dll中的“ System.Reflection.TargetInvocationException”
这些例外与我的应用程序根本不相关,因为我的应用程序不需要互联网,并且未达到测试方法中的代码。它们来自测试框架。
相同的解决方案在每台其他机器上运行测试都很好(相同的Windows 10版本)。我认为问题在于出现问题的机器上的系统关闭了一些单元测试所需的服务。我找不到任何地方相关的任何东西。我该怎么做才能解决此问题,我不想重新安装Windows。
我最终重新安装了VS 2015,问题现在消失了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句