2013-12-20 1 views
0

Visual Studio 2010 SP1에서 64 비트 (en_visual_studio_2010_pex_0.94.51023.0_power_tools_x64_598803.exe)의 Pex 및 Moles Power Tools 0.94.51023.0을 사용하고 있습니다 (Windows 7 Enterprise 64 비트, 모두 Windows Update를 통해 설치된 업데이트). 프로젝트는 .NET 2.0이며 테스트는 설정에서 명시 적으로 설정된 32 비트 모드로 실행됩니다. 실행하면 모든 것이 정상이며 오류가 발생하지 않습니다.단위 테스트 디버깅을 중지 할 때 충돌이 발생합니다.

Microsoft.Moles.VsHost stopped working 
Problem signature: 
    Problem Event Name: CLR20r3 
    Problem Signature 01: microsoft.moles.vshost.x86.exe 
    Problem Signature 02: 0.94.0.0 
    Problem Signature 03: 4cc31915 
    Problem Signature 04: System.Runtime.Remoting 
    Problem Signature 05: 4.0.0.0 
    Problem Signature 06: 4ba1df86 
    Problem Signature 07: e5 
    Problem Signature 08: c9 
    Problem Signature 09: System.Runtime.Remoting.Remoting 
    OS Version: 6.1.7601.2.1.0.256.4 
    Locale ID: 1033 
    Additional Information 1: 0a9e 
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 
    Additional Information 3: 0a9e 
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789 

첨부 디버거를 더 자세한 정보를 가지고 : 내가 디버그 모드에서 테스트를 실행하고 완료하기 전에 중지 할 때, 두더지가 충돌하는

The test adapter 'MolesAgentAdapter' threw an exception while running test 'My_Test_Method_Name'. Failed to read from an IPC Port: The pipe has been ended. 

콜 스택 :

Server stack trace: 
    at System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout) 
    at System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout) 
    at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream) 
    at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) 

Exception rethrown at [0]: 
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 
    at Microsoft.VisualStudio.TestTools.Execution.IResultSink.AddResult(TestMessage testMessage) 
    at Microsoft.Moles.VsHost.Host.SafeResultSink.AddResult(TestMessage testMessage) 
    at Microsoft.Moles.VsHost.RunResultSyncLogger.eventLogSource_LogHandler(LogEventArgs e) 
    at Microsoft.ExtendedReflection.Logging.EventLog.LogUnfiltered(LogEventArgs args) 
    at Microsoft.ExtendedReflection.Logging.EventLog.LogErrorFromException(Exception ex, String wikiTopic, String category, String message) 
    at Microsoft.Moles.VsHost.Host.MolesHostAdapter.AsyncRunTests() 
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
    at System.Threading.ThreadHelper.ThreadStart() 

을 테스트가 끝까지 실행되면 충돌이 발생하지 않습니다. 이미 .NET Framework 및 Moles를 다시 설치하려고 시도했지만이 문제를 성공적으로 해결할 수 없습니다. 어떤 아이디어로 인해이 문제를 해결할 수 있습니까? 표시된 프록시 및 IPC 연결은 매우 이상합니다. 미리 감사드립니다.

답변

0

프로젝트 업그레이드 중에 문제가 해결되어 Moles를 단계적으로 제거하고 Fakes로 대체했습니다.

관련 문제