"Assembly '...' Was Not Found" When including a reference to a local namespace<p align=left>I've got a WPF application with a window and a usercontrol:</p> <p align=left> </p> <p align=left>Window:</p> <p align=left> </p><font color="#0000ff" size=2> <p>&lt;</font><font color="#a31515" size=2>Window</font><font color="#ff0000" size=2> x</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>Class</font><font color="#0000ff" size=2>=&quot;UI.Windows.Main&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>x</font><font color="#0000ff" size=2>=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>local</font><font color="#0000ff" size=2>=&quot;clr-namespace:UI.Windows.Documents&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>Title</font><font color="#0000ff" size=2>=&quot;Window1&quot;</font><font color="#ff0000" size=2> Height</font><font color="#0000ff" size=2>=&quot;600&quot;</font><font color="#ff0000" size=2> Width</font><font color="#0000ff" size=2>=&quot;800&quot;&gt;</p></font><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;</font><font color="#a31515" size=2>DockPanel</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;!-- Snip --&gt;</p><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;/</font><font color="#a31515" size=2>DockPanel</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;/</font><font color="#a31515" size=2>Window</font><font color="#0000ff" size=2>&gt;</p> <p> </p> <p align=left> </p> <p align=left>UserControl:</p> <p align=left> </p><font color="#0000ff" size=2> <p>&lt;</font><font color="#a31515" size=2>UserControl</font><font color="#ff0000" size=2> x</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>Class</font><font color="#0000ff" size=2>=&quot;UI.Windows.Documents.MyDisplay&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>x</font><font color="#0000ff" size=2>=<a title="http://schemas.microsoft.com/winfx/2006/xaml" href="http://schemas.microsoft.com/winfx/2006/xaml">http://schemas.microsoft.com/winfx/2006/xaml</a></font><font color="#0000ff" size=2>&gt;</p></font><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;!-- Snip --&gt;</p><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;/</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;/</font><font color="#a31515" size=2>UserControl</font><font color="#0000ff" size=2>&gt;</p> <p> </p> <p align=left> </p> <p align=left> </p> <p align=left>Now, when I try to look at this in the designer i get an error saying Assembly 'UI' was not found.  I've searched high and low, but the internet is full of references to this being a 2005 issue and the solution is to upgrade to 2008.  I'm already using 2008 (don't even have 2005 installed on the machine), and I still get the problem.</font></font></font></font></p>© 2009 Microsoft Corporation. All rights reserved.Mon, 07 Sep 2009 14:59:05 Z0a244e58-dc0a-4f13-80ce-438f1e135320http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#0a244e58-dc0a-4f13-80ce-438f1e135320http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#0a244e58-dc0a-4f13-80ce-438f1e135320Paul Hounshellhttp://social.msdn.microsoft.com/Profile/en-US/?user=Paul%20Hounshell"Assembly '...' Was Not Found" When including a reference to a local namespace<p align=left>I've got a WPF application with a window and a usercontrol:</p> <p align=left> </p> <p align=left>Window:</p> <p align=left> </p><font color="#0000ff" size=2> <p>&lt;</font><font color="#a31515" size=2>Window</font><font color="#ff0000" size=2> x</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>Class</font><font color="#0000ff" size=2>=&quot;UI.Windows.Main&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>x</font><font color="#0000ff" size=2>=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>local</font><font color="#0000ff" size=2>=&quot;clr-namespace:UI.Windows.Documents&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>Title</font><font color="#0000ff" size=2>=&quot;Window1&quot;</font><font color="#ff0000" size=2> Height</font><font color="#0000ff" size=2>=&quot;600&quot;</font><font color="#ff0000" size=2> Width</font><font color="#0000ff" size=2>=&quot;800&quot;&gt;</p></font><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;</font><font color="#a31515" size=2>DockPanel</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;!-- Snip --&gt;</p><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;/</font><font color="#a31515" size=2>DockPanel</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;/</font><font color="#a31515" size=2>Window</font><font color="#0000ff" size=2>&gt;</p> <p> </p> <p align=left> </p> <p align=left>UserControl:</p> <p align=left> </p><font color="#0000ff" size=2> <p>&lt;</font><font color="#a31515" size=2>UserControl</font><font color="#ff0000" size=2> x</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>Class</font><font color="#0000ff" size=2>=&quot;UI.Windows.Documents.MyDisplay&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</p></font><font size=2> <p></font><font color="#ff0000" size=2>xmlns</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>x</font><font color="#0000ff" size=2>=<a title="http://schemas.microsoft.com/winfx/2006/xaml" href="http://schemas.microsoft.com/winfx/2006/xaml">http://schemas.microsoft.com/winfx/2006/xaml</a></font><font color="#0000ff" size=2>&gt;</p></font><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;!-- Snip --&gt;</p><font color="#a31515" size=2> <p></font><font color="#0000ff" size=2>&lt;/</font><font color="#a31515" size=2>Grid</font><font color="#0000ff" size=2>&gt;</p> <p>&lt;/</font><font color="#a31515" size=2>UserControl</font><font color="#0000ff" size=2>&gt;</p> <p> </p> <p align=left> </p> <p align=left> </p> <p align=left>Now, when I try to look at this in the designer i get an error saying Assembly 'UI' was not found.  I've searched high and low, but the internet is full of references to this being a 2005 issue and the solution is to upgrade to 2008.  I'm already using 2008 (don't even have 2005 installed on the machine), and I still get the problem.</font></font></font></font></p>Thu, 08 May 2008 05:45:59 Z2008-05-19T23:13:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#aeb17f31-a5fe-4c3c-8c6b-822292cf8a4ahttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#aeb17f31-a5fe-4c3c-8c6b-822292cf8a4aAlagurajaPandianhttp://social.msdn.microsoft.com/Profile/en-US/?user=AlagurajaPandian"Assembly '...' Was Not Found" When including a reference to a local namespace<font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2></font> </p> <p align=left><font color="#ff0000" size=2><font color="#0000ff"> In the Window xaml can you please try this...</font></font></p> <p align=left><font color="#ff0000" size=2><font color="#0000ff"></font> </p><font color="#ff0000" size=2> <p align=left><font color="#ff0000" size=2>xmlns:local</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>clr-namespace:UI.Windows.Documents;assembly=UI.Windows.Documents</font><font size=2>&quot;</p></font></font></font> <p align=left><font face=Arial size=2></font> </p>should work..Thu, 08 May 2008 09:19:34 Z2008-05-08T09:19:34Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#e06138eb-570c-4c3c-8ded-b9fbb92bc465http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#e06138eb-570c-4c3c-8ded-b9fbb92bc465Paul Hounshellhttp://social.msdn.microsoft.com/Profile/en-US/?user=Paul%20Hounshell"Assembly '...' Was Not Found" When including a reference to a local namespace<p align=left>My project's namespace is actually &quot;UI.Windows&quot;, but I tried all of the below lines and all gave me the same error (except for the name of the assembly it couldn't find)</p> <p align=left> </p> <p align=left>xmlns:local<font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>clr-namespace:UI.Windows.Documents;assembly=UI.Windows.Documents</font><font size=2>&quot;</font></p> <p align=left>xmlns:local<font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>clr-namespace:UI.Windows.Documents;assembly=UI.Windows</font><font size=2>&quot;</font></p> <p align=left>xmlns:local<font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>clr-namespace:UI.Windows.Documents;assembly=UI</font><font size=2>&quot;</font></p>xmlns:local<font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>clr-namespace:UI.Windows.Documents;assembly=</font><font size=2>&quot;</font>Thu, 08 May 2008 11:30:39 Z2008-05-08T11:30:39Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#124ac6dc-9ba4-4fa7-a33e-f062bb7ec993http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#124ac6dc-9ba4-4fa7-a33e-f062bb7ec993Tim Dawsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tim%20Dawson"Assembly '...' Was Not Found" When including a reference to a local namespace<p>I have a feeling the Cider designer doesn't actually support this scenario, i.e. a UserControl in the same assembly as what you're designing.</p>Thu, 08 May 2008 11:44:31 Z2008-05-08T11:44:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#c9c5977e-073f-4d92-9488-12104ef8f449http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#c9c5977e-073f-4d92-9488-12104ef8f449Paul Hounshellhttp://social.msdn.microsoft.com/Profile/en-US/?user=Paul%20Hounshell"Assembly '...' Was Not Found" When including a reference to a local namespace<p align=left><font face=Arial size=2>That would seem really odd on 2 counts:</font></p> <p align=left> </p> <p align=left>1.) Wouldn't this be the first thing someone would try when trying UserControls for the first time?  It would also seem like an arbitrarily unneccessary requirement that UserControls be in a separate assembly.</p> <p align=left> </p> <p align=left>2.) In several places in the documentation, Microsoft says that if the namespace you're looking for is in the current assembly, you can omit the assembly part of that uri, or include it but leave the assembly blank.  Either refers to the current assembly.</p> <p align=left> </p> <p align=left>From MSDN:</p> <p align=left> </p> <h3 class=subHeading>Mapping to Current Assemblies</h3> <div class=subsection> <p><span class=keyword><strong>assembly</strong></span> can be omitted if the <span class=keyword><strong>clr-namespace</strong></span> referenced is being defined within the same assembly as the application code that is referencing the custom classes. Or, an equivalent syntax for this case is to specify <span class=keyword><strong>assembly=</strong></span>, with no string token following the equals sign.</p></div> <p align=left> </p> <p align=left><a title="http://msdn.microsoft.com/en-us/library/ms747086.aspx" href="http://msdn.microsoft.com/en-us/library/ms747086.aspx">http://msdn.microsoft.com/en-us/library/ms747086.aspx</a></p>Thu, 08 May 2008 11:58:01 Z2008-05-08T11:58:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#6791d45a-97ae-4d75-8e02-3fd7e0032f47http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#6791d45a-97ae-4d75-8e02-3fd7e0032f47Marco Zhouhttp://social.msdn.microsoft.com/Profile/en-US/?user=Marco%20Zhou"Assembly '...' Was Not Found" When including a reference to a local namespace<font size=2><span style="font-family:Verdana">I moved this thread from WPF forum to Cider forum for better answers.</span><br style="font-family:Verdana"><br style="font-family:Verdana"><span style="font-family:Verdana">Thanks</span><br style="font-family:Verdana"></font>Mon, 12 May 2008 02:30:01 Z2008-05-12T02:30:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1ea723ef-5744-49ac-885c-8b7ceb90faf0http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1ea723ef-5744-49ac-885c-8b7ceb90faf0Atul Guptahttp://social.msdn.microsoft.com/Profile/en-US/?user=Atul%20Gupta"Assembly '...' Was Not Found" When including a reference to a local namespace<div class=quote> <table width="85%"> <tbody> <tr> <td class=txt4> <strong>Tim Dawson wrote:</strong></td></tr> <tr> <td class=quoteTable> <table width="100%"> <tbody> <tr> <td class=txt4 valign=top width="100%"> <p>I have a feeling the Cider designer doesn't actually support this scenario, i.e. a UserControl in the same assembly as what you're designing.</p> <p></p></td></tr></tbody></table></td></tr></tbody></table></div> <p></p> <p align=left> </p> <p align=left>What you say Tim was more for VS 2005. In VS 2008, this works prefectly fine and i have been using UserControl's from same assembly in the XAML without any issues. </p> <p align=left> </p> <p align=left>Assuming I have an application with namespace as TestWPFApp and a Main window XAML and a UserControl in that, I include the following in my main window XAML</p> <p align=left> </p> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode"> <p style="margin:0px"><span style="color:red">xmlns</span><span style="color:blue">:</span><span style="color:red">local</span><span style="color:blue">=&quot;clr-namespace:TestWPFApp&quot;</span> </p></div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left> </div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left>and then i can reference the user control below as </div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left> </div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left> <p style="margin:0px"><span style="color:blue">&lt;</span><span style="color:#a31515">local</span><span style="color:blue">:</span><span style="color:#a31515">myUserControl</span><span style="color:blue"> /&gt;</span></p></div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left> </div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left>and this works perfectly fine. You may have to build the solution once to create the assembly. Till that time designer may give an error. </div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left> </div> <div style="font-size:8pt;background:white;color:black;font-family:Lucida Sans Unicode" align=left>In the fact the good part in VS 2008 is that when you type in <span style="color:red">xmlns</span><span style="color:blue">:</span><span style="color:red">local</span><span style="color:blue">= <font color="#000000">the intellisense pops up and provides a list of valid inclusions and the one i added, was listed as an option, so i don't even have to figure the right one out and type it. </font></span></div>Mon, 12 May 2008 03:23:25 Z2008-05-19T23:13:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#2ccb4da1-138a-4cb6-8acb-a153cf01d6bfhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#2ccb4da1-138a-4cb6-8acb-a153cf01d6bfJohn Taylorhttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20Taylor"Assembly '...' Was Not Found" When including a reference to a local namespace I disagree that this now works in vs2008 sp1.<br><br>I've got an assembly that contains a usercontrol [ucCustomers] that contains a child userControl [ucToolTip].<br><br>The main usercontrol does not render the local clr-namespace in Cider saying that the child usercontrol was not found.<br>Here's the namespace bits:<br><br><font color="#0000ff" size=2><font color="#0000ff" size=2> <p>&lt;</font></font><font color="#a31515" size=2><font color="#a31515" size=2>UserControl</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2> x</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>:</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>Class</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>=&quot;CustomerMangementTool.ucCustomers&quot;</font></font><font size=2> <br></font><font color="#ff0000" size=2><font color="#ff0000" size=2>x</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>:</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>Name</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>=&quot;userControl&quot;</font></font><font size=2> <br></font><font color="#ff0000" size=2><font color="#ff0000" size=2>xmlns</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>=<a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation">http://schemas.microsoft.com/winfx/2006/xaml/presentation</a><br></font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>xmlns</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>:</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>x</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>=<a href="http://schemas.microsoft.com/winfx/2006/xaml">http://schemas.microsoft.com/winfx/2006/xaml</a><br></font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>xmlns</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>:</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>local</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>=&quot;clr-namespace:CustomerMangementTool&quot;&gt;<br></font></font><font color="#0000ff" size=2><font color="#0000ff" size=2><br>when I add the following to the Xaml, the designer breaks:<br><font color="#0000ff" size=2><font color="#0000ff" size=2>&lt;</font></font><font color="#a31515" size=2><font color="#a31515" size=2>local</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>:</font></font><font color="#a31515" size=2><font color="#a31515" size=2>ucTooltip</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2> x</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>:</font></font><font color="#ff0000" size=2><font color="#ff0000" size=2>Name</font></font><font color="#0000ff" size=2><font color="#0000ff" size=2>=&quot;myTooltipInstance&quot; /&gt;<br><br>The error displayed is: Error 1 The type 'local:ucTooltip' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built...<br><br>NOTE: Blend renders fine, and the project compiles and runs no problem...this is a Cider design-time only issue<br><br>Any ideas...</p></font></font></font></font><hr size="1" align="left" width="25%">www.datadaysolutions.comFri, 05 Sep 2008 08:54:53 Z2008-09-05T08:54:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#68839cd3-7a7c-45e0-83f7-311b0b8bfbdchttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#68839cd3-7a7c-45e0-83f7-311b0b8bfbdcMarco Goertz - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Marco%20Goertz%20-%20MSFT"Assembly '...' Was Not Found" When including a reference to a local namespace Interesting, that is supposed to work. When you type &lt;local: does the IntelliSense dropdown include ucTooltip?<hr size="1" align="left" width="25%">Marco Goertz \ Sr. Dev Lead \ WPF Designer &quot;Cider&quot; \ MicrosoftWed, 10 Sep 2008 16:49:53 Z2008-09-10T16:49:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#f7ba0121-0549-40ce-9d87-5ddf6e52c112http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#f7ba0121-0549-40ce-9d87-5ddf6e52c112John Taylorhttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20Taylor"Assembly '...' Was Not Found" When including a reference to a local namespace Nope, no intellisense at all.<br>I've also tried &quot;Cleaning&quot; the solution and rebuilding.<br><br>to recap, this happens when I try to work in the designer view with a usercontrol that contains an instance of another usercontrol from the same assembly. <hr size="1" align="left" width="25%">www.datadaysolutions.comWed, 10 Sep 2008 19:19:45 Z2008-09-10T19:19:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#9c20cc40-3ffb-4f9d-86e5-7548f28070b9http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#9c20cc40-3ffb-4f9d-86e5-7548f28070b9Brian2p98http://social.msdn.microsoft.com/Profile/en-US/?user=Brian2p98"Assembly '...' Was Not Found" When including a reference to a local namespace I'm in the exact same boat.  I can't believe something as basic as this would be overlooked by MS.Wed, 10 Sep 2008 21:24:44 Z2008-09-10T21:24:44Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#6e3d6699-e225-46b9-a2a2-173d9553fa66http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#6e3d6699-e225-46b9-a2a2-173d9553fa66Marco Goertz - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Marco%20Goertz%20-%20MSFT"Assembly '...' Was Not Found" When including a reference to a local namespace Well, there is something else going on then. I just created a new WPF Application project with 2 UserControls in that same assembly and I was able to use UC2 inside of UC1 and UC1 inside of Window1 with no problems at all.<br><br>Could you try a brand-new project like that?<br><br>BTW, could you also try to invoke the IntelliSense drop-down manually by pressing Ctrl+J or Edit-&gt;IntelliSense-&gt;List Members?<br><br>Are you getting IntelliSense everywhere else in XAML?<hr size="1" align="left" width="25%">Marco Goertz \ Sr. Dev Lead \ WPF Designer &quot;Cider&quot; \ MicrosoftThu, 11 Sep 2008 19:05:16 Z2008-09-11T19:05:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#b3aaf2ea-bf30-4b49-bb86-9d61ad99bc0fhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#b3aaf2ea-bf30-4b49-bb86-9d61ad99bc0fBrian2p98http://social.msdn.microsoft.com/Profile/en-US/?user=Brian2p98"Assembly '...' Was Not Found" When including a reference to a local namespace The problem was in using an assembly that references another assembly.  I was able to get around this by adding a namespace attribute to the assembly, but I then had to delete the reference in the project using the assembly and re-add it for it to work.  I've noticed this kind of thing a lot--the need to delete stuff and re-add references when there is a problem.  The IDE does not like WPF.  Thu, 11 Sep 2008 19:08:46 Z2008-09-11T19:08:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#ad566fd8-39b9-4246-b427-b558441b735fhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#ad566fd8-39b9-4246-b427-b558441b735fsn75http://social.msdn.microsoft.com/Profile/en-US/?user=sn75"Assembly '...' Was Not Found" When including a reference to a local namespaceobviosuly I have now the same problem but in very unexpected circumstances. I have worked on a custom control at home and it all worked fine. Then I packed the whole project and moved it to another computer in the office and now designer fails! Nothing was changed in the project.<br><br>I have VS2008 Team Edition at home and Express in the office (yes, weird but that is the setup I need). Both SP1 and both run on WinXP.<br><br>So it seems to be related a PC-specific issue. Very unfortunate<br>Thu, 25 Sep 2008 08:19:47 Z2008-09-25T08:19:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1d36012c-18bd-44fe-b961-89eac570bfdchttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1d36012c-18bd-44fe-b961-89eac570bfdcLina Larssonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lina%20Larsson"Assembly '...' Was Not Found" When including a reference to a local namespaceWe have this problem too. We are 4 people working on the same project. The person who added the user control to the project has no problem but every one else (including me) gets the error: <font class=Apple-style-span style="font-style:italic">Assembly 'CompanyName.ProductName' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. </font>The text in the designer reads: <font class=Apple-style-span style="font-style:italic">Problem Loading The document contains errors that must be fixed before the designer can be loaded. Reload the designer after you have fixed the errors. </font><div><font class=Apple-style-span style="font-style:italic"><br></font></div><div>This happens in all our xaml-files that references an external assembly. Of course we all have the assembly and can reach it with no problem from the code behind file. We can all build an run the solution. </div><div><div><br></div><div>I'm using: </div><div><div>Microsoft Visual Studio 2008 Version 9.0.30729.1 SP </div><div>PresentationFramework.dll 3.0.6920.1453</div><div><br></div><div>We are in the startup of a big WPF project and we really need this to work. If VS2008 can't handle it, are there any other tools that we can use until it works in VS2008? I'm thinking of Blend or even better a free xaml-tool? </div><div><br></div><div><br></div><div>Regards</div><div><br></div><div>Lina Larsson</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><div><div><br></div><div><div><br></div></div></div></div></div></div>Thu, 02 Oct 2008 08:32:43 Z2008-10-02T08:33:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#58fbc430-d3c4-4bfb-9db6-beda28176368http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#58fbc430-d3c4-4bfb-9db6-beda28176368Eamon Nerbonnehttp://social.msdn.microsoft.com/Profile/en-US/?user=Eamon%20Nerbonne"Assembly '...' Was Not Found" When including a reference to a local namespaceIs it possible that this is a x64 issue?  I have a similar issue with a control, but if I set the compilation to x86 it works fine.  I need to support both x64 and x86 separately due to native dependencies, which is another frustrating story - I can't seem to teach VS.NET to use a different reference for x86 and x64.  Basically, the designer is a 32-bit process and can't load 64-bit controls, it seems.<br><hr size="1" align="left" width="25%">--EamonSat, 01 Nov 2008 12:24:31 Z2008-11-01T12:24:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1491b12c-5fad-4251-bde1-07203bf87168http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1491b12c-5fad-4251-bde1-07203bf87168¢нℓσєhttp://social.msdn.microsoft.com/Profile/en-US/?user=%u00a2%u043d%u2113%u03c3%u0454"Assembly '...' Was Not Found" When including a reference to a local namespaceAfter few days of trial and error, finally managed to display user control on main window. <br>If you were using StaticResource on styling certain controls, please use DynamicResource <br>I'm using VS.net 2008 in Vista<br><br><b>Step 1:<br></b>Initially, do as instructed by <b>Atul Gupta</b><span class=postedBy><br></span><span class=affiliation></span><br><b>Step 2:</b><br>Create a ResourceDictionary file at project location (eg. namely 'AppStyles.xmal'). Add in all your style settings.<br><br><b>Step 3:</b><br>At App.xmal, direct the setting to your ResourceDictionary file (eg. AppStyles.xmal)<br><br>&lt;Application x:Class=&quot;ProjectName.App&quot;<br>    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;<br>    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;<br>    StartupUri=&quot;Window1.xaml&quot;        <br>     &gt;<br>    &lt;Application.Resources&gt;<br>        &lt;!-- Merge the Resources &amp; Styles from AppStyles resource dictionaries to share throughout the application --&gt;<br>        &lt;ResourceDictionary&gt;<br>            &lt;ResourceDictionary.MergedDictionaries&gt;<br>                &lt;ResourceDictionary Source=&quot;Resources\AppStyles.xaml&quot;/&gt;<br>            &lt;/ResourceDictionary.MergedDictionaries&gt;<br>        &lt;/ResourceDictionary&gt;<br>    &lt;/Application.Resources&gt;<br>    <br>&lt;/Application&gt;<br><br><b>Step 4 :</b><br>Change / replace all StaticResource to DynamicResource at usercontrol window. Solution rebuild might be needed after that.<br><br><br>Special thanks to <b>Sacha Barbe</b>r's excellent demo code at codeproject.com<br>www.codeproject.com/KB/WCF/WCFWPFChat.aspx<br><br>Hope this will help.<br><br> Sat, 08 Nov 2008 11:05:38 Z2008-11-08T11:11:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#f11968df-e41c-4c82-82ed-55e5a536b1d7http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#f11968df-e41c-4c82-82ed-55e5a536b1d7dbollishhttp://social.msdn.microsoft.com/Profile/en-US/?user=dbollish"Assembly '...' Was Not Found" When including a reference to a local namespace I've encountered a similar issue. I have tracked it down to being a 64-bit issue with the designer. I had a WPF User control project that was being built to both x86 and x64 configurations. When built in X64, the XAML designer cannot find the reference to the control library. The only workaround I could find was to change the project configuration for the WPF User control project to Any CPU insteand of specific x86 or x64 configurations. Is this a known issue with the XAML designer and is it going to be fixed? I can forsee the case where I need to build targeted CPU versions instead of Any CPU so any insight would be appreciated.Wed, 12 Nov 2008 01:52:54 Z2008-11-12T01:52:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#87cac1d2-5851-49c7-8f8e-1bd2d2348e86http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#87cac1d2-5851-49c7-8f8e-1bd2d2348e86asdf989http://social.msdn.microsoft.com/Profile/en-US/?user=asdf989"Assembly '...' Was Not Found" When including a reference to a local namespaceI've got the same problem. BS!!!<p> </p><p>I started a new thread about it. </p><p> <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6379d330-f382-4b4d-a690-e89326ab4c72">http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6379d330-f382-4b4d-a690-e89326ab4c72</a></p> Sun, 25 Jan 2009 23:04:58 Z2009-01-25T23:04:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#bdf02d4b-63d7-44cf-af2c-cc648ca607e8http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#bdf02d4b-63d7-44cf-af2c-cc648ca607e8asdf989http://social.msdn.microsoft.com/Profile/en-US/?user=asdf989"Assembly '...' Was Not Found" When including a reference to a local namespaceBumping this thread bug until microsoft fixes it!!!<p>Its not x64  issue. Its not a 'put ;assembly= at the end of your clr-namespace' issue.<br></p><p> Here's 4 other threads talking about this.</p><p>  <br> http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6379d330-f382-4b4d-a690-e89326ab4c72<br> http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/174000a1-5166-49ea-92db-c02c0a8bcb13<br> http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320<br> http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fc02cd12-8e79-46e5-86d0-729fcd31bcac/</p> Mon, 26 Jan 2009 22:32:24 Z2009-01-26T22:32:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#f426ae06-feb8-4c1b-8df7-0deb2ae2a4b9http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#f426ae06-feb8-4c1b-8df7-0deb2ae2a4b9Mark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-Thomas"Assembly '...' Was Not Found" When including a reference to a local namespace<p> Hi asdf989</p> <p>I'm sorry that you're hitting this issue with the WPF designer in Visual Studio 2008 (&quot;Cider&quot;). I'm a Program Manager on the Cider team. I would like to work with you to reproduce the issue you're seeing and ensure it gets appropriate attention.</p> <p>It would really help to ensure we are looking at the same problem, if you could construct a simple project which reproduces the issue for you on your machine, then share that project with me by email at mwthomas at microsoft dot com. </p> <p>Thanks</p> <p>Mark Wilson-Thomas</p> <p> </p><hr class="sig">Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Mon, 26 Jan 2009 22:47:42 Z2009-01-26T22:47:42Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#e26c5fc9-38fc-4ad9-a81d-7fc7e13df954http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#e26c5fc9-38fc-4ad9-a81d-7fc7e13df954asdf989http://social.msdn.microsoft.com/Profile/en-US/?user=asdf989"Assembly '...' Was Not Found" When including a reference to a local namespace<p>Wow. Amazing. I'ver never had anyone EVER respond to a post about a bug who could actually do anything about it.</p><p>Cheers. I'll email you right away with a detailed description of the problem.</p><p> </p><p><b>The summary is:</b></p><p><b> </b></p><p>It must be something wrong with the overall VS 2008 IDE configuation because every demo /sample project I've downloaded is broken in the same way. Its not tied to User controls like I thought. Its a more general failure which may be a good thing oddly enough.<br></p><p><b>Broken for me.</b><br></p><p>Project 1)</p><p>http://download.microsoft.com/download/f/6/e/f6e32974-726e-4054-96af-9c747bf89a6e/DataBindingLab.exe</p><p>This is microsofts WPF example. Its broken in the same way.</p><p>Project  2)</p><p> http://blog.norberteder.com/dlcounter/Downloader.php?d=54</p><p>This is some dudes wpf binding example. Its broken in the same way.</p><p> </p><p><b>ScreenShots:</b></p><p>Project 1)</p><p> <a href="http://www.onyx-records.com/private/Boken BindingDemo.jpg">http://www.onyx-records.com/private/Boken%20databindinglab.jpg</a></p><p>Project 2)</p><p><a href="http://www.onyx-records.com/private/Boken BindingDemo.jpg">http://www.onyx-records.com/private/Boken%20BindingDemo.jpg</a></p><p> </p><p><b>Things I've tried:</b></p><p>1) Adding assembly to the end like.</p><p>xmlns:local=&quot;clr-namespace:BindingDemo;assembly=&quot;</p><p>xmlns:local=&quot;clr-namespace:BindingDemo;assembly=BindingDemo&quot;</p><p>2) Changing the project to x86</p><p>3) Rebuilding and closing reopening the xaml designer.</p><p>4) Turning off Resharper</p><p> </p><p> <b>What I'm using</b></p><p>1) VS 2008 SP1 9.0.30729.1 SP</p><p>2) .net framework 3.5 sp1</p><p> 3) windows xp pro</p><p>4)resharper (turned off but still installed) </p><p> </p><p> Thanks all I can think to write for now.<br></p><p><b><br></b></p><p> </p><p> </p><br>Tue, 27 Jan 2009 20:10:45 Z2009-01-27T20:10:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#8b2b33fd-17e6-4b27-b521-a5bcfe867adehttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#8b2b33fd-17e6-4b27-b521-a5bcfe867adeMark Wilson-Thomashttp://social.msdn.microsoft.com/Profile/en-US/?user=Mark%20Wilson-Thomas"Assembly '...' Was Not Found" When including a reference to a local namespace<p> Hi all</p> <p>working with asdf989, we discovered that the issue was that he had a # character in the path to his projects. Moving to a path without a # in it solved the problem. The designer has problems resolving paths with # in them (this is a known issue).</p> <p>I doubt that this is going to be the problem everyone is facing; please let me know if you are facing this problem and do not have a # in your project path; send me mail at mwthomas at microsoft dot com.</p> <p>Thanks</p> <p>Mark Wilson-Thomas</p> <p>Program Manager, WPF+Silverlight Designer, Visual Studio.</p><hr class="sig">Mark Wilson-Thomas - Program Team - WPF &amp; SL Designer for Visual Studio - posts are provided 'as-is'Thu, 29 Jan 2009 21:08:15 Z2009-01-29T21:08:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#c95e29bf-f4e2-42a0-bd01-d929d1ea3243http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#c95e29bf-f4e2-42a0-bd01-d929d1ea3243Eamon Nerbonnehttp://social.msdn.microsoft.com/Profile/en-US/?user=Eamon%20Nerbonne"Assembly '...' Was Not Found" When including a reference to a local namespaceDoes this error always occur with paths with # in them?  I tried including one at home, and it just worked fine...<hr class="sig">--EamonFri, 30 Jan 2009 11:12:42 Z2009-01-30T11:12:42Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#17abcfa5-7e21-46db-961f-b3b1e6a60a37http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#17abcfa5-7e21-46db-961f-b3b1e6a60a37John Sedlakhttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20Sedlak"Assembly '...' Was Not Found" When including a reference to a local namespace I am having a similar problem. I was working with the new WPF controls and was adding the Ribbon after getting the DataGrid to work. It is now saying that it cannot find the RibbonControlsLibrary assembly no matter what I do.<br><br>The weird thing about this is that it was working. It is as if I did something that fubar'd the project. My path does not have any odd characters in it either and the application actually runs fine, it is just the designer and intellisense that are broken. Here is the error.<br><br>Error 1 Assembly 'RibbonControlsLibrary' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. M:\Code\Applications\TaskDestroyer\trunk\MainWindow.xaml 6 13 TaskDestroyer<br><br>Edit: It seems restarting my system fixed the issue...<br> <hr class=sig> http://focusedgames.comMon, 02 Feb 2009 18:19:54 Z2009-02-02T18:39:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#7c36f61d-a96c-417c-8a07-23d132ffff0fhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#7c36f61d-a96c-417c-8a07-23d132ffff0fJohn Taylorhttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20Taylor"Assembly '...' Was Not Found" When including a reference to a local namespace My issue WAS down to the # character in the path, we had &quot;c#&quot; as one of the folder names in our VSS tree. Thanks for identifying the issue<br>John<hr class="sig">www.datadaysolutions.comMon, 02 Feb 2009 19:31:02 Z2009-02-02T19:31:02Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#104301ca-b4cc-4298-b0cf-312cebc44e80http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#104301ca-b4cc-4298-b0cf-312cebc44e80Thrash505http://social.msdn.microsoft.com/Profile/en-US/?user=Thrash505"Assembly '...' Was Not Found" When including a reference to a local namespaceAt first I thought &quot;why would anyone have a # in there path or filenames?&quot;. Then I realized that I have all my WPF projects under &quot;C:|_Main\Projects\C# WPF\&quot;. I changed the path to &quot;C:\_Main\Projects\CSharp WPF\&quot;, rebuilt everything and things worked out just nicely.<br><br>Can someone from Microsoft either fix the '#' thing or at least make this issue more well known. This costed me several hours of wasted time on an issue that was discovered a while ago.<br><br>Thanks,<br>Thrash505<br> Fri, 27 Mar 2009 17:52:42 Z2009-03-27T17:54:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#7ee237db-1236-41b1-910b-dfeaf4c018c4http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#7ee237db-1236-41b1-910b-dfeaf4c018c4u2 Bleankhttp://social.msdn.microsoft.com/Profile/en-US/?user=u2%20Bleank"Assembly '...' Was Not Found" When including a reference to a local namespaceI've encountered the same problem with a directory named SourcesC#\  ....<br/>Tue, 07 Apr 2009 16:51:12 Z2009-04-07T16:51:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#aea84ab0-0b3a-4d2e-88da-0803476621d1http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#aea84ab0-0b3a-4d2e-88da-0803476621d1Faramhttp://social.msdn.microsoft.com/Profile/en-US/?user=Faram"Assembly '...' Was Not Found" When including a reference to a local namespaceI had the same problem. I had C# in my projects folder path. Code ran fine, displayed properly in Blend<br/>but VS2008 xaml designer always gave up with the &quot;assembly not found....&quot; error.<br/>Changed folder name from C# to Csharp and everything works as it should.<br/>Thanks for the tip Mark Wilson :)Fri, 01 May 2009 07:27:28 Z2009-05-01T07:27:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#a4719a75-2a29-4732-ba96-d988f28b0207http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#a4719a75-2a29-4732-ba96-d988f28b0207SRLockleyhttp://social.msdn.microsoft.com/Profile/en-US/?user=SRLockley"Assembly '...' Was Not Found" When including a reference to a local namespaceI am having this problem, and read with interest the issue of path resolution. I have changed the output directories of all my projects to a single &quot;.\bin&quot; directory. This is to resolve runtime referencing problems for dlls written in native c++<br/><br/>Question. Can the Xaml editor find assemblies that are not output to the default paths that come with VS2008 when you set up a module? Fri, 15 May 2009 12:25:13 Z2009-05-15T12:25:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1fbbfbd1-36e5-44f4-a7b6-d1ba7d7ae25ehttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#1fbbfbd1-36e5-44f4-a7b6-d1ba7d7ae25egrathadhttp://social.msdn.microsoft.com/Profile/en-US/?user=grathad"Assembly '...' Was Not Found" When including a reference to a local namespaceAwsome, i don't believe a # in a file name can do the trick, it's the solution for me ... I guess now why all the project on my desktop worked fine and not the real ones in the C# directory. <div>Thanks a lot !</div>Wed, 03 Jun 2009 19:26:25 Z2009-06-03T19:26:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#72524a6c-f408-4fb1-b115-3ac85ed79850http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#72524a6c-f408-4fb1-b115-3ac85ed79850Shaun Wilsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shaun%20Wilson"Assembly '...' Was Not Found" When including a reference to a local namespaceI've run into this problem at run-time, works fine in the designer. I suspect it's related to my AssemblyVersion changing on every build. I'm not sure if this qualifies as a framework problem, compiler problem or designer problem.<br/><br/> <br/><br/><hr class="sig">Shaun Wilson // MySpace.com // Engineering - Infrastructure GroupSun, 28 Jun 2009 12:53:23 Z2009-06-28T12:53:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#c4a5f019-16b2-49e9-b101-5bc5b72f0a1bhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#c4a5f019-16b2-49e9-b101-5bc5b72f0a1by-springhttp://social.msdn.microsoft.com/Profile/en-US/?user=y-spring"Assembly '...' Was Not Found" When including a reference to a local namespace<blockquote>I've run into this problem at run-time, works fine in the designer. I suspect it's related to my AssemblyVersion changing on every build. I'm not sure if this qualifies as a framework problem, compiler problem or designer problem.<br/><br/> <br/><br/> <hr class=sig> Shaun Wilson // MySpace.com // Engineering - Infrastructure Group</blockquote> <br/>The problem is in the two-pass compilation of WPF projects: If you have a slow PC (or a big project) and you are using version wildcards ( [assembly: AssemblyVersion(&quot;1.0.0.*&quot;)] ) then you'll end up with an assembly having version &quot;1.0.0.12345&quot; but the .baml-resource nested inside the assembly references &quot;1.0.0.12343&quot; although the original xaml only contained something simple as 'xmlns:local=&quot;clr-namespace:Company.AppName&quot;'. (You can verify this with Reflector).<br/>This can happen with a totaly fresh build -- from time to time you even can have luck and both compilations occur for the same time-number-representation and everything works well 'till the next build.<br/><br/>Very frustrating because we use version wildcards to ensure that every build only uses the exactly assemblies it was build against.<hr class="sig">holy sigTue, 30 Jun 2009 09:34:01 Z2009-06-30T09:34:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#696257a2-7c75-42cd-ba48-5dab749c34bchttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#696257a2-7c75-42cd-ba48-5dab749c34bcShaun Wilsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Shaun%20Wilson"Assembly '...' Was Not Found" When including a reference to a local namespaceMy problem was that I had a dyanmic AssemblyVersion attribute combined with signing the assembly.<br/><br/>You might try adding &quot;;assembly=&quot; to the end of the clr-namespace:.. string to ensure the runtime is checking the calling/owning assembly and not attempting to resolve an external assembly.<br/><br/>You may also see this if you are using an obfuscator that doesn't &quot;play-well&quot; with BAML/WPF.<br/><br/>If you provide a verbose exception detail, it may be helpful.<br/><hr class="sig">Shaun Wilson // MySpace.com // Engineering - Infrastructure GroupTue, 30 Jun 2009 09:37:24 Z2009-06-30T09:37:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#5b557f46-34d5-4191-bd9c-ad98ca83ad59http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#5b557f46-34d5-4191-bd9c-ad98ca83ad59y-springhttp://social.msdn.microsoft.com/Profile/en-US/?user=y-spring"Assembly '...' Was Not Found" When including a reference to a local namespaceThere is no obfuscation being done. The assembly is signed with a strong key (.snk) but this doesn't affect any version numbers.<br/><br/>The problem is that every WPF assembly is compiled twice (just look at the MSbuild scripts) -- and the second compilation gets a different version number (this is the bug).<br/><br/>So I end up at runtime with the following error which clearly states that the baml includes a reference to version &quot;0.906.29.19489&quot; but in fact the resulting assembly got &quot;0.906.29.19492&quot;:<br/><br/>System.Windows.Markup.XamlParseException occurred<br/>  Message=&quot; Die Datei oder Assembly \&quot;MyAppName, Version=0.906.29.19489, Culture=neutral, PublicKeyToken=ec279e9c96512601\&quot; oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)  Fehler in Objekt \&quot;System.Windows.ResourceDictionary\&quot; in Markupdatei \&quot;MyAppName;component/app.xaml\&quot;, Zeile 10, Position 6.&quot;<br/>  Source=&quot;PresentationFramework&quot;<br/>  LineNumber=10<br/>  LinePosition=6<br/>  NameContext=&quot;MergedDictionaries&quot;<br/>  StackTrace:<br/>       bei System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)<br/>       bei System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)<br/>       bei System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)<br/>       bei System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)<br/>       bei System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()<br/>       bei System.Windows.Markup.TreeBuilder.Parse()<br/>       bei System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)<br/>       bei System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)<br/>       bei MyCompany.MyAppName.App.InitializeComponent() in d:\svnWORK\Kundenprojekte\MyAppName\MyCompany.MyAppName\App.xaml:Zeile 1.<br/>       bei MyCompany.MyAppName.App.Main() in D:\svnWORK\Kundenprojekte\MyAppName\MyCompany.MyAppName\obj\Debug\App.g.cs:Zeile 0.<br/>       bei MyCompany.MyAppName.AppRunner.Main() in D:\svnWORK\Kundenprojekte\MyAppName\MyCompany.MyAppName\AppRunner.cs:Zeile 21.<br/>  InnerException: System.IO.FileLoadException<br/>       Message=&quot;Die Datei oder Assembly \&quot;MyAppName, Version=0.906.29.19489, Culture=neutral, PublicKeyToken=ec279e9c96512601\&quot; oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)&quot;<br/>       Source=&quot;mscorlib&quot;<br/>       FileName=&quot;MyAppName, Version=0.906.29.19489, Culture=neutral, PublicKeyToken=ec279e9c96512601&quot;<br/>       FusionLog=&quot;Der Assemblymanager wurde geladen aus:  C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\mscorwks.dll\r\nAls EXE-Datei ausgeführt.  D:\\svnWORK\\Kundenprojekte\\MyAppName\\MyCompany.MyAppName\\bin\\Debug\\MyAppName.vshost.exe\r\n--- Ein detailliertes Fehlerprotokoll folgt. \n\r\n=== Zustandsinformationen vor Bindung ===\r\nLOG: Benutzer = ZETEKO\\Markus\r\nLOG: DisplayName = MyAppName, Version=0.906.29.19489, Culture=neutral, PublicKeyToken=ec279e9c96512601\n (Fully-specified)\r\nLOG: Appbase = <a>file:///D:/svnWORK/Kundenprojekte/MyAppName/MyCompany.MyAppName/bin/Debug/\r\nLOG</a>: Ursprünglicher PrivatePath = NULL\r\nAufruf von Assembly : WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.\r\n===\r\nLOG: Diese Bindung startet im default-Load-Kontext.\r\nLOG: Die Anwendungskonfigurationsdatei wird verwendet: D:\\svnWORK\\Kundenprojekte\\MyAppName\\MyCompany.MyAppName\\bin\\Debug\\MyAppName.vshost.exe.config\r\nLOG: Die Computerkonfigurationsdatei von C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config wird verwendet.\r\nLOG: Verweis nach der Richtlinie: MyAppName, Version=0.906.29.19489, Culture=neutral, PublicKeyToken=ec279e9c96512601\r\nLOG: Download von neuem URL <a>file:///D:/svnWORK/Kundenprojekte/MyAppName/MyCompany.MyAppName/bin/Debug/MyAppName.DLL.\r\nLOG</a>: Download von neuem URL <a>file:///D:/svnWORK/Kundenprojekte/MyAppName/MyCompany.MyAppName/bin/Debug/MyAppName/MyAppName.DLL.\r\nLOG</a>: Download von neuem URL <a>file:///D:/svnWORK/Kundenprojekte/MyAppName/MyCompany.MyAppName/bin/Debug/MyAppName.EXE.\r\nWRN</a>: Der Vergleich des Assemblynamens führte zum Konflikt: Revisionsnummer.\r\nERR: Das Setup der Assembly konnte nicht abgeschlossen werden (hr = 0x80131040). Die Suche wurde beendet.\r\n&quot;<br/>       StackTrace:<br/>            bei System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br/>            bei System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br/>            bei System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)<br/>            bei System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)<br/>            bei System.Reflection.Assembly.Load(String assemblyString)<br/>            bei System.Windows.Markup.ReflectionHelper.LoadAssemblyHelper(String assemblyGivenName, String assemblyPath)<br/>            bei System.Windows.Markup.ReflectionHelper.LoadAssembly(String assemblyName, String assemblyPath)<br/>            bei System.Windows.Markup.BamlMapTable.GetAssemblyFromAssemblyInfo(BamlAssemblyInfoRecord assemblyInfoRecord)<br/>            bei System.Windows.Markup.BamlMapTable.GetTypeFromTypeInfo(BamlTypeInfoRecord typeInfo)<br/>            bei System.Windows.Markup.BamlMapTable.GetTypeFromId(Int16 id)<br/>            bei System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object&amp; element, ReaderFlags&amp; flags, Type&amp; delayCreatedType, Int16&amp; delayCreatedTypeId)<br/>            bei System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)<br/>            bei System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)<br/>            bei System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)<br/>       InnerException: <br/><hr class="sig">holy sigTue, 30 Jun 2009 09:58:25 Z2009-06-30T09:58:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#5777b277-ce47-49af-927a-4879f1cc91bdhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#5777b277-ce47-49af-927a-4879f1cc91bdy-springhttp://social.msdn.microsoft.com/Profile/en-US/?user=y-spring"Assembly '...' Was Not Found" When including a reference to a local namespaceI forgot to mention: adding &quot;;assembly=&quot; to the xmlns:local reference does not change anything.<hr class="sig">holy sigTue, 30 Jun 2009 09:59:55 Z2009-06-30T09:59:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#667d444c-e539-49ea-8c88-c3278f731a3bhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#667d444c-e539-49ea-8c88-c3278f731a3bAriën Hhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ari%u00ebn%20H"Assembly '...' Was Not Found" When including a reference to a local namespaceHi,<br/><br/>I ran into a simmular problem. I had good compilible WPF application. After a throw away my 'obj' and 'bin' directory the same error occured. After restoring the 'bin' and 'obj' it compiled again. <br/>Is this a egg or chicken problem?!<br/><br/>Normaly when you build an application from scratch, there is already a dll bofore you add some controlsSat, 18 Jul 2009 18:14:05 Z2009-07-18T18:16:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#8b62a3d9-c4f1-4907-9af5-586d79a2d11ahttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#8b62a3d9-c4f1-4907-9af5-586d79a2d11aSergey Gusakhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sergey%20Gusak"Assembly '...' Was Not Found" When including a reference to a local namespaceI had the same problem as John Taylor, but there was no # symbol. I solved it by specifying &quot;...;assembly=&quot; instead of just &quot;...&quot; in the namespace declaration.Sat, 05 Sep 2009 12:47:11 Z2009-09-05T12:47:11Zhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#bcc000ca-77f9-4e9d-bbb7-9e19e8d22cafhttp://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/0a244e58-dc0a-4f13-80ce-438f1e135320#bcc000ca-77f9-4e9d-bbb7-9e19e8d22cafRamis84http://social.msdn.microsoft.com/Profile/en-US/?user=Ramis84"Assembly '...' Was Not Found" When including a reference to a local namespaceI had this annoying problem as well. I solved it like many others by adding &quot;;assembly=&quot; last on the same line as xmlns for the namespace.Mon, 07 Sep 2009 14:59:04 Z2009-09-07T14:59:04Z