{"id":1184,"date":"2011-02-23T12:24:09","date_gmt":"2011-02-23T11:24:09","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=1184"},"modified":"2011-02-23T12:24:09","modified_gmt":"2011-02-23T11:24:09","slug":"error-unable-to-load-dll-iclit09bdll","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1184","title":{"rendered":"Error: Unable to load DLL (iclit09b.dll)"},"content":{"rendered":"<p><strong>Problem:<\/strong><\/p>\n<p>An unhandled exception of type &#8216;System.DllNotFoundException&#8217; occurred in ibm.data.informix.dll<\/p>\n<p>Additional information: Unable to load DLL (iclit09b.dll).<br \/>\nThe type initializer for \\&#8221;IBM.Data.Informix.IfxConnection\\&#8221; threw an exception.<\/p>\n<p>The system Operating is Windows 2003 Server with Share point and<br \/>\nthe server informix is INFORMIX-SQL Version   7.30.HC4<\/p>\n<p><strong>Solution:<\/strong><\/p>\n<p>If you are trying to use IBM.Data.Informix (Client 2.81 TC3, 2.9, 3.5,  etc.) from IIS, and you still have this problem, I have a solution. I  found that<strong> IIS 5.1 has a bug<\/strong>!!. <strong><span style=\"color: #800000;\">IIS cannot read the entire PATH  environment variable<\/span> <\/strong>if it\u2019s too long (my PATH has 1364 characters). So  if your informix dir is near the end of your PATH and your PATH is too  long, IIS will never read your informix dir (&#8220;C:\\Program  Files\\IBM\\Informix\\Client-SDK\\bin&#8221;).<\/p>\n<p><strong><span style=\"color: #800000;\">Just put your informix dir at the  beginning of your PATH variable<\/span>,<\/strong> and very important execute an  &#8220;<span style=\"color: #800000;\">i<strong>isreset&#8221; <\/strong><\/span>and the issue will gone away. I don&#8217;t know if this bug  remains in IIS 6.0 or later. But you can try this.<\/p>\n<p>If I&#8217;m correct this will help to solve other problems when you&#8217;re trying to access unamanaged dlls from IIS:<br \/>\n&#8220;Unable to load DLL &#8216;foo.dll&#8217;: The specified module could not be found.&#8221;<\/p>\n<p><a href=\"http:\/\/www.ibm.com\/developerworks\/forums\/thread.jspa?messageID=14305996\">Source link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: An unhandled exception of type &#8216;System.DllNotFoundException&#8217; occurred in ibm.data.informix.dll Additional information: Unable to load DLL (iclit09b.dll). The type initializer for \\&#8221;IBM.Data.Informix.IfxConnection\\&#8221; threw an exception. The system Operating is Windows 2003 Server with Share point and the server informix is INFORMIX-SQL Version 7.30.HC4 Solution: If you are trying to use IBM.Data.Informix (Client 2.81 TC3, 2.9, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[123,2],"tags":[197],"class_list":["post-1184","post","type-post","status-publish","format-standard","hentry","category-informix","category-truques-dicas","tag-informix","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1184"}],"version-history":[{"count":2,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1184\/revisions"}],"predecessor-version":[{"id":1186,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1184\/revisions\/1186"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1184"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}