System.InvalidProgramException when executing unit tests in MSTest after Microsoft Security update MS13-004

穿精又带淫゛_ 提交于 2019-12-05 08:03:43

I just fixed the same error on one of my collegues computers by deinstalling micrsoft security patch kb2742595 for .net. I guess something is fixed in the security setting and the MSTest runner can't handle the new settings. We do not have Castle.Core installed.

I had a similar error, when trying to run tests which used TypeMock. In order to solve the problem I opened up my solution in Visual Studio and selected Test - Edit Test Settings. In the Test Settings dialog I selected Hosts and switched it to Run tests in 64 bit process on 64 bit machine.

Let me know if this helps. If this has nothing to do with your error, let me know and I'll remove my answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!