Link to home
Start Free TrialLog in
Avatar of chokka
chokkaFlag for United States of America

asked on

How to take VS 2005 Windows App Build for Windows 7.0 64 Bit ?

VS 2005 / VB.Net

Deployment Tool is working on Windows Xp and other 32 Bit OS.

Actually Application is working well on any 32 bit OS ( Windows 7.0, Windows XP, 2003 Server etc .. )

Application is not working on Windows 7.0 64 Bit Processor ? How to take build for 64 Bit

I also checked this URL : http://blogs.msdn.com/b/deeptanshuv/archive/2006/04/11/573795.aspx

Avatar of Jesus Rodriguez
Jesus Rodriguez
Flag of United States of America image

Go to Project Properties, Compile, Advance Compile Options and in Target CPU change from Any to X64
Avatar of chokka

ASKER



I am  using MS Access DB as local database and using OLEDB Drivers.

On building the deployment application, i am facing an errror message as follows ..
oledb32.dll should be excluded because its source file 'c:\Program Files\Common Files\System\OleDB\oledb32.dll' is under Windows System File Protection
You can Exclude OLEDB32 from your installation project.  Since oledb32.dll is already installed, your program will be able to find and use it on the other computers.
Avatar of chokka

ASKER



On removing oledb32.dll, my application is not able to connect or interact with MS Access DB

At present, i am deploying by removing oledb32.dll.

Application works well in any 32bit Operating System.

On deploying on 64 bit Windows 7.0 OS, application is not working.

Unfortunately, this application has to be deployed on Windows 7.0 64 But OS ( Atleast 5 Laptops )

I think that is because the location of the OLEDB dll is different on x64 Which one is the error that give the application??
Avatar of chokka

ASKER

I guess so,

Now to find Oledbd32.dll in Windows 7.0

Or how to copy and paste Oledb32.dll

or

Do we need to have something like Oledb64.dll for 64 bit processor ?
Avatar of chokka

ASKER

I hope you might be having an idea about GAC


How to copy a dll from GAC and place it on Windows 7.0 ?

or how to put a dll on Windows 7.0 Assembly GAC folder..

I am just thinking of copying a Dll from here and place it over there ..
Avatar of chokka

ASKER

Thats really a very good website which i look for ..

But i feel hard to understand .. my apologize.

So,

1)
We’ll need to  execute the command below from a command line or Start/Run :
Step 1: - On Windows 7.0 Command line
C:\Windows\syswow64\rundll32.exe "C:\Program Files (x86)\Common Files\System\Ole DB\oledb32.dll"

Whether this will work ?
ASKER CERTIFIED SOLUTION
Avatar of Jesus Rodriguez
Jesus Rodriguez
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chokka

ASKER





Actual Error is

Microsoft.Jet.OLEDB 4.0 is not registered on Windows 7.0 64 Bit Operating System
Error.jpg
Did you compile the Application trying to say that will be x86 CPU Targeting and install in the X64 computer. This must work find. Try to do this
Go to Project Properties, Compile, Advance Compile Options and in Target CPU change from Any to X86

and install in the computer with X64. DO NOT PUT ON THE COMPILE OPTIONS ANY

Avatar of chokka

ASKER

I did that .. Interestingly OLEDB 4.0 or 12.0 is not Supported by 64 Bit OS