Setup Problems

Startup Error in Studio 2017

Started by dpc640 on 9,214 views

Hello,

I have been getting a fatal error when starting Visual Studio 2017.1 with NCrunch installed. It started with 3.6, and I just tried it with 3.7.0.4 and get the same thing.

In addition, NCrunch is not getting completely uninstalled. If I uninstall NCrunch, Studio starts, with a package load error as it is still trying to load parts of NCrunch. The NCrunch menu remains with all menu items, and any previously opened or saved NCrunch windows are opened with empty content.

I have had to resort to using Resharper's Continuous Testing, and I am getting used to it. Please bring me back into the fold!

Thanks,

Patrick


When starting Studio after uninstalling NCrunch, the relevant parts of ActivityLog.xml are:

<entry>
<record>63</record>
<time>2017/04/27 16:41:18.164</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [nCrunch.VSIntegration2010.CrunchPackage, nCrunch.VSIntegration2017, Version=3.6.0.2, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea]</description>
<guid>{14D2CAB3-EE7F-496E-BF5D-C67D2CBDD84D}</guid>
</entry>
<entry>
<record>64</record>
<time>2017/04/27 16:41:18.178</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [nCrunch.VSIntegration2010.CrunchPackage,
nCrunch.VSIntegration2017, Version=3.6.0.2, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea]Source:
&apos;mscorlib&apos; Description: Could not load file or assembly &apos;
file:///C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2017\nCrunch.VSIntegration2017.dll&apos; {MORE REMOVED HERE}
<guid>{14D2CAB3-EE7F-496E-BF5D-C67D2CBDD84D}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>



With NCrunch installed, Studio errors out on load with the following two entries from the Event Log

Faulting application name: devenv.exe, version: 15.0.26403.7, time stamp: 0x58f0354e
Faulting module name: msenv.dll, version: 15.0.26403.7, time stamp: 0x58f03722
Exception code: 0xc0000005
Fault offset: 0x003dd845
Faulting process id: 0x86cc
Faulting application start time: 0x01d2bf744e2622c7
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe
Faulting module path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\msenv.dll
Report Id: a794c1e7-2b67-11e7-ad64-e82aea0089f2


and

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at EnvDTE.FontsAndColorsItems.Item(System.Object)
at Devart.CodeCompare.Vs.VsUtils.BlendWithBackgroundColor(System.String, System.Drawing.Color)
at Devart.CodeCompare.Vs.DiffTagManager.#=qz9KkLSuuadOREhG3Df8U0g==()
at Devart.CodeCompare.Vs.DiffTagManager.#=qtS8t61W0EDlJl6TmU$tkDIqrO_eeG8Hr1KTKH4_JVZw=()
at Devart.CodeCompare.Vs.DiffTagManager.GetDiffTagger(Microsoft.VisualStudio.Text.Editor.ITextView)
at Devart.CodeCompare.Ipc.Vs.DiffTaggerProvider.CreateTagger[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.VisualStudio.Text.Editor.ITextView, Microsoft.VisualStudio.Text.ITextBuffer)
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GatherTaggers(Microsoft.VisualStudio.Text.ITextBuffer)
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<Initialize>b__13_0(Microsoft.VisualStudio.Text.ITextBuffer)
at Microsoft.VisualStudio.Text.Projection.Implementation.BufferGraph.GetTextBuffers(System.Predicate`1<Microsoft.VisualStudio.Text.ITextBuffer>)
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Initialize()
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].EnsureInitialized()
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<.ctor>b__12_0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(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.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
Hi Patrick,

Thanks for sharing this issue.

Your VS install is in a corrupted state. Try the following:

1. Make sure your IDE is closed
2. Uninstall NCrunch via Windows Programs/Features
3. Go to the NCrunch install directory (usually C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Remco Software)
4. Delete this directory and everything in it
5. Run the following command as an administrator: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe /setup
6. Open task manager and wait for devenv.exe to finish its work
7. Re-run the NCrunch installer and try again
Thanks! It was step 5 that I didn't know about.
dpc640 wrote:Thanks! It was step 5 that I didn't know about.


I'm glad that did the trick! :)
This can be a problem of the multiple instance issue.

I tried to update to 3.7.0.7 (from 3.7.0.4), but because of .NET Core 2 i also installted a preview of VS2017.

NCrunch deleted itself from the normal installation, installed to the preview and call devenv.exe only for the preview. so the normal VS2017 was "corrupted". and after removing NCrunch (over MSI) from the
preview, both where corrupted ;) devenv.exe /setup fixed the problems.

Just for Information.

Edited

Der-Albert.com wrote:This can be a problem of the multiple instance issue.

I tried to update to 3.7.0.7 (from 3.7.0.4), but because of .NET Core 2 i also installted a preview of VS2017.

NCrunch deleted itself from the normal installation, installed to the preview and call devenv.exe only for the preview. so the normal VS2017 was "corrupted". and after removing NCrunch (over MSI) from the
preview, both where corrupted ;) devenv.exe /setup fixed the problems.

Just for Information.


Did you manage to have NCrunch installed on both eventually? I did the same as you, and ended up with NCrunch only running on VS2017 Preview.

Post a reply

Log in to reply.