1.5.4 - NCover.Console - Exception on start

1.5.4 - NCover.Console - Exception on start

I'm getting the following exception, simply attempting to run the ncover.console.exe from the command-line.  The exception only reveals details if I add the following to the .config file's startup node:
<supportedRuntime version="v1.1.4322" />

Unhandled Exception: System.BadImageFormatException: The format of the file 'NCover.Console.exe' is invalid.
File name: "NCover.Console.exe"

If I leave the .config file alone, the exception is hidden from me, and no option to debug is given.

I am only running the .NET 1.1 framework, since this is the framework we are developing against for our products.

Thank you
Steve


Re: Ncover Runner issue

Sounds like you have an issue with mixing some .net 2.0 assemblies with a .net 1.1 application - certainly that is what the "Test.dll is in an invalid format" error is all about. You don't say what version of NCover you are running?


Re: Ncover Runner issue

Hi Grant ,

I'm using NCover-1.5.8 & my  application is developed with .Net 2.0 version . My OS is Windows 2003.

But on the N-Cover Explorer it displays :

OS Version :Microsoft Windows NT 5.2.3790.0  . .Net Version :1.1.4322.2300

And also , I have no issues executing my applications . So not sure about assembly mixing issues . :-(

Thanks in Advance.

Regards

Girija

 

 


Re: Ncover Runner issue

You sure you are executing the right version of NUnit for your .NET 2.0 application? It looks to me from that assembly log output that it is loading the .NET 1.1 runtime for NUnit rather than 2.0 which you say your application is.

Use the command line that NCoverExplorer generates for you, strip off the NCover.Console stuff and arguments and just run the nunit-console part of it, making sure you get that running. Once you have that sorted then "graduate" up to actually wrapping NCover around it.


Re: Where is the Source Code hosted?

I don't think the source for anything beyond 1.5.4 is available. I can't get an answer either though.


Re: Where is the Source Code hosted?

The SourceForge project for NCover is a completely different and as you may have noticed pretty much "dead" product, related only by (unfortunately) the same name as this one by Peter which causes confusion. The Trac source you found is for this project.

Yes the 1.5.4 source is the latest currently available for NCover. As Peter indicated in his blog he is making some pretty big changes to how the profiler works underneath which he only partially completed for 1.5.5 and is still working on for 1.5.6. So even if you did have the 1.5.5 source it likely wouldn't help you much as it has a number of well documented issues and has been changed further since then.

In the meantime we just have to be patient for him to resolve some very technically challenging problems he is working through at very low levels of the framework. I know he is actively working on it as I have had a couple of 1.5.6 "alpha" builds from him to test with NCoverExplorer etc, one as recently as a few days ago. There are still a few issues to be resolved with it though which make it not yet ready for release (so no point in asking me for it even if Peter did want it circulating at this point!).