- Where Developers Learn, Share, & Build Careers


I found this exception: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.

I was trying to add Excel 2010 files with OleDBConnection. I have Windows 7 64bit and Office 2010 32bit.

I have tried to redistribute Microsoft Access Database Engine 2010, which gives the following suggestions:

I also suggested:

any of them Does not work for me anybody can help?

Here's my code: String Connection String = "Provider = Microsoft.ACE.OLEDB.12.0; Data Source = D: \ Sample .xlsx; Mode = Share Disclaimer; Expanded Properties = \" HDR = Yes; \ "; Jet ALLDB: Engine Type = 37"; OLEDBox Connection = New OddBack Connection (Connection String); Try {connection.Open (); ODDB Commands Command = new OLEDB Commands ("SELECT * FROM [Sheet 1 $]", Connection); OleDbDataAdapter Adapter = New OleDbDataAdapter (); Adapter.SelectCommand = Order; Dataset ds = new dataset (); Adapter.fill (ds); Ds.Tables [0] .Rows.Count.Dump (); } Hold (exception) {throw; } Finally {connection.Close (); }

There is a discussion about this error, please see it and tell me if This has worked for you.

Best Relationship

Try setting it first:

Try the following method:

Note: This office works for 2010 even if it is for the 2007 office

  1. Download and install it:

  2. < P> Add data source in VS click, follow wizard.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -