Namespace trouble, getting started

Jan 13, 2011 at 11:11 PM

Hi All,

WPF newbie problem:

I'm trying to simply compile and run the "Hello World" project using VS2010.  The program actually compiles just fine and runs.  However,

I can't get the xaml window to show.  I get the "Problem Loading" dialog that tells me something is wrong in the XAML code.  Every Type that should be in the namespace is underlined in blue.

You'd think I don't have xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0" in the namespace declaration area on the top of the window declaration, but I do.  It acts like it isn't there.

When I loaded the project it did need to run the 2010 converter and the .dll in the References was not correct (assuming a path issue), so I re-included the dll.  

A shove in the right direction would be much appreciated!

Jan 14, 2011 at 12:08 AM

Hi,

Which version are you using?  Stable or "Nightly"?  Nightly is better than Stable version although you may be better to switch over to http://d3future.codeplex.com/ which is the version where development is taking place.

Which projects are marked "Build" in the Visual Studio Configuration Manager?  Maybe you aren't building the necessary projects ("Hello World" and DynamicDataDisplay.*).

How did you add the reference to DynamicDataDisplay?  By browsing to the DLL or by using the Projects option?  You should use the projects option to avoid problems with selecting the "wrong" dll (e.g. debug instead of release).

Grant.

Jan 14, 2011 at 4:46 PM

Thanks for the quick response Grant,

Which version are you using?  Stable or "Nightly"?  Nightly is better than Stable version although you may be better to switch over to http://d3future.codeplex.com/ which is the version where development is taking place.

I can't remember which I clicked.  If this helps the binaries came from "DynamicDataDisplay v0.3 Binaries & Samples.zip" and the Hello World source was in "dynamicdatadisplay-31108.zip"

Which projects are marked "Build" in the Visual Studio Configuration Manager?  Maybe you aren't building the necessary projects ("Hello World" and DynamicDataDisplay.*).

I only had the HelloWorldSample project in the solution.  

How did you add the reference to DynamicDataDisplay?  By browsing to the DLL or by using the Projects option?  You should use the projects option to avoid problems with selecting the "wrong" dll (e.g. debug instead of release).

I added the binary for DymanicDataDisplay.dll by right clicking References in the Solution explorer and then browsed to the dll.  Do you mean that I should add and compile the DynamicDataDisplay source with any solution I use?

I see that I may have not had a good .dll and it could be causing the problem.

In light of that, I went to the d3future.codeplex.com site and downloaded from there.  I opened the DymanicDataDisplay project and compiled it to a dll.  I then opened the HelloWorld project and included the dll as I described above.

Good News: The XAML viewer now works just fine.

Bad News: AddLineGraph() no longer resolves in the .cs file.

So in this round I can no longer compile to an executable.

Worth noting: on the DynamicDataDisplay project the Options had been set to .NET 4.0.  The original stuff was .NET3.5.  Could this be an issue?  I'll go back and re-compile at 3.5 and see if this doesn't make a difference.

Thanks; Let me know what I'm doing wrong.  Did I mention I was a newbie :-).  

Michael


Dec 6, 2011 at 2:53 PM

I found the solution to this problem after a lot of searching, it is described here:  http://stackoverflow.com/questions/3432624/wpf-assembly-reference-missing-project-still-building

"assemblies that were downloaded need to be manually unblocked. This can be done in the Windows file properties. After unblocking and a restart of Visual Studio the problem was solved."

Dec 9, 2011 at 11:08 AM

Nuitari>> You Sir, are a gentleman.