Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unfortunately, your code examples don't show where and how that failing constructor is called, ie. where an object of type <code>AppActiveDirectoryDomain</code> is instantiated. (Not that it should matter, given the last code example you provided.)</p> <p>That being said, I've come across similar unlogical issues in Visual Studio before, once when playing around with Code Contracts (which re-writes the CIL instructions emitted from the compiler) and another time for a random reason. I never found the true problem, I remember changing some code in an altogether different place and suddenly, the issue was resolved.</p> <p>I suspect that sometimes, the debugger somehow gets out of sync with the actual program's state.</p> <p><strong>Some questions:</strong></p> <ul> <li><p>Do you use any tools that re-write the CIL (=MSIL) code after the compiler has run? (such as e.g. Code Contracts or PostSharp)</p></li> <li><p>Could it be that your debugger symbol files or the program database is out-of-sync with the compiled code? Did you perform a project clean-up?</p></li> </ul> <p><strong>You could try this next:</strong></p> <ul> <li><p>Does the statement <code>if ("AOD".Length == 0) throw new ArgumentNullException(...);</code> only throw inside that particular constructor? Or does the issue persist if you move that statement to the caller function? Does it still persist if you move it e.g. to the <code>Main()</code> method?</p></li> <li><p>Try your code with a <a href="https://stackoverflow.com/questions/655559/msil-debuggers-mdbg-dbgclr-cordbg">different debugger</a> (<em>links to another question on StackOverflow about MSIL debuggers</em>), if you have one available.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload