While running PEX getting error

我只是一个虾纸丫 提交于 2019-12-06 11:12:40

问题


First of all - awesome job on PEX !!!

We are trying to do code explorations for one of our Office Add-In project. So, first of all let me ask yo this - Is this is feasible ? In other words can PEX help me with Add-In/VSTO projects ?

Secondly, I trying to execute PEX on one of our Add-In methods and got the following error

--- Description runtime context Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context failed to open

runtime context Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context failed to open

--- Exception details

System.InvalidProgramException: Common Language Runtime detected an invalid program. at System.Void Microsoft.VisualBasic.CompilerServices.ProjectData..ctor() at Microsoft.VisualBasic.CompilerServices.ProjectData Microsoft.VisualBasic.CompilerServices.ProjectData.GetProjectData() at Microsoft.VisualBasic.ErrObject Microsoft.VisualBasic.Information.Err() at System.Void Microsoft.VisualBasic.CompilerServices.ProjectData.ClearProjectError()

Any help is appreciated !!!

Thanks, Mrunal Buch


回答1:


I saw the same InvalidProgramException issue recently when running Pex. I had been able to run Pex successfully earlier, without any issues. I uninstalled the Windows security update KB2742595 and that fixed the issue. I do not see the InvalidProgramException from CLR any more.

For reference, here is a similar issue with the security update and the MS unit test framework.



来源:https://stackoverflow.com/questions/15134692/while-running-pex-getting-error

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