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

Notification

Icon
Error

The type or namespace name 'HttpResponseMessage' could not be found
terabyte
#1 Posted : Thursday, October 17, 2019 3:48:14 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/29/2012(UTC)
Posts: 1
Location: New Zealand

Hi
We have a project where NCrunch is used sporadically and so I'm not sure when this issue began.
It compiles correctly in visual studio but NCrunch has these errors for a project:
NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/d...ng_project-build-issues
Infrastructure\MediaContentUsage\Controllers\MediaReportController.cs (34, 10): The type or namespace name 'HttpResponseMessage' could not be found (are you missing a using directive or an assembly reference?)
Infrastructure\MediaContentUsage\Controllers\MediaReportController.cs (69, 10): The type or namespace name 'HttpResponseMessage' could not be found (are you missing a using directive or an assembly reference?)
Infrastructure\MediaContentUsage\Controllers\MediaReportController.cs (140, 10): The type or namespace name 'HttpResponseMessage' could not be found (are you missing a using directive or an assembly reference?)

I looked at the troubleshooting page, and tried a few things there, but could not resolve the issue.
When I compared the workspace folder with the project folder I found a lot of differences (there's much less in ncrunch workspace) and I'm not sure where I should focus.
The workspace packages folder is very sparse and does not contain System.Net.Http, I'm not sure if this is the issue, or how I'd get ncrunch to copy these packages.

Cheers.
Murray.
Remco
#2 Posted : Thursday, October 17, 2019 12:06:02 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

Could you confirm whether you're running the latest version of NCrunch? We have had fixed targeted to references pointing at this particular library in the past.

Also, does compatibility mode make any difference?
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.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download