<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Geir Tunlid さんのアクティビティ</title><link>https://www.aras.com/community/members/geir_5f00_tunlid</link><description>Geir Tunlid さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>IOM TypeInitializationException error with Login</title><link>https://www.aras.com/community/f/development/3233/iom-typeinitializationexception-error-with-login</link><pubDate>Thu, 06 Apr 2017 04:10:05 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:885ce9e6-702a-4538-a4da-7c66f5dc2d05</guid><dc:creator>Geir Tunlid</dc:creator><description>I have been trying to use IOM on 11SP9 but I&amp;#39;m unable to get this code working...

&amp;nbsp;
&lt;pre&gt;// url = &amp;quot;&amp;quot;&amp;gt;myserver/InnovatorServer&amp;quot;;
url = &amp;quot;&amp;quot;&amp;gt;myserver/.../InnovatorServer.aspx&amp;quot;;

var myConnection = IomFactory.CreateHttpServerConnection(url, db, user, password);
 var objItemRes = myConnection.Login();

if (objItemRes.isError())
 {
 MessageBox.Show(&amp;quot;Login error &amp;quot; + objItemRes.dom.InnerText);
 }&lt;/pre&gt;
It gives this error:

&lt;span&gt;999&lt;/span&gt;
&lt;span&gt; HTTP Error&lt;/span&gt;
&lt;span&gt; HttpServerConnection&lt;/span&gt;
&lt;span&gt; System.TypeInitializationException: The type initializer for &amp;#39;Aras.Net.WindowsAuthenticationHelper&amp;#39; threw an exception.&lt;/span&gt;

&amp;nbsp;

My project is build on .NET 4.5.2 and I have referenced
IOM.dll Version 11.0.0.6549 (1/19/2017)

&amp;nbsp;

What can be wrong?

&amp;nbsp;

&amp;nbsp;

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Wed, 12 Mar 2025 06:23:23 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:905541c8-fb4f-4949-a5c8-eb02debfcfb6</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Discussion Starter I</title><link>https://www.aras.com/community/achievements/21025ab1-febb-4fb4-a872-d32a921cb45c</link><pubDate>Fri, 22 Mar 2019 14:05:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:bbd070d6-9d96-46b6-a37c-e3847b8bf51c</guid><dc:creator /><description>Start a discussion in a forum that receives 5 replies.</description></item></channel></rss>