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

Notification

Icon
Error

VS2015 & old NCrunch: 'Framework46' not installed on this machine
BettigM
#1 Posted : Monday, October 29, 2018 12:43:02 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/23/2014(UTC)
Posts: 5
Location: Germany

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Hello everyone,

My admittedly old version of NCrunch (2.15.0.9 - the latest version I can use with my existing license) which worked fine with VS2013 isn't working with my new VS2015 installation.
Enabling NCrunch displays no visual error message. It seems to be in a limbo between enabled and disabled where I can't even try to re-enable it.

After setting the Log verbosity to "Detailed" I now get the following error in the NCrunch Diagnostic Output window:
"The requested version of the .NET framework, 'Framework46' is not installed on this system"

But .NET Framework 4.6.1 including the SDK is installed.

I tried changing the supported runtime attribute from 4.5.x and 4.6 to 4.6.1 in the NCrunch config files but that didn't help either.

Is there anything else I could be trying to diagnose or even fix this issue?

Thanks in advance,
Markus

Here's the whole output with a new empty class library:
[13:03:31.6127-UI-1] Publishing Event: [ConfigFileUpdatedEvent:C:\Users\markus.bettig\AppData\Roaming\NCrunch\globalconfig.crunch.xml]
[13:03:31.6127-UI-1] Event [ConfigFileUpdatedEvent:C:\Users\markus.bettig\AppData\Roaming\NCrunch\globalconfig.crunch.xml] is being published on thread CoreThread to subscriber: ConfigContainer.
[13:03:31.6127-Core-45] Event [ConfigFileUpdatedEvent:C:\Users\markus.bettig\AppData\Roaming\NCrunch\globalconfig.crunch.xml] is being processed on Core thread with subscriber: ConfigContainer.
[13:03:33.0125-UI-1] Publishing Event: [DataAwareWindowClosedEvent]
[13:03:33.0125-UI-1] Event [DataAwareWindowClosedEvent] is being published on thread CoreThread to subscriber: DataAwareWindowSynchroniser.
[13:03:33.0125-UI-1] Event [DataAwareWindowClosedEvent] is being published on thread CoreThread to subscriber: UIStateMonitor.
[13:03:33.0125-Core-8] Event [DataAwareWindowClosedEvent] is being processed on Core thread with subscriber: DataAwareWindowSynchroniser.
[13:03:33.0125-Core-8] Event [DataAwareWindowClosedEvent] is being processed on Core thread with subscriber: UIStateMonitor.
[13:03:44.8716-UI-1] DTE reports project added: C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\ClassLibrary1.csproj
[13:03:44.8716-UI-1] Publishing Event: [DteProjectAddedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\ClassLibrary1.csproj]
[13:03:44.8716-UI-1] Event [DteProjectAddedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\ClassLibrary1.csproj] is being published on thread CoreThread to subscriber: Solution.
[13:03:44.8716-UI-1] Inferring that solution is open because a project was added
[13:03:44.8716-Core-6] Event [DteProjectAddedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\ClassLibrary1.csproj] is being processed on Core thread with subscriber: Solution.
[13:03:44.8716-UI-1] DTE reports solution opened
[13:03:44.8716-Core-6] Publishing Event: [SolutionChangedEvent]
[13:03:44.8716-Core-6] Event [SolutionChangedEvent] is being published on thread CoreThread to subscriber: ConfigTreeSynchroniser.
[13:03:44.8716-Core-6] Event [SolutionChangedEvent] is being processed on Core thread with subscriber: ConfigTreeSynchroniser.
[13:03:45.146-UI-1] Publishing Event: [:nCrunch.VSAddIn.UI.EditorWindowManager++.]
[13:03:45.146-UI-1] Event [:nCrunch.VSAddIn.UI.EditorWindowManager++.] is being published on thread UIThread to subscriber: QueuedActionHandler.
[13:03:45.3731-?-16] Publishing Event: [:nCrunch.Common.EventPiping.QueuedActionHandler++.]
[13:03:45.3731-?-16] Event [:nCrunch.Common.EventPiping.QueuedActionHandler++.] is being published on thread UIThread to subscriber: QueuedActionHandler.
[13:03:46.2064-UI-1] VS reports Document window opened: C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\Class1.cs
[13:03:46.2104-UI-1] Mounting coverage bar for C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\Class1.cs (instance = 38155279)
[13:03:46.2104-UI-1] Found WpfTextView parent: Grid
[13:03:46.2104-UI-1] Found WpfTextView sibling: WpfTextView
[13:03:46.2104-UI-1] Found WpfTextView sibling: LeftMargin
[13:03:46.2104-UI-1] Found WpfTextView sibling: ContainerMargin
[13:03:46.2104-UI-1] Found WpfTextView sibling: ContainerMargin
[13:03:46.2104-UI-1] Found WpfTextView sibling: ContainerMargin
[13:03:46.2104-UI-1] Found WpfTextView sibling: ContainerMargin
[13:03:46.2104-UI-1] Attempting to mount coverage bar under sibling: LeftMargin
[13:03:46.2104-UI-1] Checking for existing coverage bar to unmount
[13:03:46.2104-UI-1] No existing coverage bar found
[13:03:46.2104-UI-1] Coverage bar is now mounted for C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1\Class1.cs
[13:03:46.2104-UI-1] Found left selection margin: LeftMargin
[13:03:46.2134-UI-1] Publishing Event: [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln]
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread CoreThread to subscriber:  .
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread CoreThread to subscriber: UserSettingsManager.
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread CoreThread to subscriber: Solution.
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread CoreThread to subscriber: EngineModeController.
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread CoreThread to subscriber: EngineHost.
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread CoreThread to subscriber: OfflineGridManagementSynchroniser.
[13:03:46.2134-UI-1] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being published on thread UIThread to subscriber: EnableMenuOption.
[13:03:46.2134-Core-49] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being processed on Core thread with subscriber:  .
[13:03:46.2134-Core-49] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being processed on Core thread with subscriber: UserSettingsManager.
[13:03:46.2144-Core-49] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being processed on Core thread with subscriber: Solution.
[13:03:46.2154-UI-1] Publishing Event: [:nCrunch.VSAddIn.UI.EditorWindowManager++.]
[13:03:46.2154-UI-1] Event [:nCrunch.VSAddIn.UI.EditorWindowManager++.] is being published on thread UIThread to subscriber: QueuedActionHandler.
[13:03:46.2194-Core-49] Publishing Event: [SolutionChangedEvent]
[13:03:46.2194-Core-49] Event [SolutionChangedEvent] is being published on thread CoreThread to subscriber: ConfigTreeSynchroniser.
[13:03:46.2194-Core-49] Event [SolutionChangedEvent] is being processed on Core thread with subscriber: ConfigTreeSynchroniser.
[13:03:46.2194-Core-49] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being processed on Core thread with subscriber: EngineModeController.
[13:03:46.2204-Core-49] Publishing Event: [EngineModeSwitchedInUIEvent:Run all tests automatically]
[13:03:46.2204-Core-49] Event [EngineModeSwitchedInUIEvent:Run all tests automatically] is being published on thread UIThread to subscriber: VsMenu.
[13:03:46.2204-Core-49] Event [EngineModeSwitchedInUIEvent:Run all tests automatically] is being published on thread CoreThread to subscriber: EngineModeController.
[13:03:46.2204-Core-49] Publishing Event: [EngineModesChangedEvent]
[13:03:46.2204-Core-49] Event [EngineModesChangedEvent] is being published on thread UIThread to subscriber: VsMenu.
[13:03:46.2204-Core-49] Event [EngineModeSwitchedInUIEvent:Run all tests automatically] is being processed on Core thread with subscriber: EngineModeController.
[13:03:46.2204-Core-49] Publishing Event: [EngineModeSwitchCompletedEvent:Run all tests automatically]
[13:03:46.2204-Core-49] Event [EngineModeSwitchCompletedEvent:Run all tests automatically] is being published on thread CoreThread to subscriber: UIStateMonitor.
[13:03:46.2204-Core-49] Event [EngineModeSwitchCompletedEvent:Run all tests automatically] is being processed on Core thread with subscriber: UIStateMonitor.
[13:03:46.2214-Core-49] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being processed on Core thread with subscriber: EngineHost.
[13:03:46.2214-Core-49] Event [DteSolutionOpenedEvent:C:\Users\markus.bettig\Documents\Visual Studio 2015\Projects\ClassLibrary1\ClassLibrary1.sln] is being processed on Core thread with subscriber: OfflineGridManagementSynchroniser.
[13:03:46.3958-UI-1] Publishing Event: [:nCrunch.VSAddIn.UI.EditorWindowManager++.]
[13:03:46.3958-UI-1] Event [:nCrunch.VSAddIn.UI.EditorWindowManager++.] is being published on thread UIThread to subscriber: QueuedActionHandler.
[13:03:47.8759-UI-1] DTE reports solution opened
[13:03:56.0494-UI-1] Publishing Event: [:nCrunch.VSAddIn.UI.EditorWindowManager++.]
[13:03:56.0494-UI-1] Event [:nCrunch.VSAddIn.UI.EditorWindowManager++.] is being published on thread UIThread to subscriber: QueuedActionHandler.
[13:04:15.9925-UI-1] Publishing Event: [SystemEnableAttemptedEvent]
[13:04:15.9925-UI-1] Event [SystemEnableAttemptedEvent] is being published on thread CoreThread to subscriber:  .
[13:04:15.9925-Core-62] Event [SystemEnableAttemptedEvent] is being processed on Core thread with subscriber:  .
[13:04:16.0866-Core-62] Publishing Event: [SystemEnabledEvent]
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread CoreThread to subscriber:  .
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread CoreThread to subscriber: .
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread CoreThread to subscriber: EngineHost.
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread CoreThread to subscriber: EngineResetCoordinator.
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread CoreThread to subscriber: PackageIntegrator.
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread UIThread to subscriber: AutomationIntegrator.
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being published on thread UIThread to subscriber: EnableMenuOption.
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being processed on Core thread with subscriber:  .
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being processed on Core thread with subscriber: .
[13:04:16.0866-Core-62] Event [SystemEnabledEvent] is being processed on Core thread with subscriber: EngineHost.
[13:04:16.1126-Core-62] ERROR (Internal): System.Exception: The requested version of the .NET framework, 'Framework46' is not installed on this system
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Client.EngineHosting.HostedEngineFactory.(EngineHostingStrategy , VisualStudioVersion)
at nCrunch.Client.EngineHosting.HostedEngineFactory.CreateHostedEngine(VisualStudioVersion visualStudioVersion)
at nCrunch.Client.EngineHosting.EngineHost.(SystemEnabledEvent )

[13:04:16.1126-Core-62] Event [SystemEnabledEvent] is being processed on Core thread with subscriber: EngineResetCoordinator.
[13:04:16.1126-Core-62] Event [SystemEnabledEvent] is being processed on Core thread with subscriber: PackageIntegrator.
Remco
#2 Posted : Tuesday, October 30, 2018 12:23:09 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Markus,

The version of NCrunch you're using was coded with an incorrect value in the checking for the version of .NET installed. Although this worked fine at the time, when a later version of .NET was later installed the check became invalid and no longer worked correctly.

The correct solution here is to upgrade your version of NCrunch. It might be possible to work around the limitation by dropping back a version or uninstalling later versions of .NET, but I can't confirm this with certainty as I don't have reliable information around which versions are affected or are clashing. I published a fix for this issue as soon as it was reported.

Although we do our best to implement things in a forward compatible manner, combining old versions of NCrunch with newer versions of the .NET platform tooling (i.e. VS, .NET framework, .NET Core, MSBuild, test frameworks) will have a very high chance of exposing you to problems like this one. The platform has been moving very fast for many years, and new changes being made to it are not released as entirely separate compartments that are installed side-by-side (contrary to what the installers would have you believe). We can't warrant that older versions of NCrunch will continue to work if you update your environment. This means you'll either need to freeze your dev environment or keep everything updated.
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