Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Startup Error in Studio 2017
dpc640
#1 Posted : Thursday, April 27, 2017 5:05:42 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/15/2014(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
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:

Quote:
<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

Quote:
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

Quote:
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)
Remco
#2 Posted : Thursday, April 27, 2017 10:42:43 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
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
1 user thanked Remco for this useful post.
dpc640 on 4/28/2017(UTC)
dpc640
#3 Posted : Friday, April 28, 2017 2:53:06 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/15/2014(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thanks! It was step 5 that I didn't know about.
Remco
#4 Posted : Friday, April 28, 2017 3:12:08 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
dpc640;10329 wrote:
Thanks! It was step 5 that I didn't know about.


I'm glad that did the trick! :)
Der-Albert.com
#5 Posted : Tuesday, May 16, 2017 8:06:33 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 208

Thanks: 11 times
Was thanked: 53 time(s) in 50 post(s)
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.
2 users thanked Der-Albert.com for this useful post.
Remco on 5/16/2017(UTC), ndeslandes on 7/24/2017(UTC)
ndeslandes
#6 Posted : Monday, July 24, 2017 12:52:03 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/12/2014(UTC)
Posts: 10
Location: United Kingdom

Thanks: 2 times
Was thanked: 3 time(s) in 2 post(s)
Der-Albert.com;10380 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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.078 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download