Has anyone been able to get DemoMap.exe working in Version 1.7

Nov 13, 2014 at 8:07 PM
Downloaded the full source from Codeplex, recompiled it, set DemoMap as the startup project, ran the demo. Clicked on New and get error because _applicationManager.Map is null. Restarted demo and clicked Open and same problem.

Also when rebuilding the source I get exceptions regarding Menubar plugins as follows:
Unable to read the project file 'DotSpatial.Plugins.MenuBar.csproj' and when I look under the trunk folder, sure enough, the file specified
'...\DotSpatial 1.7\Trunk\DotSpatial.Plugins.MenuBar\DotSpatial.Plugins.MenuBar.csproj'
cannot be found.

So my questions are:
  1. Where do I get the MenuBar plugins from,
  2. Does the DemoMap actually work - I was planning, as a lot of people do, to use it as a learning tool to see how the library works.
I appreciate any help on this, as I see from the comments that a lot of people are using DotSpatial, so I assume I must be doing something wrong.

Regards,
John.

I can't believe it's so difficult to
Developer
Nov 14, 2014 at 6:27 AM
Indeed you doing something wrong. There is no DotSpatial.Plugins.MenuBar.csproj in 1.7. Try to download source code again into new folder. And everything should work.
Nov 14, 2014 at 4:51 PM
I am a long-time user and just updated using Nuget to version 1.7. I saw some strange things in my project so downloaded DotSpatial.Full, unzipped and tried to run. The window appears but get this error when I try to open a shape file (or do practically anything else):
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at DotSpatial.Controls.DefaultMenuBars.AddLayer_Click(Object sender, EventArgs e) in g:\TeamCity\buildAgent\work\356b083ef9ef62c7\DotSpatial.Controls\DefaultMenuBars.cs:line 116
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
DemoMap
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DemoMap.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
DotSpatial.Controls
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Controls.DLL
----------------------------------------
DotSpatial.Symbology
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Symbology.DLL
----------------------------------------
DotSpatial.Data
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Data.DLL
----------------------------------------
DotSpatial.Extensions
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Extensions.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
DotSpatial.Topology
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Topology.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.ComponentModel.Composition
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------
DotSpatial.Mono
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Mono.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
DotSpatial.Data.Forms
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Data.Forms.DLL
----------------------------------------
DotSpatial.Projections
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Projections.DLL
----------------------------------------
DotSpatial.Serialization
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Serialization.DLL
----------------------------------------
DotSpatial.Modeling.Forms
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Modeling.Forms.DLL
----------------------------------------
DotSpatial.Symbology.Forms
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/LCW.LCW-PC/Downloads/DotSpatial_Full.1.7/DotSpatial.Symbology.Forms.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Data.DataSetExtensions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Dynamic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Nov 16, 2014 at 12:23 AM
Hi All,
Managed to get it running - I had NuGet installed, but I had to right click on the solution folder in the Solution Explorer and click on 'Enable NuGet Package Restore'.
I then built the solution and got no build errors. I then made the Demo project the startup project and ran it. I was able to open new Shapefile layers, etc. I haven't fully explored it, but so far it's working.

Regards and thanks for all your help.

John W.