CodeSamples System.TypeInitializationException

33 views
Skip to first unread message

hero.m...@gorannet.net

unread,
Sep 26, 2017, 10:30:28 AM9/26/17
to MapSurfer.NET
I am trying to run the sample code to explore MapSurfer, but I get this exception when I try to build the solution:

 System.TypeInitializationException occurred
  HResult=-2146233036
  Message=The type initializer for '<Module>' threw an exception.
  Source=MapViewer
  TypeName=<Module>
  StackTrace:
       at MapSurfer.Samples.FrmMain..ctor()
       at MapSurfer.Samples.Program.Main() in C:\Users\hero.mohammed\Pictures\MApSurferExample\WindowsForms\MapViewer\Program.cs:line 32
  InnerException: 
       HResult=-2146233066
       Message=Arithmetic operation resulted in an overflow.
       Source=MapSurfer.Core
       StackTrace:
            at 딶ꒆ䈒鼛뛉ꚴ.螭㷪廊쌛՘듀詄祽()
            at .cctor()
       InnerException: 

Any one can help with this?

Thanks in advance!

Runge

unread,
Oct 2, 2017, 8:56:57 AM10/2/17
to MapSurfer.NET
Hello,

Which version of MapSurfer.NET are you using? Where did you get the assemblies, from a Nuget package or from a standalone installer?

Kind regards,
Max
Reply all
Reply to author
Forward
0 new messages