Microsoft.Moles.vshost已停止工作 [英] Microsoft.Moles.vshost has stopped working

查看:112
本文介绍了Microsoft.Moles.vshost已停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆用C#编写的单元测试,这些单元测试使用moles来模拟串行端口类.我使用的是Visual Studio2008.直到今天,当我重新运行测试时,所有这些都工作正常.当它尝试创建MSerialPort对象时,警告框弹出,并显示消息"Microsoft. Moles.VsHost已停止工作".我已经尝试过重新安装痣,但不确定是否要尝试其他方法或在何处找到更多有关此的信息.所有测试本身都没有改变,因此必须与.net运行时等类似.我正在使用.net 3.5.还有其他人遇到这样的事情吗?

I have a bunch of unit tests written in C# that use moles for mocking a serial port class. I'm using Visual Studio 2008. This has all worked fine until today when I went to re-run the tests... and as soon as it tries to create an MSerialPort object, the warning box pops up with the message "Microsoft.Moles.VsHost has stopped working". I've tried re installing moles, etc but not sure what else to try or where to find more information on this. None of the tests themselves have changed so it's got to be something with the .net runtime or the like. I'm using .net 3.5. Anyone else run into something like this?

推荐答案

发现了问题……有关安全更新KB2742599(.NET 3.5的安全更新)的某些问题破了.我卸载了此更新,重新启动了PC,一切正常.我正在使用Windows 7 SP1,x86.

Found the problem... something about security update KB2742599 (security update to .NET 3.5) broke moles. I uninstalled this update, restarted the PC, and everything works fine again. I'm using windows 7 SP1, x86.

这篇关于Microsoft.Moles.vshost已停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆