473,378 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

VS2008 - How to compile 32bit C# app on Vista64?

I have an app that needs to access local MDB files using OLEDB. I
have just upgraded to Vista64 and when I run this app I get a "OLEDB.
4.0 is not registered on local machine" error. From research, I
gather that the Jet drivers are not available for 64 bit apps, but
they do have a 32 bit Jet driver on Vista 64. So the solution I
think is to force compile my assembly as a 32 bit assembly.

But I can't see how to do this. Under my assembly properties, for
Platform I only have "Any CPU". No other options. Which, as I
understand it, means the JIT will run either 32 or 64 bit depending on
the OS it's running under.

This is cool, but doesn't solve my problem. I need to run in 32 bit
mode on a 64 bit OS so I can access the Jet drivers to read my MDB
file.

Is there way I can tell VS 2008 to force compile my assembly as 32
bit?

Jun 27 '08 #1
1 3507
On Jun 6, 12:59*pm, Figmo <sa...@roadlessgear.comwrote:
I have an app that needs to access local MDB files using OLEDB. * *I
have just upgraded to Vista64 and when I run this app I get a "OLEDB.
4.0 is not registered on local machine" error. * From research, I
gather that the Jet drivers are not available for 64 bit apps, but
they do have a 32 bit Jet driver on Vista 64. * So the solution I
think is to force compile my assembly as a 32 bit assembly.

But I can't see how to do this. * Under my assembly properties, for
Platform I only have "Any CPU". * No other options. *Which, as I
understand it, means the JIT will run either 32 or 64 bit depending on
the OS it's running under.

This is cool, but doesn't solve my problem. *I need to run in 32 bit
mode on a 64 bit OS so I can access the Jet drivers to read my MDB
file.

Is there way I can tell VS 2008 to force compile my assembly as 32
bit?
The best solution would probably be to go into Configuration Manager,
and create a new
profile (since you may want this one later) and set it up to use X86
instead of "Any CPU".
Then build that profile.

Matt
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sin Jeong-hun | last post by:
I ran an executable written in C# and compiled for 'any CPU' on Windows XP x64 edition. It didn't run as a 32bit application. (You know, if it did, there's a *32 suffix at the Task manager". The...
3
by: Yuanfei | last post by:
Hi there, I am porting a project to IA64, AMD64(X64) with VS2005 Professional Edition on a 32bit box. The version of VS2005(32bit) I used is 8.0.50727.42. However, I just found that only x64...
1
by: Hans Kesting | last post by:
Hi, I can't get a vs2008 solution to compile. I have copied the source from a (compiling) 2.0 web-application to a new directory (I didn't want to change the old code), and tried to compile...
4
by: John | last post by:
Hi What are the advantage of vs2008 over vs2005? Thanks Regards
1
by: wizmagister | last post by:
Hi everyone, I've just installed VisualStudio 2008 on my dev PC. I use this PC to compile a program that uses MapPointControl.ocx. I've compile a new version of my program using VS 2005 after...
2
by: CMoya | last post by:
Can anyone point to an article or blog that describes the *functional* differences between a "Web Application" and a "Web Site" in VS2008.... caveats, gotchas? I'm aware of the compile differences...
0
by: Leo Park | last post by:
Hello, guys. I want to compile 32bit *.c and *.cc files On 64bit x86_64 systems. But, it is not work. ...
2
by: Siamak Sarmady | last post by:
Hello, I have a simple .c file in VS2008 and I have set the compile type in (project properties-C, C++ -Advanced -Compile as) to C. main.c content: #include <GL/glut.h> #include...
1
by: Rory Becker | last post by:
Just when I need it, my copy of VS2008 seems incapable of debugging javascript code. I'm really not sure it ever was. Perhaps I saw this before in VS2005 (which I recently uninstalled) could...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.