Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

Scheduled Pinned Locked Moved ASP.NET
help
5 Posts 5 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ali Al Omairi Abu AlHassan
    wrote on last edited by
    #1

    Guys; I have run a code that connect to an excel file on a web service and it worked. now I run the same code on a windows service running on the same host but it gave me the exception of: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

    Help people,so poeple can help you.

    T M 2 Replies Last reply
    0
    • A Ali Al Omairi Abu AlHassan

      Guys; I have run a code that connect to an excel file on a web service and it worked. now I run the same code on a windows service running on the same host but it gave me the exception of: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

      Help people,so poeple can help you.

      T Offline
      T Offline
      Thomas Daniels
      wrote on last edited by
      #2

      You need to install Microsoft Access Database Engine 2010 Redistributable from here: http://www.microsoft.com/en-us/download/details.aspx?id=13255[^]

      D 1 Reply Last reply
      0
      • T Thomas Daniels

        You need to install Microsoft Access Database Engine 2010 Redistributable from here: http://www.microsoft.com/en-us/download/details.aspx?id=13255[^]

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        Item #4 of the above link states that it is not intended for "

        Quote:

        ... a program called from server-side web application such as ASP.NET ...

        So what is the preferred method to access data stored in Excel for an ASP.NET application ? I understand that you don't want to build an OLTP system usign Excel as a datastore ... but I have a situation where there is a spreadsheet which is updated by one department and I was thinking of buidling a simple webpage which would be used as search front-end for folks who do not have "edit" access to the Excel doc. Should be OK? Right?

        N 1 Reply Last reply
        0
        • D David Mujica

          Item #4 of the above link states that it is not intended for "

          Quote:

          ... a program called from server-side web application such as ASP.NET ...

          So what is the preferred method to access data stored in Excel for an ASP.NET application ? I understand that you don't want to build an OLTP system usign Excel as a datastore ... but I have a situation where there is a spreadsheet which is updated by one department and I was thinking of buidling a simple webpage which would be used as search front-end for folks who do not have "edit" access to the Excel doc. Should be OK? Right?

          N Offline
          N Offline
          n podbielski
          wrote on last edited by
          #4

          If I recall correctly in Win7 Ole JET DB is deprecated and you should use mentioned ACE.OLEDB.12.0. For older systems use JET. This should be installed with office and one of them should be accessible. In my app I use web.config connection: jet for production with older version of WinServer and OLEDB for my Win7 dev machine. I don't know if there is better way.

          No more Mister Nice Guy... >: |

          1 Reply Last reply
          0
          • A Ali Al Omairi Abu AlHassan

            Guys; I have run a code that connect to an excel file on a web service and it worked. now I run the same code on a windows service running on the same host but it gave me the exception of: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

            Help people,so poeple can help you.

            M Offline
            M Offline
            Murugan Kolanji
            wrote on last edited by
            #5

            If your application running in 64 bit machine, change the "Platform target" into X86 in project properties. I hope it will work for you.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups