<?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 Re: Type initializer Error in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640556#M17222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there, did you have solution to your problem here? I have the same problem and waste almost a week trying the find a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 12:51:22 GMT</pubDate>
    <dc:creator>HungNguyen4</dc:creator>
    <dc:date>2011-07-19T12:51:22Z</dc:date>
    <item>
      <title>Type initializer Error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640555#M17221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an error condition explained below that I can prevent from happening by first opening an ArcMap dialog box before I run the code.&amp;nbsp; I can open any Arcmap dialog "File Save...", customize&amp;gt;extensions...&amp;nbsp; anything in the arcmap menus will prevent this error.&amp;nbsp; Why?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have references to the Crystal Reports 2008 components in an ArcGIS 10 desktop application.&amp;nbsp; I have one line of VB code that runs from a simple desktop button:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim cReport as New CrystalDecisions.CrystalReports.Engine.ReportDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it produces the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The type initializer for "CrystalDecisions.CrystalReports.Engine.ReportDocument" Threw an exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also runs fine if I don't launch it from within ArcGIS.&amp;nbsp; Does anyone have a clue what might be going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 00:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640555#M17221</guid>
      <dc:creator>SeanFairhurst</dc:creator>
      <dc:date>2010-08-13T00:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Type initializer Error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640556#M17222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there, did you have solution to your problem here? I have the same problem and waste almost a week trying the find a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 12:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640556#M17222</guid>
      <dc:creator>HungNguyen4</dc:creator>
      <dc:date>2011-07-19T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Type initializer Error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640557#M17223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there, did you have solution to your problem here? I have the same problem and waste almost a week trying the find a solution.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the same issue (with an ArcEngine app)... If I try to access a crystal assembly/method (ie. CrystalDecisions.CrystalReports.Engine.ReportDocument.Load()), I get the "Type initializer error" when I try to launch the Engine app.&amp;nbsp; Same thing vice versa (if I open the ArcEngine app first, I get the "Type initializer error" when I try to launch the crystal reports method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: The exact same code works fine if the app is built against ArcGIS 9.3.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 16:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/type-initializer-error/m-p/640557#M17223</guid>
      <dc:creator>PatrickKoo</dc:creator>
      <dc:date>2012-01-25T16:14:19Z</dc:date>
    </item>
  </channel>
</rss>

