Solved

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

Posted on 2014-02-04
2
636 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
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

772 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