Ambiguous Call on Microsoft WPF Authorization Example
<p>I'm trying to learn about Form Authorization in desktop applications, and I'm following the example that Microsoft reblogged from here: <a href="http://blog.magnusmontin.net/2013/03/24/custom-authorization-in-wpf/" rel="nofollow">http://blog.magnusmontin.net/2013/03/24/custom-authorization-in-wpf/</a>.  An error "The call is ambiguous between the following methods or properties: 'SecretWindow.SecretWindow()' and 'SecretWindow.SecretWindow()'" generates, though, at lines 316 and 318:</p>

<pre><code>if (parameter == null)
    view = new SecretWindow();//Error here
else
    view = new AdminWindow();//Error here
</code></pre>

<p>And errors "Type ['SecretWindow' or 'AdminWindow'] already defines a member called '.ctor' with the same parameter types on these lines 431 and 457:</p>

<pre><code>public SecretWindow()//Error here
{
    InitializeComponent();
}
</code></pre>

<p>and</p>

<pre><code>public AdminWindow()//Error here
{
    InitializeComponent();
}
</code></pre>

<p>To me, it looks like the ambiguous calls should just be instantiating classes SecretWindow or AdminWindow, and I can't find where the methods would already be defined in the second error.  Can anyone see what's going on?  Thanks in advance!</p>

<p><strong>EDIT:</strong></p>

<p>I deleted the first project and retried the tutorial, now it works.</p>