XamlParseException occured

Aug 6, 2010 at 2:45 PM

I'm getting this any time I try to run a very basic WPF app after following the directions on the Getting Started page:

'The invocation of the constructor on type 'InfoStrat.VE.VEMap' that matches the specified binding constraints threw an exception.' Line number '5' and line position '28'.

I've tried both the binary assembly that is provided in the downloads, and re-compiling the source with .NET 4.0 as a target.

The sample provided in the binary download works correctly though.

Any ideas?

Aug 6, 2010 at 4:08 PM
Hi Blitzd, It would help if you posted the entire stack trace. I think I know the issue, though. This occurs when building against .NET 4 because the MapPoint assemblies are built against .NET 2.0. Update the app.config to include this: <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> </configuration> Josh