Hi,
I've downloaded the sample apps that accompany new D2D map feature but get the following runtime exception:
System.TypeInitializationException was unhandled
Message=The type initializer for 'ThinkGeo.MapSuite.Core.WicBitmapGeoCanvas' threw an exception.
Source=WicBitmapExtension
TypeName=ThinkGeo.MapSuite.Core.WicBitmapGeoCanvas
StackTrace:
at ThinkGeo.MapSuite.Core.WicBitmapGeoCanvas..ctor()
at ThinkGeo.MapSuite.WpfDesktopEdition.WicBitmapLayerOverlay.DrawTileCore(Tile tile, RectangleShape targetExtent)
at ThinkGeo.MapSuite.WpfDesktopEdition.TileOverlay.DrawTile(Tile tile, RectangleShape targetExtent)
at ThinkGeo.MapSuite.WpfDesktopEdition.TileOverlay.txU=(RectangleShape uhU=, OverlayRefreshType uxU=, Boolean vBU=)
at ThinkGeo.MapSuite.WpfDesktopEdition.TileOverlay.txU=(RectangleShape uBU=, OverlayRefreshType uRU=)
at ThinkGeo.MapSuite.WpfDesktopEdition.TileOverlay.DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.LayerOverlay.DrawCore(RectangleShape targetExtent, OverlayRefreshType refreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.Overlay.Draw(RectangleShape targetExtent, OverlayRefreshType refreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.EBQ=(Overlay ExQ=, RectangleShape FBQ=, OverlayRefreshType FRQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.CBQ=(IEnumerable`1 DRQ=, RectangleShape DhQ=, OverlayRefreshType DxQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.CBQ=(RectangleShape CRQ=, OverlayRefreshType ChQ=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.DrawCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.Draw(RectangleShape targetExtent, OverlayRefreshType refreshType)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.9BM=(RectangleShape 9RM=)
at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.ABQ=(Object ARQ=, EventArgs AhQ=)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at WicBitmapGeoCanvasSamples.App.Main() in C:\Tools\ThinkGeo-WpfMap-Direct2d\WicBitmap Extension Package\Samples\WicBitmapGeoCanvasSamples\WpfDesktopSample\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.NotSupportedException
Message=An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See go.microsoft.com/fwlink/?LinkId=155569 for more information.
Source=mscorlib
StackTrace:
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at ThinkGeo.MapSuite.Core.WicBitmapGeoCanvas..cctor()
InnerException:
I've reference the 5.5.0.153 MapSuiteCore.dll and WpfDesktopEdition.dll.
I'm referencing the WicBitmapExtension.dll that was supplied with the MapSuiteWicBitmapExtension2011-11-24.zip
I also followed the directions in the readme and have the WindowsApiCodePackx64 and WindowsApiCodePackx86 in my c:\Windows\SysWOW64\Map Suite 5.5 directory.
Please help.
Thanks,
Josh