OpenCover / opencover

A code coverage tool for .NET 2 and above (WINDOWS OS only), support for 32 and 64 processes with both branch and sequence points
https://blog.many-monkeys.com
Other
1.31k stars 248 forks source link

unable to install opencover on windows 2003 #60

Closed jewes closed 10 years ago

jewes commented 12 years ago

I downloaded the latest version 2.0.802.msi file. The installation wizard doesn't show when I double click it. There is a process named msiexec. Any idea on how to diagnose this issue?

sawilde commented 12 years ago

There isn't a UI, that is still on the todo list as well as a boot-strapper. Check in the add/remove programs and see if it is there or under "Program Files".

You may also need to install the latest version of Windows Installer (but as a developer you probably already have that) and .NET 4.0 Framework as the console application uses that.

jewes commented 12 years ago

Thanks for the quick response. I have the msi installer created a log file and realized that this opencover was installed successfully. Just found there was another thread to discuss improving the installer.

sawilde commented 12 years ago

yup - I hope to complete my release 2.0 stuff over the holiday break - any other issues let me know - the wiki is a good place to start around usage

rktalla commented 10 years ago

OpenCover is very good tool for .NET code coverage. The problem is I cannot run open cover on 2003 server 64bit machine. I am not able to register 64bit profiler dll, it is throwing an exception.

D:\JnknSlave\workspace\Tcvg>"C:\Program Files (x86)\OpenCover\OpenCover.Console.exe" -target:RunTests.bat -register:user -filter:+[IFS.BusinessLayer]* +[IFS.DataAccess]* +[IFS.GLSMessa ging]* +[IFS.Workflows]* -output:OpenCoverOut.xml

An exception occured: Failed to register(user:False,register:True,is64:True):3 t he profiler assembly; you may want to look into permissions or using the -regist er:user option instead. C:\WINDOWS\system32\regsvr32.exe /s "C:\Program Files (x86)\OpenCover\x64\OpenCover.Profiler.dll" stack: at OpenCover.Framework.ProfilerRegistration.ExecuteRegsvr32(Boolean us erRegistration, Boolean register, Boolean is64) at OpenCover.Console.Program.Main(String[] args)

D:\JnknSlave\workspace\Tcvg>pause Press any key to continue . . .

Below is run test batch file content ------- RunTests.bat--------- D:\nunit-2.5.9\nunit-console.exe D:\JnknSlave\workspace\Tcvg\src\BusinessLayer.test.dll /noshadow

rktalla commented 10 years ago

Open Cover is the best available open source tool for .NET code coverage. It works well with 32bit systems, in fact it wouldn’t work with windows 2003 server on 64bit machine. The 64 bit profiler dll is throwing an exception even when manually registering for the server.

See below OpenCover.Console run command and exception

------OpenCover.Console run command---------- D:\JnknSlave\workspace\Tcvg>"C:\Program Files (x86)\OpenCover\OpenCover.Console.exe" -target:RunTests.bat -register:user -filter:+[IFS.BusinessLayer]* +[IFS.DataAccess]* +[IFS.GLSMessa ging]* +[IFS.Workflows]* -output:OpenCoverOut.xml

------Exception---------- An exception occured: Failed to register(user:False,register:True,is64:True):3 t he profiler assembly; you may want to look into permissions or using the -regist er:user option instead. C:\WINDOWS\system32\regsvr32.exe /s "C:\Program Files (x86)\OpenCover\x64\OpenCover.Profiler.dll" stack: at OpenCover.Framework.ProfilerRegistration.ExecuteRegsvr32(Boolean us erRegistration, Boolean register, Boolean is64) at OpenCover.Console.Program.Main(String[] args)

D:\JnknSlave\workspace\Tcvg>pause Press any key to continue . . .

-------RunTests.bat--------- D:\nunit-2.5.9\nunit-console.exe D:\JnknSlave\workspace\Tcvg\src\BusinessLayer.test.dll /noshadow

sawilde commented 10 years ago

Do you need 64 bit support on Windows 2003?

rktalla commented 10 years ago

Yes, I need help on running Open Cover on Windows 2003 64bit server.

sawilde commented 10 years ago

As I don't have a 64 bit windows 2003 server I'll need more information from you.

When you call

C:\WINDOWS\system32\regsvr32.exe /s "C:\Program Files (x86)\OpenCover\x64\OpenCover.Profiler.dll"

What error do you get? Is there anything recorded in the EventLogs?

rktalla commented 10 years ago

I will send you more information

-RTalla 917-297-3319(cell) http://www.rktalla.com Sent from my iPhone

On Apr 24, 2014, at 12:04 AM, Shaun Wilde notifications@github.com wrote:

As I don't have a 64 bit windows 2003 server I'll need more information from you.

When you call

C:\WINDOWS\system32\regsvr32.exe /s "C:\Program Files (x86)\OpenCover\x64\OpenCover.Profiler.dll" What error do you get? Is there anything recorded in the EventLogs?

— Reply to this email directly or view it on GitHub.

oromir commented 10 years ago

Hi, I have the same problem trying to use OpenCover.4.5.2506 on a Windows 2003 64 bit server. I've tried installing all service packs, even installed Visual Studio 2010 professional SP1, but I still have the Failed to register error. And executing C:\WINDOWS\system32\regsvr32.exe /n /i:user "C:\sgstrunk\SanWF\SanWF\packages\OpenCover.4.5.2506\x64\OpenCover.Profiler.dll" gives the error LoadLibrary(...) failed: the specified module could not be found

sawilde commented 10 years ago

As I don't have a 64 bit windows 2003 server I'll need more information from you.

When you call

C:\WINDOWS\system32\regsvr32.exe /s "C:\Program Files (x86)\OpenCover\x64\OpenCover.Profiler.dll"

What error do you get? Is there anything recorded in the EventLogs?

Even with this information I may not be able to help due to not having the infrastructure to reproduce.

oromir commented 10 years ago

I double checked the EventLog, but nothing is logged when you run regsvr32.. .... .opencover.profiler.dll

sawilde commented 10 years ago

I can't see what I can do to help you.

molnargab commented 10 years ago

Do you need the /s switch? From the docs, it seems like it supresses error messages.

Tested a simple no-permission situation on Win8.1, with /s it fails silently. Without there's a message box with the alerts.

sawilde commented 10 years ago

Without the ability to investigate this I am closing this issue - windows server 2003 is going to be unsupported by MS in July 2015 (http://www.microsoft.com/en-au/server-cloud/products/windows-server-2003/).

To support/investigate this issue is too expensive for the number of users affected - my suggestion is to stop using a 11 year old OS and upgrade.