{"id":1173,"date":"2008-12-24T05:56:53","date_gmt":"2008-12-24T10:56:53","guid":{"rendered":"https:\/\/hendersonbrook.net\/wp\/?p=1173"},"modified":"2008-12-24T05:56:53","modified_gmt":"2008-12-24T10:56:53","slug":"jet-data-providers-and-64-bit-vista","status":"publish","type":"post","link":"https:\/\/hendersonbrook.net\/?p=1173","title":{"rendered":"JET Data Providers and 64-bit VISTA"},"content":{"rendered":"<p>This is a well-documented issue, but I&#8217;m saving these notes anyway because it took a while to figure out.<br \/>\nI&#8217;m doing some maintenance on a web application that uses Excel files as data sources.<br \/>\nThe files require the JET Data Provider.<br \/>\nThe app is running under VISTA on a 64-bit machine.<br \/>\nI was getting the error message &#8220;The &#8216;Microsoft.Jet.OLEDB.4.0&#8217; provider is not registered on the local machine.&#8221;<br \/>\nFor VISTA, the JET .dlls are located in the WindowsSysWOW64 directory, not Program FilesCommon FilesSystemOle DB<br \/>\nI tried re-registering the .dlls.  No luck.<br \/>\nTurns out, Jet only has 32 bit versions, so you have to change the target CPU of the app to x86.<br \/>\nIn C#, there is no &#8220;Advanced Compiler&#8221; project property, this is only available in VB.NET.<br \/>\nOn IIS7, though, there is an option to run your app in 32-bit mode. In the Advanced Options under the Application Pools where your app is (mine uses DefaultAppPool), there&#8217;s an option to Enable 32-bit Applications (it was False by default).  Changing this to True worked.<br \/>\nThe C# project file does have a section &#8220;Platform Condition=&#8221; &#8216;$(Platform)&#8217; == &#8221; &#8220;>AnyCPU&#8221; It may be possible to edit this, but I didn&#8217;t try it.<br \/>\nList of JET .dlls: http:\/\/support.microsoft.com\/kb\/278604<br \/>\nExcellent resource:<br \/>\nhttp:\/\/social.msdn.microsoft.com\/forums\/en-US\/adodotnetdataproviders\/thread\/45aa44dd-0e6f-42e5-a9d6-9be5c5c8fcd1\/<br \/>\nJet 4.0 db engine service pack download: http:\/\/support.microsoft.com\/kb\/239114<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a well-documented issue, but I&#8217;m saving these notes anyway because it took a while to figure out. I&#8217;m doing some maintenance on a web application that uses Excel files as data sources. The files require the JET Data &hellip; <a href=\"https:\/\/hendersonbrook.net\/?p=1173\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1173","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=\/wp\/v2\/posts\/1173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1173"}],"version-history":[{"count":0,"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=\/wp\/v2\/posts\/1173\/revisions"}],"wp:attachment":[{"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hendersonbrook.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}