The 64-bit system encountered a problem where Microsoft. Jet. oledb.4.0 was not registered on the local computer.

Source: Internet
Author: User
Tags visual studio 2010

Used last year.. Net program. After changing to a 64-bit system this year, the program runs and throws an exception: Microsoft is not registered on the local computer. jet. oledb.4.0 provided the program. After a long time, I did not know why. Then I searched for it and found that the solution to the problem was so simple:

Solution:

Compile the project and specify the target platform as x86. No CPU can be used.

Project properties-> Generate-> Configuration Manager-> platform-> click the any CPU tab-> Create platform-> x86

(Visual Studio 2010 is: Project properties-> Generate-> General-> Target Platform-> x86. The Express version does not have the target platform selection function. Qianyi network editing note)

Web applications can also be solved as follows:

In the corresponding IIS application pool, select "Set default properties of application pool"> "general"> "enable 32-bit application" and set it to true.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.