axodox / AxoCover

Nice and free .Net code coverage support for Visual Studio with OpenCover.
https://marketplace.visualstudio.com/items?itemName=axodox1.AxoCover
MIT License
248 stars 60 forks source link

Coverage fail because of SerializableException. #195

Open soultingo opened 5 years ago

soultingo commented 5 years ago

Hi, I get this exception when I take coverage code.

SerializableException: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 AxoCover.Models.Testing.Runner.ITestExecutionService.RunTests(TestExecutionTask[] executionTasks, TestExecutionOptions options)
   at AxoCover.Models.Testing.Execution.ExecutionProcess.RunTests(TestExecutionTask[] testExecutionTasks, TestExecutionOptions options)
   at AxoCover.Models.Testing.Execution.TestRunner.RunTests(TestItem testItem, Boolean isCovering, Boolean isDebugging)
   at AxoCover.Models.Testing.Execution.TestRunner.<>c__DisplayClass40_0.<RunTestsAsync>b__0()

I open Event Viewer and get that error log: Source: .Net Runtime

Application: AxoCover.Host-x64.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FF8BA1B38A0 (00007FF8B9CE0000) with exit code 80131506.

Source: Application Error

Faulting application name: AxoCover.Host-x64.exe, version: 1.0.0.0, time stamp: 0x5c9893ca
Faulting module name: clr.dll, version: 4.7.3362.0, time stamp: 0x5c2fcfd4
Exception code: 0xc0000005
Fault offset: 0x00000000004d38a0
Faulting process id: 0x1cfc
Faulting application start time: 0x01d4e2e6ff9c75dc
Faulting application path: C:\Users\User\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\2ubjgqbo.a51\AxoCover.Host-x64.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 042b213e-7e22-4af0-a6aa-5f89cbfdf980
Faulting package full name: 
Faulting package-relative application ID: 

My coding environment are: