NCoverFAQ.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <!-- $Id: NCoverFAQ.html 247 2007-04-26 15:17:46Z peterwald $ -->
  5. <title></title>
  6. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  7. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  8. <style> body { font-size: 10pt; font-family: Verdana; }
  9. p.title { font-size: 20pt; font-weight: bold; }
  10. .subtitle { color: maroon; }
  11. p.question { font-weight: bold; }
  12. pre { font-size: 10pt; font-family: Courier; }
  13. pre.usage { background-color: #F0F0F0; }
  14. .quote { background-color: #F0F0F0; margin-left: 36pt;}
  15. .method { color: maroon; font-size: 10pt; font-weight: bold; }
  16. .hdrcell { background-color: #DDEEFF; font-size: 10pt; }
  17. .datacell { background-color: #FFFFEE; text-align: right; font-size: 10pt; }
  18. .hldatacell { background-color: #FFCCCC; text-align: right; font-size: 10pt; }
  19. .box { border: 1px solid; padding: 10px; }
  20. </style>
  21. </head>
  22. <body>
  23. <P class="title">NCover FAQ</P>
  24. <P>If you have questions that this document does not address, contact <A href="mailto:peter@waldschmidt.com">
  25. Peter Waldschmidt</A> or try the <A href="http://ncover.org/">NCover Forums</A>.</P>
  26. <P class="question">1. What is code coverage analysis?</P>
  27. <P class="answer">A code coverage analyzer monitors your code at runtime and
  28. records information about which lines of code were executed. NCover shows each
  29. sequence point in your application along with the number of times that point
  30. was executed. Sequence points are generated by the compiler and stored in the
  31. debug information (.pdb) files. A sequence point basically corresponds to a
  32. single program statement (often a line of code) in your high-level language.</P>
  33. <P class="question">2. Why would I want to do code coverage analysis?</P>
  34. <P class="answer">Unit test suites are often used as a quality tool during the
  35. development process to keep the codebase stable as it changes and expands.
  36. Tools such as <A href="http://nunit.org/">NUnit</A> are often used to run and
  37. report on the test suites. However, when implementing unit testing in your
  38. build process, you have no way of knowing how much of your code the unit tests
  39. are actually testing. This is where code coverage comes in. You can run NUnit
  40. within NCover and use the code coverage report to determine which code was not
  41. tested by that particular test suite.</P>
  42. <P class="question">3. What versions of the CLR does NCover support?</P>
  43. <P class="answer">
  44. NCover 1.5.x requires the .NET framework version 2.0.50727 to be installed; however,
  45. the application being profiled can be written against any shipping version of the
  46. framework. NCover
  47. has been tested profiling coverage of .NET 2.0, .NET 1.1 and .NET 1.0 applications.</P>
  48. <P class="question">4. Which version of NCover should I install?</p>
  49. <P class="answer">
  50. If you have the .NET 2.0 framework installed on your machine then you should use
  51. the latest NCover version available. NCover as of version 1.5 can profile .NET 2.0, 1.1 and 1.0 applications.</p>
  52. <p class="answer">
  53. For development teams who do not have the .NET framework 2.0 installed but do have
  54. the .NET framework version 1.1.4322, you can
  55. try NCover 1.3.3. Note however that this version is no longer supported as
  56. it has a number of known issues and limitations.</p>
  57. <P class="question">5. What is the command line syntax for NCover?</P>
  58. <P class="answer">Here is the usage info from the NCover command line (for NCover versions from 1.5.6
  59. only):</P>
  60. <pre class="usage">NCover.Console [&lt;command line&gt; [&lt;command args&gt;]]
  61. [//svc &lt;service name&gt;]
  62. [//iis]
  63. [//a &lt;assembly list&gt;]
  64. [//w &lt;working directory&gt;]
  65. [//ea &lt;exclusion list&gt;]
  66. [//reg]
  67. [//x &lt;xml output file&gt;]
  68. [//s [&lt;settings file&gt;]] [//r [&lt;settings file&gt;]]
  69. [//v] [//q]
  70. [//l &lt;log file&gt;]
  71. //svc For profiling windows services
  72. //iis For profiling web applications
  73. //a List of assemblies to profile separated by semi-colons i.e. "MyAssembly1;MyAssembly2". Do not include paths or suffixes.
  74. //w Working directory for profiled application
  75. //ea List of attributes marking classes or methods to exclude from coverage
  76. //reg Register profiler temporarily for user. (helps with xcopy deployment)
  77. //x Specify coverage output file. (default: coverage.xml).
  78. //pm Specify name of process to profile (i.e. myapp.exe)
  79. //s Save settings to a file (defaults: NCover.Settings)
  80. //r Use settings file, overriding other settings (default: NCover.Settings)
  81. //l Specify profiler log file (default: coverage.log).
  82. //q No logging (quiet)
  83. //v Enable verbose logging (show instrumented code)
  84. </pre>
  85. <UL>
  86. <LI>&lt;command line&gt; - This argument specifies the command-line of the .NET application
  87. you want to analyze.
  88. Any command line arguments not starting with // will be passed
  89. through to that application. NCover will profile the running application until it has exited. See below for examples.<li>//svc - This option is an alternative to the &lt;command line&gt;
  90. for profiling windows services, which cannot be run directly as executables. NCover
  91. will start the service (stopping it first if already running) and profile coverage
  92. until the windows service is stopped.</li>
  93. <li>//iis - This option is an alternative to the &lt;command line&gt; for profiling
  94. web applications. NCover will start the IISAdmin and W3C
  95. services (stopping first if currently running) and profile coverage until the IISAdmin
  96. service is stopped.<br />
  97. </li>
  98. <li>//a - This command-line argument specifies the assemblies that you want to analyze.
  99. NCover can only analyze assemblies that have .pdb files included with them. If
  100. you do not specify the //a argument, NCover will attempt to analyze every loaded
  101. assembly that has debug information available. Note that the assembly name arguments are
  102. the module name within the assembly, not the physical file name. e.g. "MyAssembly"
  103. rather than "MyAssembly.dll".<li>//w - If the application being profiled requires the
  104. working directory to be set to something other than the current directory you are
  105. executing the command line from then you can override it with this argument.</li>
  106. <li>//ea - You can choose to exclude classes and methods
  107. from coverage statistics by defining .NET attribute(s) and applying it to the affected
  108. code. When using this argument you must specify the full type namespace of these
  109. attribute(s) separated by semi-colons. See below for an example.<br />
  110. </li>
  111. <li>//reg - NCover requires a COM registration of the CoverLib.dll assembly containing
  112. the profiler, which is performed automatically by the default .msi installation.
  113. If you require an xcopy style deployment of NCover like many other .NET tools, then
  114. you can use this argument which will temporarily register the profiler while performing
  115. coverage. This feature was added in NCover 1.5.6.</li>
  116. <li>//x - The output of NCover is an xml file (example below). Use this argument to
  117. specify an alternate filename to "coverage.xml" in the current directory.<br />
  118. </li>
  119. <li>//pm - This setting tells NCover to ignore processes that don't have the specified process module name.
  120. This is the name of the executable (i.e. myapp.exe). This setting is useful in cases, where your NCover
  121. command spawns a series of child processes. Using this setting will help NCover determine which process to profile.
  122. </li>
  123. <li>//s - You may find it more convenient to use a settings file rather than specifying
  124. a long list of command line arguments for running NCover. If you get the NCover
  125. command line working as you would like it and then use the //s argument it will
  126. save the required arguments as an xml file that can then be used by the //r argument
  127. below.</li>
  128. <li>//r - For use when you have used //s to construct an NCover settings file containing
  129. your command line arguments. e.g. "ncover.console.exe //r NCover.Settings"<br />
  130. </li>
  131. <li>//l - The coverage log file can provide an insight if the desired coverage output
  132. is not obtained. Useful information you may find to assist you includes which assemblies
  133. were loaded by NCover, their file paths and which of those it found the .pdb build
  134. symbols for. Use this argument to specify an alternative log file name or location
  135. to coverage.log in the current directory.</li>
  136. <li>//q - Suppresses writing the coverage.log file.</li>
  137. <li>//v - This command-line argument makes the profiler emit all the original IL and
  138. modified IL instructions to the coverage log. This is useful for debugging
  139. purposes. Beware that this can make your coverage log file very large!
  140. </li>
  141. </UL>
  142. <P class="question">6. Does NCover required a special compilation step for my code?</P>
  143. <P class="answer">No. Some code coverage tools change your source code and force
  144. you to recompile it into a special build.&nbsp; NCover is designed to&nbsp;work
  145. on shipping code.&nbsp; NCover uses the .NET Framework profiling API to monitor
  146. your code. It does require build symbols, but can be run on release code
  147. without any modifications.</P>
  148. <P class="question">7. How does NCover work?</P>
  149. <P class="answer">NCover uses the .NET Framework profiler API to monitor an
  150. application's execution. When a method is loaded by the CLR, NCover retrieves
  151. the IL and replaces it with instrumented IL code.&nbsp; NCover does not change
  152. your original IL code, it simply inserts new code to update&nbsp;a visit
  153. counter at each sequence point.&nbsp; Upon
  154. request, (usually after the .NET process has shut down) the profiler outputs statistics
  155. to the coverage file.
  156. </P>
  157. <P class="question">
  158. 8. What is the output of NCover?</P>
  159. <P class="answer">NCover generally writes out three files after analysis
  160. completes.
  161. <ul>
  162. <li>
  163. Coverage.log - This file is a log of the events and messages from the profiler
  164. during the analysis process. Most of the time, error messages are recorded in
  165. this log. If you enable verbose logging, the coverage log will contain
  166. disassembly of the original and instrumented IL code.&nbsp; Verbose logging is not recommended for
  167. normal use.<li>
  168. Coverage.xml - This file is the analysis output of NCover. You can see an
  169. example of the output below.
  170. <LI>
  171. Coverage.xsl - This file is a simple XML transformation that makes the XML
  172. output easily readable.
  173. </LI>
  174. </ul>
  175. <span class="subtitle">Example XML output</span>
  176. <div class="box"><pre>&lt;method class="NCoverTest.ClassLoaded" name="HasDeadCode"&gt;
  177. &lt;seqpnt document="C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs"
  178. column="13" line="48" endcolumn="58" endline="48" visitcount="1" /&gt;
  179. &lt;seqpnt document="C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs"
  180. column="13" line="49" endcolumn="22" endline="49" visitcount="1" /&gt;
  181. &lt;seqpnt document="C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs"
  182. column="17" line="50" endcolumn="24" endline="50" visitcount="1" /&gt;
  183. &lt;seqpnt document="C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs"
  184. column="13" line="51" endcolumn="48" endline="51" visitcount="0" /&gt;
  185. &lt;seqpnt document="C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs"
  186. column="9" line="52" endcolumn="10" endline="52" visitcount="0" /&gt;
  187. &lt;/method&gt;</pre>
  188. </div>
  189. <p></p>
  190. <span class="subtitle">Example transformed output</span>
  191. <div class="box">
  192. <DIV class="method">NCoverTest.ClassLoaded.HasDeadCode</DIV>
  193. <TABLE id="Table1" borderColor="black" cellSpacing="0" cellPadding="3" border="1">
  194. <TBODY>
  195. <TR>
  196. <TD class="hdrcell">Visit Count</TD>
  197. <TD class="hdrcell">Line</TD>
  198. <TD class="hdrcell">Column</TD>
  199. <TD class="hdrcell">End Line</TD>
  200. <TD class="hdrcell">End Column</TD>
  201. <TD class="hdrcell">Document</TD>
  202. </TR>
  203. <TR>
  204. <TD class="datacell">1</TD>
  205. <TD class="datacell">48</TD>
  206. <TD class="datacell">13</TD>
  207. <TD class="datacell">48</TD>
  208. <TD class="datacell">58</TD>
  209. <TD class="datacell">C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs</TD>
  210. </TR>
  211. <TR>
  212. <TD class="datacell">1</TD>
  213. <TD class="datacell">49</TD>
  214. <TD class="datacell">13</TD>
  215. <TD class="datacell">49</TD>
  216. <TD class="datacell">22</TD>
  217. <TD class="datacell">C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs</TD>
  218. </TR>
  219. <TR>
  220. <TD class="datacell">1</TD>
  221. <TD class="datacell">50</TD>
  222. <TD class="datacell">17</TD>
  223. <TD class="datacell">50</TD>
  224. <TD class="datacell">24</TD>
  225. <TD class="datacell">C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs</TD>
  226. </TR>
  227. <TR>
  228. <TD class="hldatacell">0</TD>
  229. <TD class="datacell">51</TD>
  230. <TD class="datacell">13</TD>
  231. <TD class="datacell">51</TD>
  232. <TD class="datacell">48</TD>
  233. <TD class="datacell">C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs</TD>
  234. </TR>
  235. <TR>
  236. <TD class="hldatacell">0</TD>
  237. <TD class="datacell">52</TD>
  238. <TD class="datacell">9</TD>
  239. <TD class="datacell">52</TD>
  240. <TD class="datacell">10</TD>
  241. <TD class="datacell">C:\Dev\Utilities\ncover\NCoverTest\NCoverTest.cs</TD>
  242. </TR>
  243. </TBODY>
  244. </TABLE>
  245. </div>
  246. <P>Suggested usages of the coverage.xml output are to display it in the <a href="http://ncoverexplorer.org/">
  247. NCoverExplorer</a> gui with the source
  248. code highlighted, to generate html reports, or to include it in your continuous build server reports such as CruiseControl.Net.
  249. For more information on these options see below in the FAQ.</P>
  250. <P></P>
  251. <P class="question">
  252. 9. How do I use coverage exclusions?</P>
  253. <p>
  254. First you should define an attribute to markup your excluded code with. You will
  255. likely want to put this in a common assembly to make it reusable, or indeed within
  256. a "CommonAssemblyInfo.cs" that you include in all your application assemblies.</p>
  257. <P></P>
  258. <pre class="usage">namespace MyNamespace {
  259. class CoverageExcludeAttribute : System.Attribute { }
  260. }</pre>
  261. <p>
  262. Apply the attribute to the C# classes and/or methods you wish to mark as excluded
  263. from code coverage statistics:</p>
  264. <P></P>
  265. <pre class="usage"> [CoverageExclude]
  266. private void SomeMethodToExclude() {} </pre>
  267. <p>
  268. Finally, ensure you pass the full qualified attribute information in the NCover command line:</p>
  269. <P></P>
  270. <pre class="usage"> NCover.Console MyApplication.exe //ea MyNamespace.CoverageExcludeAttribute </pre>
  271. <p>
  272. Note that if you are using the <a href="http://testdriven.net/">TestDriven.Net</a>
  273. VS.Net add-in to "Test with Coverage" it will automatically
  274. pass through "//ea CoverageExcludeAttribute"
  275. which you should define without a namespace like above. For further information refer to this
  276. <a href="http://weblogs.asp.net/nunitaddin/archive/2006/10/04/CoverageExclude.aspx">
  277. blog entry</a>.</p>
  278. <P class="question">
  279. 10. Examples</P>
  280. <p>
  281. Coverage while running a simple executable until it exits:</p>
  282. <P></P>
  283. <pre class="usage"> NCover.Console MyApplication.exe</pre>
  284. <p>
  285. Coverage while running all the unit tests in an assembly using NUnit, profiling
  286. all loaded assemblies with .pdb build symbols:</p>
  287. <P></P>
  288. <pre class="usage"> NCover.Console nunit-console.exe MyApplication.Tests.dll</pre>
  289. <p>
  290. Coverage of only a subset of loaded assemblies while running unit tests:</p>
  291. <P></P>
  292. <pre class="usage"> NCover.Console nunit-console.exe MyApplication.Tests.dll //a MyApplication.Core;MyApplication.Utilities</pre>
  293. <p>
  294. Coverage of a windows service. Stop the service to generate the coverage output:</p>
  295. <P></P>
  296. <pre class="usage"> NCover.Console //svc MyServiceName</pre>
  297. <p>
  298. Coverage of an ASP.Net application. Stop the IIS service to generate the coverage
  299. output:</p>
  300. <P></P>
  301. <pre class="usage"> NCover.Console //iis</pre>
  302. <P class="question">
  303. 11. Where can I get help or support?</P>
  304. <P class="answer">
  305. Your best approach is to browse the <a href="http://ncover.org/site/forums/default.aspx">
  306. NCover forums</a> as well as the <a href="http://ncover.org/SITE/blogs/default.aspx">
  307. blog</a> by the author Peter Waldschmidt. If you cannot find a similar issue
  308. mentioned feel free to post your query and perhaps someone can help.</P>
  309. <P class="question">
  310. 12. How do I "xcopy deploy" NCover like my other build tools?</P>
  311. <P class="answer">
  312. Many developers prefer to have their build tools such as NUnit, NAnt etc stored
  313. in source control in a Tools folder along with the source code. This ensures that
  314. a new developer can obtain and build the application without having to install additional
  315. tools on their own machines.</P>
  316. <p>
  317. NCover can also be deployed in this fashion. However the one gotcha with NCover
  318. versus other tools is that the profiler within CoverLib.dll must be COM registered
  319. on the local machine before you execute it. Prior to NCover 1.5.6 this was usually
  320. achieved as part of your build script, which would call regsvr32 with the path to
  321. the CoverLib.dll in your Tools folder. Alternatively the &lt;ncover&gt; NAnt and
  322. MSBuild tasks described below will do this for you. As of NCover 1.5.6 you can also
  323. use the //reg option in the command line arguments which will temporarily register
  324. the profiler. Note that the //reg option will not work for IIS or Windows Service
  325. profiling unless you are running NCover under the same Windows login account as
  326. the IIS worker process, or your Windows Service.</p>
  327. <P class="question">
  328. 13. How do I see my source code highlighted with the coverage results?</P>
  329. <P class="answer">
  330. <a href="http://ncoverexplorer.org/">NCoverExplorer</a> is a gui and console-based
  331. .NET application developed by <a href="http://www.kiwidude.com/blog/">Grant Drake</a>. NCoverExplorer
  332. parses the coverage.xml files output from NCover and displays the results integrated
  333. with your source code. It also includes a number of additional features to merge,
  334. filter, sort and generate html reports. The console version is
  335. designed to be used as part of an automated build process. The support forums for
  336. NCoverExplorer are located with the NCover ones at <a href="http://ncover.org">http://ncover.org/</a>.<strong>&nbsp;</strong></P>
  337. <P class="question">
  338. 14. How do I run NCover from within the Visual Studio.Net IDE?</P>
  339. <P class="answer">
  340. The <a href="http://testdriven.net/">TestDriven.Net</a> add-in by <a href="http://weblogs.asp.net/nunitaddin/">
  341. Jamie Cansdale</a> offers a right-click capability within the IDE to execute
  342. your unit tests with code coverage. The results of the NCover code coverage are
  343. displayed with the bundled NCoverExplorer gui for analysis and reporting.</P>
  344. <P class="question">
  345. 15. How do I run NCover from a NAnt or MSBuild task?</P>
  346. <P class="answer">
  347. You can use an &lt;exec&gt; task with <a href="http://nant.sourceforge.net/">NAnt</a>
  348. or an &lt;Exec&gt; task with MSBuild. Alternatively you may want to use the custom
  349. &lt;ncover&gt; task for NAnt or &lt;NCover&gt; task for MSBuild developed by Grant
  350. Drake for a more developer friendly syntax. The source code, compiled assemblies
  351. and documentation are located in the NCoverExplorer.Extras.zip available from <a
  352. href="http://ncoverexplorer.org/">http://ncoverexplorer.org/</a>.</P>
  353. <P class="question">
  354. 16. How do I include NCover output in my CruiseControl.Net build reports?</P>
  355. <P class="answer">
  356. <a href="http://ccnet.thoughtworks.com/">CruiseControl.Net</a> is a continuous integration
  357. build server which offers web-based reporting of the outputs of a build such as
  358. unit test results and code coverage reporting. The default CruiseControl.Net installation
  359. includes a basic stylesheet which works in combination with the standard coverage.xml
  360. formatted output. So all you need to do is include the execution of NCover as part
  361. of your build, then add a CruiseControl.Net merge file publisher task to integrate
  362. the coverage.xml results into the build output.</P>
  363. <p class="answer">
  364. An improvement on the above to display more attractive and powerful reports as well
  365. as minimize the build log size is to use NCoverExplorer. The NCoverExplorer.Console.exe
  366. is designed to produce a more concise xml report summary that is combined with an
  367. alternate xsl stylesheet for CruiseControl.Net. You can find more information and
  368. screenshots in this <a href="http://www.kiwidude.com/blog/2006/04/ncoverexplorer-v133.html">
  369. blog entry</a> - all the necessary tasks, examples and documentation are located
  370. within NCoverExplorer.Extras.zip available from <a href="http://ncoverexplorer.org/">
  371. http://ncoverexplorer.org/</a>.&nbsp;</p>
  372. <P class="question">
  373. 17. How do I merge multiple NCover coverage.xml results?</P>
  374. <P class="answer">
  375. You can can use NCoverExplorer to merge the results of multiple coverage runs. For
  376. more information refer to this <a href="http://www.kiwidude.com/blog/2006/10/ncoverexplorer-merging-ncover-reports.html">
  377. blog entry</a>.</P>
  378. <P class="question">
  379. 18. Troubleshooting: Why is my coverage.xml file empty?</P>
  380. <ul>
  381. <li>If using the command-line, did you COM register CoverLib.dll (or use the //reg option
  382. from NCover 1.5.6)?</li>
  383. <li>Did you generate build symbol files (.pdbs) for the profiled application?</li>
  384. <li>If using the //a option, did you correctly list just the assembly names without
  385. paths or .dll suffixes?</li>
  386. </ul>
  387. <P class="question">
  388. 19. Troubleshooting: I have coverage.xml output but my XYZ assembly is not included in it?</P>
  389. <ul>
  390. <li>NCover will only profile loaded assemblies - did your code execution path while
  391. under coverage force that assembly to be loaded (e.g. by loading a type or calling
  392. a method in that assembly)?&nbsp;</li>
  393. <li>Did you generate build symbol files (.pdb files) for the missing assembly? </li>
  394. <li>If using the //a option, did you correctly list the assembly names including the
  395. one that is missing?</li>
  396. <li>Can you see information about the assembly being loaded within the coverage.log?
  397. Is the correct assembly being loaded (check the path) - if you have a version in
  398. the GAC it may possibly prevent the .pdb file from being loaded.</li><li>If using the NCoverExplorer gui, have you got a coverage exclusion defined which
  399. is hiding it from the display?</li>
  400. </ul>
  401. <P class="question">
  402. 20. Troubleshooting: After running NCover my coverage.log says "Failed to load symbols for module XYZ"?</P>
  403. <ul>
  404. <li>This message means that no .pdb build symbol file was found for that assembly so
  405. it cannot be profiled for code coverage. If that assembly is part of the .NET framework
  406. for instance like System.Data.dll, then this is an expected message and should not
  407. cause concern.&nbsp;</li><li>If however the assembly belongs to your application, did you generate the
  408. build symbol files (.pdb files) for it? </li>
  409. </ul>
  410. <P class="question">
  411. 21. Troubleshooting: I get a "Profiled process terminated. Profiler connection not
  412. established" message?</P>
  413. <ul>
  414. <li>If using the command-line, did you COM register CoverLib.dll (or use the //reg option
  415. from NCover 1.5.6)?</li><li>Are you running Windows XP 64-bit? You may want to take a look at
  416. <a href="http://ncover.org/SITE/forums/thread/43.aspx">this thread</a></li></ul>
  417. <P class="question">
  418. 22. Troubleshooting: My coverage exclusions are not working?</P>
  419. <ul>
  420. <li>Have you put the full namespace type name to the exclusion including the Attribute suffix in the //ea argument? See the "How
  421. do I use coverage exclusions?" question above.</li></ul>
  422. &nbsp;
  423. </body>
  424. </html>