Sunday, March 24, 2013

How to solve Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0 problem IIS 7, IIS 8


 
OLE DB is a set of COM-based interfaces that expose data from a variety of sources.

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

Scenario: You are a web server administrator and you got a web site or an application given by developer which is working fine on the developer machine now you have hosted the web site on the Web Server IIS 7 or IIS 8 and its working fine but a little while later a developer call to you and says he is unable to upload the excel files.

See the comprehensive Video Tutorial on YouTube to solve this problem: https://www.youtube.com/watch?v=m4BwtCjs3z8

Error 1: Access to the path 'C:\inetpub\wwwroot\OLEDB-TEST-SITE\UploadedExcel\24032013_013545.xls' is denied.

This error comes because the folder where the file is uploaded doesn't have a write permission to solve this give the IIS_IUSRS write permission on the folder where the files are uploaded. 







Error 2:
When uploading .xls file your getting this error ( The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.





To solve this problem you have to download and install "2007 Office System Driver: Data Connectivity Components" on the web server the link is given at the bottom to this blog.







Also you have to "Enable 32-bit Applications to True" in IIS Application Pool for the web application if you want to upload the .xls files.


See the comprehensive Video Tutorial on YouTube to solve this problem: https://www.youtube.com/watch?v=m4BwtCjs3z8

  









Error 3:
When uploading .xlsx file your getting this error ( The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. )



To solve this problem you have to download and install "Microsoft Access Database Engine 2010" on the web server the link is given at the bottom to this blog. 







Link to Download:-  

Microsoft Access Database Engine 2010
http://www.microsoft.com/en-us/download/details.aspx?id=13255


2007 Office System Driver: Data Connectivity Components
http://www.microsoft.com/en-us/download/details.aspx?id=23734

Also you can download the test web application to test the OLEDB provider is registered on the local machine or not.
https://docs.google.com/file/d/0B8J5QeSXwQfbVlFiX3YxZXZyS3M/edit?usp=sharing


See the comprehensive Video Tutorial on YouTube to solve this problem: https://www.youtube.com/watch?v=m4BwtCjs3z8



 
 


HI there, ~(。◕‿◠。)~
= If You Like This Video, Give It a Thumbs Up :)
= Subscribe to receive email updates when we post new videos ;) ,
= Share it with your technical IT friends "_" ,
= if your facing? any technical problem or have any suggestion post your comment here or catch me  on google+ or Gtalk :D!




 

59 comments:

  1. Thanks, Error #2 fixed it for me!

    ReplyDelete
    Replies
    1. Your welcome Mexner, Good to this solved your problem. See Ya :)

      Delete
  2. Thanx you r the man :)

    ReplyDelete
  3. when i download Microsoft Access Database Engine 2010 it requires for me to delete certain which then don't let me use any of other other Microsoft products.

    can u help

    ReplyDelete
    Replies
    1. hi what is the error you're getting please provide a screen short.

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

      Delete
    3. you have to install the Microsoft Access Database Engine 2010 other wise it not work

      Delete
  4. Hi Sachin,
    I was using OLEDB.jet 4.0 in my local machine.It worked for me .Local system had Jet folder in regedit.. But whereas the same code didnt work in the server.. In server,either jet or ace provider is not available. Error occurs while opening the connection, conn.open.... but in the inner exeception i get an index error.. please help me.. Urgent

    ReplyDelete
  5. Hi there
    I am getting this error too..
    i have developed C#.net application connected with MS Access 2010
    I works fine on my local machine ..but after deploying it on the remote server, i have got same error again
    The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

    Please help me out ...

    ReplyDelete
  6. Thanks... it works :)

    ReplyDelete
  7. Hi,
    I just installed the Access Database Engine 2010 but still get the same Microsoft.Jet.OLEDB.4.0...error when I run the app. The app is already compiled so changing target compilation is not an option for me.

    ReplyDelete
  8. For asp.net 2.0 it's working fine, but if I use same code in asp.net 4.0 web forms still same error both Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0 not registered in the local machine, any idea? (both solution in same machine windows 7 - iis 7.5- asp.net 4.0)

    ReplyDelete
  9. Thanks. It has been of great help.

    ReplyDelete
  10. Hi I am getting this error message when trying to browse your app:

    HTTP Error 404.17 - Not Found
    The requested content appears to be script and will not be served by the static file handler.

    ANYONE can help me?

    ReplyDelete
  11. In order to avoid installing and enabling 32bit Data Connectivity Components on 64bit web server, just install 64bit Microsoft Access Database Engine 2010 and change the connection string from "Microsoft.Jet.OLEDB.4.0" to "Microsoft.ACE.OLEDB.12.0" and everything should work just fine, since it is backwards compatible.

    ReplyDelete
    Replies
    1. You are amazing !!! I was working on this for hours and you just solved my problem only with this little post :-) Thanks.

      Delete
  12. hello. recently i had ACCIDENTALLY install the 2010 version for 32 bit. How could I delete that file? I already delete the program on the controlpanel on my windows 8 but still when im installing the 64 bit verdion of 2010 the message is i have to delete the 32 bit version. pls help me sir. thanks

    ReplyDelete
  13. Hello sir i am using your code, it working fine in my local system bu same code is not working on GODADDY server , this is my URL, http://test.par-ken.com/

    ReplyDelete
  14. Thank you so much this code is very use full for me

    ReplyDelete
  15. Thanks , it Helps for me. have to set Enabled 32 bit to True for Application pool which is assigned for application.

    ReplyDelete
  16. Thank you for sharing. This has helped to solve my problem. I advise everyone to fix the number 2. If this does not help, try replacing the dll filehttp://fix4dll.com/msvcp110_dll. It always helps. Good luck.

    ReplyDelete
  17. AppServ как быть на этом сервере ? можно подключить

    ReplyDelete
  18. Hi,
    Can we have both Microsoft.Jet.OleDb and Microsoft.Ace.OleDb
    in the same system.

    ReplyDelete
  19. The 70-228 series of MCSE Course is designed to assist in learning or gaining knowledge and skills required for Installing, Configuring, and Administering Microsoft SQL Server 2000 Enterprise Edition, installation of SQL Server 2000 and configure advanced options, create a disaster recovery plan,
    MCSE Training London

    ReplyDelete
  20. You might wonder what could possibly differentiate such companies from Microsoft. The major difference you can find is that of pricing and access. reset windows 10 password

    ReplyDelete
  21. nice to be visiting your weblog inside the at the forefront again, it's been months for me. nicely this text that ive been waited for as a result lengthy. I compulsion this text to accumulation my assignment inside the hypothetical, and it has equal situation as soon as your article. thanks, significant part. buy Office 2019 Pro Plus key.

    ReplyDelete
  22. This includes Microsoft Office training disks, Microsoft Office training software, and the like. There are a lot of ways you can be trained on Microsoft Office if you simply know of all your options.microsoft office

    ReplyDelete
  23. Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work. Microsoft Dynamics 365 Sales Credit Card Processing

    ReplyDelete
  24. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! 상품권 현금화

    ReplyDelete
  25. Thanks a lot for sharing this excellent info! I am looking forward to seeing more posts by you as soon as possible! I have judged that you do not compromise on quality. Microsoft Office crack

    ReplyDelete
  26. I am happy to find this post Very useful for me, as it contains lot of information. I Always prefer to read The Quality and glad I found this thing in you post. Thanks free instagram likes famoid trial

    ReplyDelete
  27. I thank you for the information and articles you provided

    ReplyDelete
  28. Outstanding and mindblowing, this information is very much help full for me. I love this blog posting. I wanna say thanks for sharing your information, keep it up.
    Germany VPS Hosting

    ReplyDelete
  29. Very Nice Blog, You are spreading very good information among us… Yes Web Hosting plays very important role in business world. And it is important to have the best hosting services.
    UK VPS Hosting

    ReplyDelete
  30. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Topcc Shop

    ReplyDelete
  31. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. Microsoft Dynamics 365 Business Central Credit Card Processing

    ReplyDelete
  32. thank you for the information provided, we are waiting for the next info

    ReplyDelete
  33. Literally Speechless Post that You have shared here, This is an amazing superb article Keep Sharing this...
    Thanks, thanks to a lotttttttt!!!!

    Check Website Domain Availability

    ReplyDelete
  34. I have got very interesting information on this blog there are some very important business strategies that do help in your business branding.
    Check Domain Registration

    ReplyDelete
  35. Really a very interesting and helpful article if you have looked at anything about the USA maps cities then this blog cloud gives you excellent information. and you have any kind of plan stat in the USA the Onlive Server offer book a unique domain name and give an opportunity to become a business owner.
    Book Domain Name Online

    ReplyDelete
  36. One of the most sophisticated blog postings, you can control your overall windows setups with their tips. if you haven't cleared this the onlive server gives your full help in your business setups.
    Book Domain Name Online

    ReplyDelete
  37. One of the most interesting blog posting, Thanks i really enjoying, Your post intent is very relevant such a fully satisfaction blog.

    Book Domain Name Registration Online

    ReplyDelete
  38. Loved your blog as it is well researched and offered a knowledgeable resource. I have read all your posts and all are very informative. Thanks for sharing and keep it up like this.
    Book Domain Name

    ReplyDelete
  39. I have got really a piece of trustworthy information, thanks for introducing me to your experience. that blog is too much informational.
    USA Dedicated Server

    ReplyDelete
  40. Loved your blog as it is well researched and offered a knowledgeable resource. I have read all your posts and all are very informative. Thanks for sharing and keep it up like this.
    UK VPS Hosting>

    ReplyDelete
  41. Hello! First off, thanks so much for this blog. I am highly fascinated by the way that you explain everything in so much detail. Keep posting Information.
    Domain Name Registration

    ReplyDelete
  42. Hello Guys, One thing is clear that you are here, which means you want a custom domain name registration. Okay, You know you have come right place, Here are you get a lot of domain hosting and web hosting services or tips that make you help in your business.

    Book A Domain Name Online

    ReplyDelete
  43. There is a lot of information that is a very helpful blog post, We appreciated your blog post. Thanks for sharing your amazing information.
    Book Domain Name Online

    ReplyDelete
  44. Die Technologie entwickelt sich schneller denn je und schneller als Sie denken. Diese aufkommende Tekhnologie wird unsere Lebensweise verändern.

    ReplyDelete
  45. Amazing blog...Thank you for the very good and meaningful blog. It is very helpful for all blog writers. You are a web server administrator and you got a website or an application given by the developer which is working fine on the developer machine now. If You want more information on Instant Domain Search it offers an amazing domain name solution to users.

    ReplyDelete
  46. Thanks for sharing great information about "How to solve Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0 problem IIS 7, IIS 8" Thanks Again. If you want to know about dedicated servers then Our managed dedicated server is the best choice.

    ReplyDelete
  47. It supports a number of popular platforms including Windows, Linux, OS X, iOS and Android. So the cross-platform framework enables users to create the app for multiple platforms using the same code base “Microsoft Visual C++ Build Tools” in Python

    ReplyDelete
  48. Snort is a combination IDS and IPS open source software available for FREE download. Using IDS/IPS software like Snort allows security professionals to be proactive in the cybersecurity arena. Essential Skills that Would Require as a Cybersecurity Profession

    ReplyDelete