В догонку приведу стек при падении студии:
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>DefaultDomain</AppDomain><Exception><ExceptionType>System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Exception has been thrown by the target of an invocation.</Message><StackTrace> at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CryptoPro.Sharpei.NetDetours.CrossDomainList.TracedInvoke(MethodInfo mi, Object obj, Object[] parameters)
at CryptoPro.Sharpei.NetDetours.CrossDomainList.CreateDomain(AppDomain newDomain)
at CryptoPro.Sharpei.NetDetours.CPAppDomainManager.CreateDomainHelper(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
at System.AppDomainManager.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
at System.AppDomain.InternalCreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at CryptoPro.Sharpei.NetDetours.CPAppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at Microsoft.VisualStudio.Toolbox.VsToolboxService.Microsoft.VisualStudio.Shell.Interop.IVsToolboxDataProvider2.GetProfileData(IDataObject pDO, String&amp; pbstrData)</StackTrace><ExceptionString>System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.
at System.AppDomain.UpdateLoaderOptimization(LoaderOptimization optimization)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CryptoPro.Sharpei.NetDetours.CrossDomainList.TracedInvoke(MethodInfo mi, Object obj, Object[] parameters)
at CryptoPro.Sharpei.NetDetours.CrossDomainList.CreateDomain(AppDomain newDomain)
at CryptoPro.Sharpei.NetDetours.CPAppDomainManager.CreateDomainHelper(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
at System.AppDomainManager.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
at System.AppDomain.InternalCreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at CryptoPro.Sharpei.NetDetours.CPAppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at Microsoft.VisualStudio.Toolbox.VsToolboxService.Microsoft.VisualStudio.Shell.Interop.IVsToolboxDataProvider2.GetProfileData(IDataObject pDO, String&amp; pbstrData)</ExceptionString><InnerException><ExceptionType>System.AppDomainUnloadedException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Attempted to access an unloaded AppDomain.</Message><StackTrace> at System.AppDomain.UpdateLoaderOptimization(LoaderOptimization optimization)</StackTrace><ExceptionString>System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.
at System.AppDomain.UpdateLoaderOptimization(LoaderOptimization optimization)</ExceptionString></InnerException></Exception></TraceRecord>