?
Solved

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

Posted on 2014-02-04
2
Medium Priority
?
697 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
Microsoft has changed the look and feel of Azure AD and Microsoft account sign-in pages so that you will have a more unified look and feel when moving between the two interfaces.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

839 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