加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – UWP应用程序的单元测试无法在Visual Studio 2015上运行

发布时间:2020-12-15 20:57:09 所属栏目:百科 来源:网络整理
导读:我在我的一台机器上运行单元测试时遇到问题,测试应用程序几秒后才关闭.以下是调试测试时的输出显示: Exception thrown at 0x7525D8A8 in UnitTestProject1.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0A17C5F0. Exception th
我在我的一台机器上运行单元测试时遇到问题,测试应用程序几秒后才关闭.以下是调试测试时的输出显示:

Exception thrown at 0x7525D8A8 in UnitTestProject1.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0A17C5F0.

Exception thrown at 0x7525D8A8 in UnitTestProject1.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

Exception thrown at 0x7525D8A8 (KernelBase.dll) in UnitTestProject1.exe: 0x40080201: WinRT originate error (parameters: 0x8007274C,0x000000B9,0x0EE4F6AC).

Exception thrown: ‘System.Exception’ in mscorlib.ni.dll

WinRT information: A connection attempt failed because the connected party did not properly respond after a period of time,or established connection failed because connected host has failed to respond.

Exception thrown: ‘System.Net.Sockets.SocketException’ in System.Private.ServiceModel.dll

Exception thrown: ‘System.Net.Sockets.SocketException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in System.Private.ServiceModel.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.Reflection.TargetInvocationException’ in mscorlib.ni.dll

这些例外根本与我的应用程序无关,因为我的应用程序不需要互联网,并且未达到测试方法中的代码.它们来自测试框架.

相同的解决方案在每台其他计算机上运行测试(同样的Windows 10版本).我认为问题在于故障机器上的系统关闭了单元测试所需的一些服务.我找不到任何相关的东西.我该怎么做才能解决这个问题,我不想重新安装Windows.

解决方法

似乎无法建立与Test Emulator的连接.构建TestApp时,请确保已将Build配置设置为Debug – 任何CPU(不是ARM) 此外,您不应该通过按F5运行测试项目,而是从TestExplorer运行测试.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读