<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic TypeInitializationException with ArcGIS Mobile 9.3.1 in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31198#M246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a project for a customer using ArcGIS Mobile 9.3.1 running on a windows desktop toughbook.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For better knowing and controlling which version of ArcGIS Mobile is used for the project we do not install the arcgis mobile runtime but delivering following files with our software:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Mobile.dll (9.3.1.3000, 484kb) -&amp;gt; included as .net library in our project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobileCore.dll (9.3.1.3000, 296kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobileGPS.dll (9.3.1.3000, 241kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobilePE.dll (9.3.0.1738, 552kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobileSdc.dll (9.3.0.1339, 1400kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for long time it was no problem to start our program like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But sometimes we get an TypeInitializationException after compiling new and running program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error appears in the MainForm Designer File on initialising the form:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; private void InitializeComponent()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; this.components = new System.ComponentModel.Container();
&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Mobile.MetricUnitLabels metricUnitLabels1 = new ESRI.ArcGIS.Mobile.MetricUnitLabels();
&amp;nbsp;&amp;nbsp; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMap));
&amp;nbsp;&amp;nbsp; this.p_Map = new ESRI.ArcGIS.Mobile.Map();
&amp;nbsp;&amp;nbsp; this.sketchGraphicLayer = new ESRI.ArcGIS.Mobile.Sketch.SketchGraphicLayer();
&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; this.p_ScaleBar = new ESRI.ArcGIS.Mobile.ScaleBar(this.components);&amp;nbsp;&amp;nbsp; //&amp;lt;--- Error&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp; this.p_ToolStrip = new System.Windows.Forms.ToolStrip();
&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is part of designer, we did not change anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full exception message is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;System.TypeInitializationException: Der Typeninitialisierer für "ESRI.ArcGIS.Mobile.SpatialReferences.ProjectionCoreApi" hat eine Aussnahme verursacht. ---&amp;gt; System.InvalidOperationException: Missing ArcGIS registry key.&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.Native.WindowsApi.LoadCore(String dllName)&lt;BR /&gt;&amp;nbsp; --- Ende der internen Ausnahmestapelüberwachung ---&lt;BR /&gt;ESRI.ArcGIS.Mobile.SpatialReferences.ProjectionCoreApi.CreatUnit(String unitName, Double factor)&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.SpatialReferences.Unit..ctor(UnitTypes type)&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.SpatialReferences.Unit.UnitCollection..ctor()&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.SpatialReferences.Unit.get_Units()&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.ScaleBar..ctor()&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.ScaleBar..ctor(IContainer container)&lt;BR /&gt;&amp;nbsp; bei MyProject.InitializeComponent()&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:15:09 GMT</pubDate>
    <dc:creator>MaximilianGlas</dc:creator>
    <dc:date>2021-12-10T21:15:09Z</dc:date>
    <item>
      <title>TypeInitializationException with ArcGIS Mobile 9.3.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31198#M246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a project for a customer using ArcGIS Mobile 9.3.1 running on a windows desktop toughbook.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For better knowing and controlling which version of ArcGIS Mobile is used for the project we do not install the arcgis mobile runtime but delivering following files with our software:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Mobile.dll (9.3.1.3000, 484kb) -&amp;gt; included as .net library in our project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobileCore.dll (9.3.1.3000, 296kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobileGPS.dll (9.3.1.3000, 241kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobilePE.dll (9.3.0.1738, 552kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRIMobileSdc.dll (9.3.0.1339, 1400kb) -&amp;gt; just copied to same directory like ESRI.ArcGIS.Mobile.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for long time it was no problem to start our program like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But sometimes we get an TypeInitializationException after compiling new and running program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error appears in the MainForm Designer File on initialising the form:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; private void InitializeComponent()
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; this.components = new System.ComponentModel.Container();
&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Mobile.MetricUnitLabels metricUnitLabels1 = new ESRI.ArcGIS.Mobile.MetricUnitLabels();
&amp;nbsp;&amp;nbsp; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMap));
&amp;nbsp;&amp;nbsp; this.p_Map = new ESRI.ArcGIS.Mobile.Map();
&amp;nbsp;&amp;nbsp; this.sketchGraphicLayer = new ESRI.ArcGIS.Mobile.Sketch.SketchGraphicLayer();
&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; this.p_ScaleBar = new ESRI.ArcGIS.Mobile.ScaleBar(this.components);&amp;nbsp;&amp;nbsp; //&amp;lt;--- Error&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp; this.p_ToolStrip = new System.Windows.Forms.ToolStrip();
&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is part of designer, we did not change anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full exception message is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;System.TypeInitializationException: Der Typeninitialisierer für "ESRI.ArcGIS.Mobile.SpatialReferences.ProjectionCoreApi" hat eine Aussnahme verursacht. ---&amp;gt; System.InvalidOperationException: Missing ArcGIS registry key.&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.Native.WindowsApi.LoadCore(String dllName)&lt;BR /&gt;&amp;nbsp; --- Ende der internen Ausnahmestapelüberwachung ---&lt;BR /&gt;ESRI.ArcGIS.Mobile.SpatialReferences.ProjectionCoreApi.CreatUnit(String unitName, Double factor)&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.SpatialReferences.Unit..ctor(UnitTypes type)&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.SpatialReferences.Unit.UnitCollection..ctor()&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.SpatialReferences.Unit.get_Units()&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.ScaleBar..ctor()&lt;BR /&gt;&amp;nbsp; bei ESRI.ArcGIS.Mobile.ScaleBar..ctor(IContainer container)&lt;BR /&gt;&amp;nbsp; bei MyProject.InitializeComponent()&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31198#M246</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2021-12-10T21:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: TypeInitializationException with ArcGIS Mobile 9.3.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31199#M247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got a knew developer machine, now based on Windows7 64-bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And now I really have a problem. I am not able any longer to start our project because this error is appearing all the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All ArcGIS Mobile assemblies are side by side with my project assemblies. This is ok for ESRI.ArcGIS.Mobile.dll, but it seems not to be for the others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I even tried to install the &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgismobile/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16705"&gt;ArcGIS Mobile 9.3.1 Runtime Installer (32 bit)&lt;/A&gt;&lt;SPAN&gt;. But as it is a 32-bit Installer it does not fit for my OS: I still get the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What are my options? What do I have to do making my project runnable again?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 07:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31199#M247</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2010-12-15T07:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: TypeInitializationException with ArcGIS Mobile 9.3.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31200#M248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Delete the scalebar, then run your application without the scalebar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I sometimes see this being a problem on the sample code given by ESRI. I know you need the scalebar for certain things but by removing for now, making sure everything else works and then figure out how to add the scalebar again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 13:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31200#M248</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2010-12-15T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: TypeInitializationException with ArcGIS Mobile 9.3.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31201#M249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I knew it is the scale bar. But it is no solution for me, to delete it. The customer would not say: "Hey, no problem, delete everything you need, mainly the system runs ..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I found out a solution working for me: in the project settings, change the platform target to x86. That's it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 12:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31201#M249</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2010-12-16T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: TypeInitializationException with ArcGIS Mobile 9.3.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31202#M250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Heh, yah I know what you mean, thanks for the solution, I didn't think it would be an X86 problem. Good job!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 12:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/typeinitializationexception-with-arcgis-mobile-9-3/m-p/31202#M250</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2010-12-16T12:46:32Z</dc:date>
    </item>
  </channel>
</rss>

