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. General Programming
  3. C#
  4. error in c#

error in c#

Scheduled Pinned Locked Moved C#
questioncsharphelp
11 Posts 5 Posters 0 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.
  • U User3490

    hi i have error when i run my c# program. the error is : The Microsoft ACE.OLEDB.12.0 provider is not registered on the local machine. and i have access 2010 on my laptop. what is the solution for this error ?

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #2

    Install JET[^]. Make sure you install the correct version; you'd want the 64-bit version if your CPU (and app!) support it, otherwise the 32-bit version.

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

    U D 2 Replies Last reply
    0
    • L Lost User

      Install JET[^]. Make sure you install the correct version; you'd want the 64-bit version if your CPU (and app!) support it, otherwise the 32-bit version.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      U Offline
      U Offline
      User3490
      wrote on last edited by
      #3

      i have the correct version in my laptop. my laptop has 64bit cpu and i have install access 2010 64 bit

      L 1 Reply Last reply
      0
      • U User3490

        i have the correct version in my laptop. my laptop has 64bit cpu and i have install access 2010 64 bit

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        ..and your app? Set to 64-bit?

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        U 1 Reply Last reply
        0
        • L Lost User

          ..and your app? Set to 64-bit?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          U Offline
          U Offline
          User3490
          wrote on last edited by
          #5

          yes my c# that i use in visual studio 2010 is 64bit. Basically the error is not my laptop in my laptop run ok. but when i try to run my c# setup program in another laptop that is also 64 bit appears the error message that i said in my previous message. Also we have the same programs access 2010 in 64 bit cpu. i don't understand what maybe be the problem..

          D 1 Reply Last reply
          0
          • L Lost User

            Install JET[^]. Make sure you install the correct version; you'd want the 64-bit version if your CPU (and app!) support it, otherwise the 32-bit version.

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #6

            Huh?? There is no 64-bit version of JET. It's 32-bit only and was replaced by ACE. ACE comes in both 32- and 64-bit flavors.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            L 1 Reply Last reply
            0
            • U User3490

              yes my c# that i use in visual studio 2010 is 64bit. Basically the error is not my laptop in my laptop run ok. but when i try to run my c# setup program in another laptop that is also 64 bit appears the error message that i said in my previous message. Also we have the same programs access 2010 in 64 bit cpu. i don't understand what maybe be the problem..

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #7

              The problem is bitness. Either the target machine doesn't have 64-bit ACE (Access) installed, or your code is running as 32-bit, not 64. You cannot mix 32- and 64-bit code in the same process. You have to match the ACE bitness to your application, or the other way around. If the target machine has 32-bit Office (Access) installed and your app is compiled as x64 or AnyCPU running on a 64-bit machine, you'll get this message. If your code is compiled x86 only and there is only 64-bit Office (Access) installed, you'll still get this error.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                Huh?? There is no 64-bit version of JET. It's 32-bit only and was replaced by ACE. ACE comes in both 32- and 64-bit flavors.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                Didn't know, thanks for the info :)

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                1 Reply Last reply
                0
                • U User3490

                  hi i have error when i run my c# program. the error is : The Microsoft ACE.OLEDB.12.0 provider is not registered on the local machine. and i have access 2010 on my laptop. what is the solution for this error ?

                  A Offline
                  A Offline
                  Abhinav S
                  wrote on last edited by
                  #9

                  Nice little tip here - OLEDB Provider is Not Registered on the Local Machine[^]. Should solve your problem most likely.

                  WP Apps - Color Search | Arctic | XKCD | Sound Meter | Speed Dial

                  1 Reply Last reply
                  0
                  • U User3490

                    hi i have error when i run my c# program. the error is : The Microsoft ACE.OLEDB.12.0 provider is not registered on the local machine. and i have access 2010 on my laptop. what is the solution for this error ?

                    A Offline
                    A Offline
                    Anna King
                    wrote on last edited by
                    #10

                    If you are using Visual Studio 2010, then the issue should not arise. Maybe some of the files are corrupt and that is causing the problem.

                    U 1 Reply Last reply
                    0
                    • A Anna King

                      If you are using Visual Studio 2010, then the issue should not arise. Maybe some of the files are corrupt and that is causing the problem.

                      U Offline
                      U Offline
                      User3490
                      wrote on last edited by
                      #11

                      Hi Thanks all for your help. I found the problem rely on your advice. I changed the target platform from configuration manager to x64 bit and the problem solved. thank you again!!

                      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