NCover and ASP.Net application ...

NCover and ASP.Net application ...

I followed the instructions NCoverFAQ.html to configure ASP.NET and my c:\windows\system32\coverage.log and c:\windows\system32\coverage.xml are empty. Does anyone got NCover working for ASP.Net application. If so what am I doing wrong?

1) Ensure the NCoverLib COM component is registered (setup does this, but you can manually register it with regsvr32 if you wish).

2) Set the machine-wide COR profiling environment variables (or find some other way to get them set in the aspnet_wp.exe's environment):
  COR_ENABLE_PROFILING=1
  COR_PROFILER=CvrLib.CoverageProfiler

3) Create %windir%\System32\Coverage.log and %windir%\System32\Coverage.xml and grant .\ASPNET read+write+modify permission to these 2 files only.

4) Force a restart of IIS so aspnet_wp.exe picks up the new environment variables. Coverage info will be written to the System32 directory.

All ASP.Net processes (on Windows XP for sure, don't know about Windows 2003) use %windir%\System32 as their working dir, therefore if multiple processes are running they will stomp over the Coverage files.

I am using Windows 2003 Enterprise Edition Service Pack1