2013-12-20 92 views
0

我在Visual Studio 2010 SP1中使用Pex和Moles Power Tools 0.94.51023.0 64位(en_visual_studio_2010_pex_0.94.51023.0_power_tools_x64_598803.exe)(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

問題在項目升級期間得到解決,導致淘汰痣並將它們換成假貨。