HI,
I've just installed NCrunch in a new MVC project ( File -> New Project and the default tests provided). I have changed the default MVC3 tests to use xUnit instead of MSTest. The 2 default tests fail to run with the following output:
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at nCrunch.Core.ProcessManagement.ExternalProcessManager.#=qRkm8M2WYio3_BU5lSMVAtg==(Nullable`1 #=qLvrVKkCB6_Ic6YUqiPUfAnxQ$tA9xzO09lyG0vLO8eA=, Nullable`1 #=qDJJzsuRYnJ8gfj30qwUQHzX3CzHzxu3gCyl3XJY3ndo=, Type #=qLycDiplL_PvWMH0njSUSxA==, String #=qKYKWAAF1NY1YX6tbO5h8V9m4MyjWlce$RO6$KgIFmsg=, String #=q7h2rE_Q7CHeAqzlAN$AT5g==, String #=qJQmUtDehcNRpAV4SsvJmgoZnfKXCNCa9f84AUP5Z2Vg=)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=qfO4zMrAChS8R_IQWnfyYjpeef3BvuspR0sBt6_2$6Ggx6S5B0z9zKeG0G3jWnY0Y(Action`1 #=qzby81Gl79jMNsZ2ydluulw==)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(String projectFilePath, String buildXml, String useBuildConfiguration, String solutionDir)
at nCrunch.Core.ComponentLoader.SnapshotComponentFactory.#=qhzH3fDgeMQNy$Q7f19YshrzzdhorlM05yRGA_P$fQ6c=()
at nCrunch.Core.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(String projectFilePath, String projectXml, String solutionFilePath)
Is there anything I need to do to get it working correctly?
Thanks,
Ciaran
Remco NCrunch Developer
#654
04 Dec 2011 05:16 UTC
This happens when NCrunch is unable to access/find its taskrunner executables. The most common cause is if something went wrong during the install process. Does doing an uninstall/reinstall of the 1.35b solve this problem?
I've tried re-installing but no luck. Perhaps it's a conflict with another extension? I have Telerik JustCode installed, so I don't know if that would be an issue. Do you output any debug/trace files I could sent on to you?
Remco NCrunch Developer
#657
04 Dec 2011 22:25 UTC
You can submit a bug report using the NCrunch menu - this contains a trace log showing the workings of the engine leading up to the error .. this will help to figure out what's going on.
Is this the first time you've used NCrunch? If not, has it worked for you before?
Also ... can you check whether the task runner .exes are sitting in your NCrunch install directory? You should be able to see the following exes:
nCrunch.TaskRunner20.x86.exe
nCrunch.TaskRunner40.x86.exe
nCrunch.TaskRunner20.x64.exe
nCrunch.TaskRunner40.x64.exe
In the directory: Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2010
Is this the first time you've used NCrunch? If not, has it worked for you before?
Also ... can you check whether the task runner .exes are sitting in your NCrunch install directory? You should be able to see the following exes:
nCrunch.TaskRunner20.x86.exe
nCrunch.TaskRunner40.x86.exe
nCrunch.TaskRunner20.x64.exe
nCrunch.TaskRunner40.x64.exe
In the directory: Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2010
I have submitted a bug via the NCrunch menu with the title 'NCrunch fails to build - oneillci forum post'
This is my first time using NCrunch
The task runner exes are in place in the install directory.
This is my first time using NCrunch
The task runner exes are in place in the install directory.
Remco NCrunch Developer
#668
05 Dec 2011 10:05 UTC
Thanks for sending through the report. It looks as though Visual Studio is loading the NCrunch Taskrunner.dll file from a shadow copied location. This is really wrong.
Try removing the contents of the User\AppData\Local\assembly directory - hopefully this will kick it to start using the proper installation instead of resolving to the wrong place.
Try removing the contents of the User\AppData\Local\assembly directory - hopefully this will kick it to start using the proper installation instead of resolving to the wrong place.
I still get the same error after deleting User\AppData\Local\assembly. I have submitted another bug report.
Remco NCrunch Developer
#676
06 Dec 2011 04:12 UTC
Thanks. If you remove the Local\assembly directory, do you still receive the problem if you immediately try NCrunch with a non-MVC solution (i.e. just a simple class library on its own) with any other test framework?
Edited 06 Dec 2011 04:13 UTC
Very strange. I created a console app with a MS Test project, NCrunch ran fine.
Created a new MVC project, NCrunch ran fine.
Changed to use Xunit, NCrunch ran fine.
But it is still not working in my original project - while not 100% new, it's just got 1 new Controller and a few Actions and runs perfectly :/
NCrunch looks like great stuff though - will make my TDD workflow so much easier :)
Created a new MVC project, NCrunch ran fine.
Changed to use Xunit, NCrunch ran fine.
But it is still not working in my original project - while not 100% new, it's just got 1 new Controller and a few Actions and runs perfectly :/
NCrunch looks like great stuff though - will make my TDD workflow so much easier :)
Remco NCrunch Developer
#681
06 Dec 2011 20:30 UTC
I wonder if this could be related to the configuration file you're using on the MVC project. I've tried the default MVC3 templates at my end and they didn't cause this problem, but I have had a user before mention a similar sounding problem that they solved by deleting their config files...
I should be able to introduce a speculative fix to solve this problem in the 1.36b build, though I'm still curious as to why it is happening for your MVC project. I'd be interested to hear if removing your config file from the project resolves the problem.
I should be able to introduce a speculative fix to solve this problem in the 1.36b build, though I'm still curious as to why it is happening for your MVC project. I'd be interested to hear if removing your config file from the project resolves the problem.
Remco NCrunch Developer
#767
19 Dec 2011 08:10 UTC
The fix for the above problem has now been released as part of 1.36b.
Post a reply
Log in to reply.