CopyPastor

Detecting plagiarism made easy.

Score: 0.8265065561261093; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-07-03
by Mohammad Sadegh Mazaheri

Original Post

Original - Posted on 2013-03-28
by Steve



            
Present in both answers; Present only in the new answer; Present only in the old answer;


It is registered as it should. It is your application that is compiled for AnyCPU Platform. In x64 operating system this produces 64bit code and 64bit code could not access 32bit drivers.
Change your Platform to x86 and you will be fine.
**EDIT**
Two years later there is something to add to this answer. Now with Visual Studio 2013 the [cheese has been moved][1]. The article linked explain in great details how the compiler setup defaults has been changed. The AnyCPU target CPU with Prefer 32 bit means that your application works as 32bit app also in x64bit operating systems leaving practically no-room to x64 application unless specifically required.
With this new configuration becomes also important to remember what is posted in comments below by Mark Berry. If your (now 32bit) app needs to work in a IIS 64bit environment you need to set the Application Pool with Enable 32 bit Applications
[Reference][2]

[1]: http://blogs.microsoft.co.il/sasha/2012/04/04/what-anycpu-really-means-as-of-net-45-and-visual-studio-11/ [2]: https://stackoverflow.com/questions/15684575/getting-the-error-the-vfpoledb-1-provider-is-not-registered-on-the-local-mach
It is registered as it should. It is your application that is compiled for AnyCPU Platform. In x64 operating system this produces 64bit code and 64bit code could not access 32bit drivers.
Change your Platform to x86 and you will be fine.

**EDIT** Two years later there is something to add to this answer. Now with Visual Studio 2013 the [cheese has been moved][1]. The article linked explain in great details how the compiler setup defaults has been changed. The `AnyCPU` target CPU with `Prefer 32 bit` means that your application works as 32bit app also in x64bit operating systems leaving practically no-room to x64 application unless specifically required.
With this new configuration becomes also important to remember what is posted in comments below by Mark Berry. If your (now 32bit) app needs to work in a IIS 64bit environment you need to set the `Application Pool` with `Enable 32 bit Applications`

[1]: http://blogs.microsoft.co.il/sasha/2012/04/04/what-anycpu-really-means-as-of-net-45-and-visual-studio-11/

        
Present in both answers; Present only in the new answer; Present only in the old answer;