Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel 32 bit or Excel 64 bit for Visual Studio applicaiton?

Posted on 2014-02-04
2
Medium Priority
?
687 Views
Last Modified: 2014-02-10
I built an application from Visual Studio 2012 that uses connection string to open Excel:
ExcelConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source = " + fname + "; Extended Properties='Excel 12.0; HDR=No;IMEX=1'", and set target Framework 4.0;

My local machine had installed Microsoft Office 2007 and 2010 32 bit; and my web server has installed Excel 2010 64 bit.  
My application runs fine in the Visual Studio in the local machine and also in local IIS, but when I deploy to the web server, run from there, it has an Error: "Microsoft ace oledb 12.0 not registered on local machine"

Then in the server, I uninstalled the Excel 2007 32 bit and installed Excel 2010 64 bit, then  that worked.  

Then I try to do the same to my local machine, I uninstalled the Microsoft Office 2007 and 2010 32 bit and installed Excel 2010 64 bit, now I ran the application in the Visual studio, it does not work any more.

I wonder why in my local machine I have to have 32 bit Excel and the server have to have 64 bit Excel to make the application work in both place.
0
Comment
Question by:fedmilk1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1000 total points
ID: 39834358
Would it be possible for you to get rid of Excel? There are alternatives to consume Excel data from a .Net application.

I have explored a couple. Check http://emoreau.com/Entries/Articles/2013/07/A-free-LINQ-to-Excel-and-CSV-provider.aspx and http://emoreau.com/Entries/Blogs/2009/01/Another-way-to-manipulate-Excel-files.aspx
0
 

Author Comment

by:fedmilk1
ID: 39835511
Thanks.  
But my application was upgraded from VS 2008 and switch from 2.0 to 4.0 and  has a lot of code.  It will be too much to do if I get rid of Excel.  I will try to keep it and see anything I can do.  For new application I might try it.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question