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

Notification

Icon
Error

NCrunch doesn't use the 4.6.2 engine host
lguilhou
#1 Posted : Monday, September 19, 2016 3:53:46 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/9/2016(UTC)
Posts: 3
Location: France

Thanks: 4 times
I can't seem to make NCrunch (2.26) use the 4.6.2 version of its engine, even though the framework is properly installed, as well as its dev (and targeting) pack. It keeps using the 4.6.1 version.

However using a grid node on a 2008 r2 server with the 4.6.2 framework installed does use the 4.6.2 version properly. But locally, it always ends up in an analysis failure "The requested version of the .NET framework, 'Framework462' is not installed on this system"

This is on a Win10 x64 Enterprise (with all updates) with VS2015 Enterprise. I've just reinstalled the entire system (clean install, up to and including recreating the partition, can't do much cleaner than that :) from the Win10 anniversary update ISO. Even with only that, VS2015, ReSharper and NCrunch, the 4.6.2 engine is still not being used.

This happens on any project, even just creating a new class library and adding the NUnit package (or xUnit, doesn't matter). The project is created targeting the 4.5.2 framework by default, NCrunch when enabled starts up the 4.6.1 host and a 4.5.2 runner, and when switching the project to 4.6.2... no more NCrunch.

The 4.6.2 framework does work properly, can be use to compile and run the projects without any issues, the ReSharper test runner works fine with it, it's just NCrunch that doesn't seem to like it.

I may be missing something obvious but I'm currently out of ideas.
Remco
#2 Posted : Tuesday, September 20, 2016 8:32:16 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
1 user thanked Remco for this useful post.
lguilhou on 9/20/2016(UTC)
lguilhou
#3 Posted : Tuesday, September 20, 2016 10:13:34 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/9/2016(UTC)
Posts: 3
Location: France

Thanks: 4 times
2.27 uses the 4.6.2 engine without problem, thanks :)
Remco
#4 Posted : Tuesday, September 20, 2016 10:54:33 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Great! Thanks for confirming!
Remco
#5 Posted : Sunday, October 2, 2016 6:06:27 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
v2.27 has now been fully released - https://www.ncrunch.net/download.
lguilhou
#6 Posted : Sunday, October 2, 2016 10:13:01 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/9/2016(UTC)
Posts: 3
Location: France

Thanks: 4 times
Still works with framework 4.6.2 \o/

Little side question: is it normal that the test runner is always the x86 version even when both the NCrunch configuration and the project platforms are set to x64? The engine and build hosts are x64 but test hosts are always x86.

It doesn't cause any issue for me but I thought I'd mention it just in case :)
Remco
#7 Posted : Sunday, October 2, 2016 11:37:31 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
lguilhou;9244 wrote:
Still works with framework 4.6.2 \o/


Excellent! :)

lguilhou;9244 wrote:

Little side question: is it normal that the test runner is always the x86 version even when both the NCrunch configuration and the project platforms are set to x64? The engine and build hosts are x64 but test hosts are always x86.

It doesn't cause any issue for me but I thought I'd mention it just in case :)


Yes, this is by intention. See here for more details.
Rupert
#8 Posted : Monday, July 3, 2017 12:36:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/3/2017(UTC)
Posts: 2
Location: United Kingdom

Was thanked: 1 time(s) in 1 post(s)
Hi,
I'm using NCrunch 3.9.0.1, integrated into VS 2017, running on Windows 7.

I am getting the following error when trying to test an assembly that targets .Net Framework 4.6.2: System.Exception: The requested version of the .NET framework, 'Framework462' is not installed on this system.
.Net 4.6.2 is installed on the system.

Any ideas?!?

thanks,
Rupert
Remco
#9 Posted : Monday, July 3, 2017 11:21:39 PM(UTC)
Rank: NCrunch Developer

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

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

When creating a test environment, NCrunch will always use the version of .NET targeted by the test project.

This means that if you have a test project targeting .NET v4.6.2, you will need to have .NET v4.6.2 installed. NCrunch detects v4.6.2 by inspecting the "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Release" registry value. For v4.6.2 to be installed correctly, this registry value must be 394802 or above (according to MS specs). If you have v4.6.2 installed but the registry key is lower than this value, you probably have a broken installation of .NET v4.6.2 and may need to reinstall it.
Rupert
#10 Posted : Wednesday, July 5, 2017 6:42:04 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/3/2017(UTC)
Posts: 2
Location: United Kingdom

Was thanked: 1 time(s) in 1 post(s)
Hi Remco,
Thanks for getting back to me. Looks like the registry setting described above was below 394802, and a re-install of .NET 4.6.2 resolved the issue. Everything working fine now.

cheers,
Rupert

1 user thanked Rupert for this useful post.
Remco on 7/5/2017(UTC)
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.071 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download