Аналогичная ошибка на Visual Studio 2013, 2015 (Update 1, Update 2)
Как вызываю ошибку:
Проект состоит из нескольких модулей - один из них использует CryptoPro.Sharpei
Работаю с WCF сервисами и делаю подпись XML.
Настраиваю подключение Binding в app.config и запускаю UnitTest на отладку. После отладки как только захожу в app.config:
Visual Studio 2013, 2015 (Update 1) пишет "Точка останова Обнаружена точка останова" - студия вываливается.
Visual Studio 2015 Update 2 - тупо вылетает c AppCrash.
Система 64 разрядная, КриптоПро.NET переустанавливал - версия 1.0.5913 x64
Всё находится на VMWare WorkStation 10.0.1 build-1379776
Problem signature:
Problem Event Name: APPCRASH
Application Name: devenv.exe
Application Version: 14.0.25402.0
Application Timestamp: 574fbb1e
Fault Module Name: clr.dll
Fault Module Version: 4.6.1055.0
Fault Module Timestamp: 563c0f73
Exception Code: 4000001f
Exception Offset: 002dba23
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1049
Additional Information 1: 088e
Additional Information 2: 088e590c9363d801bf335a5f7b4c342b
Additional Information 3: 9098
Additional Information 4: 90980223c583538a6a120d0c17a97973
Журнал ошибок Windows содержит
ERROR:Fatal group detour exception on CryptoPro.Sharpei.IdentityModel.CPX509AsymmetricSecurityKey.InitDetours. Critical exception.
ERROR:Patch on System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 installation error. Exception has been thrown by the target of an invocation..
WARNING:Unknown exception on assembly load. Error code: 0xe0434352.
ERROR:Faulting application name: devenv.exe, version: 14.0.25402.0, time stamp: 0x574fbb1e
Faulting module name: clr.dll, version: 4.6.1055.0, time stamp: 0x563c0f73
Exception code: 0x4000001f
Fault offset: 0x002dba23
Faulting process id: 0xd6c
Faulting application start time: 0x01d1d1552e5685d0
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: ffa93250-3d48-11e6-90d5-000c29e65a9f
Что примечательно, версия .NET Framework проекта - 4.5
Также делаю отладку без точки остановки - всё нормально, но как только делаю пошаговое выполнение, после окончания теста ещё гирлянда ошибок:
Error 29.06.2016 2:07:29 Application 0 None
The description for Event ID 0 from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Error Handler Exception: System.ServiceModel.CommunicationException: There was an error reading from the pipe: Канал был закрыт. (109, 0x6d). ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error reading from the pipe: Канал был закрыт. (109, 0x6d). ---> System.IO.PipeException: There was an error reading from the pipe: Канал был закрыт. (109, 0x6d).
at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
--- End of inner exception stack trace ---
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult)
at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
--- End of inner exception stack trace ---
at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)
at System.ServiceModel.Channels.StreamConnection.EndRead()
--- End of inner exception stack trace ---
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndTryReceive(IAsyncResult result, Message& message)
at System.ServiceModel.Dispatcher.DuplexChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext) \r\n at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndTryReceive(IAsyncResult result, Message& message)
at System.ServiceModel.Dispatcher.DuplexChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
Error 29.06.2016 2:07:29 .NET Runtime 1026 None
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code 80000003, exception address 704DBA23
Stack:
at CryptoPro.Sharpei.ServiceModel.MasterServiceModel.GetDetouredTypes()
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.Reflection.MethodBase.Invoke(System.Object, System.Object[])
at CryptoPro.Sharpei.NetDetours.DomainNeutralDet.TracedInvoke(System.Reflection.MethodInfo, System.Object, System.Object[])
at CryptoPro.Sharpei.NetDetours.DomainNeutralDet.MakeOneAssembly(CryptoPro.Sharpei.NetDetours.DetourDescription, System.Reflection.AssemblyName)
at CryptoPro.Sharpei.NetDetours.DomainNeutralDet.DetourAssembly(CryptoPro.Sharpei.NetDetours.DetDescriptionList, System.Reflection.Assembly)
at CryptoPro.Sharpei.NetDetours.CrossDomainList.DetourAssembly(System.Reflection.Assembly)
at CryptoPro.Sharpei.NetDetours.NativeDetourEntryPoint.OnAssemblyLoadEvent(System.Reflection.Assembly)
at Microsoft.VisualStudio.ServiceModel.Caching.ServiceAnalyzeHelper..cctor()
at Microsoft.VisualStudio.ServiceModel.Caching.Cache.AnalyzeAssembly(System.Reflection.Assembly, Int64)
at Microsoft.VisualStudio.ServiceModel.Caching.Cache.AnalyzeAssembly(System.String, Int64)
at Microsoft.VisualStudio.ServiceModel.Caching.Cache.AnalyzeAssembly(System.String, Int64)
at Microsoft.VisualStudio.ServiceModel.Caching.Cache+<>c__DisplayClass35_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<GetInfoFromAssembly>b__0()
at Microsoft.Tools.Common.ExceptionUtility.Try(System.Action)
at Microsoft.VisualStudio.ServiceModel.Caching.Cache.GetInfoFromAssembly[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.String>, System.Func`2<Microsoft.VisualStudio.ServiceModel.Caching.CachedServiceInfo,System.Collections.Generic.IEnumerable`1<System.__Canon>>, Boolean, System.Collections.Generic.IEnumerable`1<System.__Canon> ByRef, System.Exception ByRef)
at Microsoft.VisualStudio.ServiceModel.Caching.Cache.TryGetServicesFromAssembly(System.Collections.Generic.IEnumerable`1<System.String>, Boolean, System.Collections.Generic.IEnumerable`1<System.String> ByRef, System.Exception ByRef)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.CodeModelSchemaGenerator+<Generate>d__21.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.VisualStudio.ServiceModel.XmlEditor.CodeModelSchemaGenerator+<Generate>d__21, Microsoft.VisualStudio.ServiceModel.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<Generate>d__21 ByRef)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.CodeModelSchemaGenerator.Generate(EnvDTE.Project)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGeneratorTaskRunner+<AnalyzeCodeModel>d__16.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGeneratorTaskRunner+<AnalyzeCodeModel>d__16, Microsoft.VisualStudio.ServiceModel.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<AnalyzeCodeModel>d__16 ByRef)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGeneratorTaskRunner.AnalyzeCodeModel(Microsoft.VisualStudio.ServiceModel.XmlEditor.ConfigInfo, Microsoft.VisualStudio.ServiceModel.XmlEditor.AnalysisInfo)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGeneratorTaskRunner+<Analyze>d__10.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGeneratorTaskRunner+<Analyze>d__10, Microsoft.VisualStudio.ServiceModel.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<Analyze>d__10 ByRef)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGeneratorTaskRunner.Analyze(Microsoft.VisualStudio.ServiceModel.XmlEditor.ConfigInfo, Microsoft.VisualStudio.ServiceModel.XmlEditor.AnalysisInfo, Boolean)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGenerator+<RefreshSchema>d__35.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGenerator+<RefreshSchema>d__35, Microsoft.VisualStudio.ServiceModel.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<RefreshSchema>d__35 ByRef)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGenerator.RefreshSchema(System.Threading.CancellationToken, Boolean, Boolean)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGenerator+<>c__DisplayClass40_0+<<ScheduleAsyncTask>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGenerator+<>c__DisplayClass40_0+<<ScheduleAsyncTask>b__0>d, Microsoft.VisualStudio.ServiceModel.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<ScheduleAsyncTask>b__0>d ByRef)
at Microsoft.VisualStudio.ServiceModel.XmlEditor.SchemaGenerator+<>c__DisplayClass40_0.<ScheduleAsyncTask>b__0()
at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Warning 29.06.2016 2:07:29 CPNetDetours45 1 CLR Runtime
Unknown exception on assembly load. Error code: 0xe0434352.
Error 29.06.2016 2:07:29 CPNetDetours45 4 Patching
Patch on System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 installation error. Exception has been thrown by the target of an invocation..
Error 29.06.2016 2:07:29 CPNetDetours45 5 Patching
Fatal group detour exception on CryptoPro.Sharpei.IdentityModel.CPX509AsymmetricSecurityKey.InitDetours. Critical exception.
Warning 29.06.2016 2:07:29 CPNetDetours45 1 CLR Runtime
Unknown exception on assembly load. Error code: 0xe0434352.
Error 29.06.2016 2:07:29 CPNetDetours45 4 Patching
Patch on System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 installation error. Exception has been thrown by the target of an invocation..
Error 29.06.2016 2:07:29 CPNetDetours45 5 Patching
Fatal group detour exception on CryptoPro.Sharpei.IdentityModel.CPX509AsymmetricSecurityKey.InitDetours. Critical exception.
Error 29.06.2016 2:07:29 CPNetDetours45 2 Patching
Cross domain detour error. Exception has been thrown by the target of an invocation..
И так далее.
Добавлю, попробовал локализовать ошибку - отгрузил модуль с шарпеем, заккоментировал ServiceLocator - тесты при отладке проходит - конфиг открывается без проблем.
Заново подгрузил проект с шарпеем, всё раскомментировал - всё в порядке, НО как только активировал Resharper Ultimate - и оттуда запустил тест - получил снова AppCrash
c теми же самыми ошибками.
Делаю отладку самой студии:
Просто запускаю проект, не делаю никаких тестов - переключаюсь между вкладками app.config и вкладкой теста - AppCrash
Вот stackTrace по отладке самой студии:
> clr.dll!Module::EnableModuleFailureTriggers(class Module *,class AppDomain *) Unknown
clr.dll!DomainFile::PropagateNewActivation(class Module *,class Module *) Unknown
clr.dll!Module::AddActiveDependency(class Module *,int) Unknown
clr.dll!CEEJitInfo::addActiveDependency(struct CORINFO_MODULE_STRUCT_ *,struct CORINFO_MODULE_STRUCT_ *) Unknown
clr.dll!CEEInfo::ScanToken(class Module *,struct CORINFO_RESOLVED_TOKEN *,class TypeHandle,class MethodDesc *) Unknown
clr.dll!CEEInfo::resolveToken(struct CORINFO_RESOLVED_TOKEN *) Unknown
clrjit.dll!7184b8bd() Unknown
Было установлено опытным путём также, что в просто быстрое переключение по вкладкам App.config <-> unittest вызвает AppCrash
У меня в проекте большие классы с описанием сервисов ГИС ЖКХ - из-за них всё тормозит, как только я его отключаю (модуль с классами сервисов) - вкладки, тесты работают нормально.
Отредактировано пользователем 28 июня 2016 г. 20:25:42(UTC)
| Причина: Не указана